Template:Vde: Difference between revisions

From PZwiki
(updated template to float left and customisable font-size and added doc.)
(added font-weight normal & added text-color and link-color parameters)
Line 18: Line 18:
:The name of the template to be linked to. Should be the name of the template that it's used on.
:The name of the template to be linked to. Should be the name of the template that it's used on.
;<code>color</code>
;<code>color</code>
:Color of text can be customised. Default is black (#000000).
:Changes the color of all the text that isn't a link.  
;<code>text-color</code>
:Changes the color of all the text, including links. ''Overrides <code>color</code> and <code>link-color</code>.''
;<code>link-color</code>
:Changes the link-color.  
;<code>font-size</code>
;<code>font-size</code>
:Font size of the text. Default is 0.8em.  
:Font size of the text. Default is 0.8em.  
Line 30: Line 34:
}}
}}
{{ll|Category:Metatemplates}}
{{ll|Category:Metatemplates}}
</noinclude><includeonly><span class="plainlinks" style="color:{{{text|{{{color|#000000}}}}}}; float:left; font-size: {{{font-size|0.8em}}};">[[Template:{{{1}}}|<span title="View this template." style="color:{{{text|{{{color|}}}}}}">v</span>]] • [[Template talk:{{{1}}}|<span title="Discuss this template." style="color:{{{text|{{{color|}}}}}}">d</span>]] • [{{fullurl:Template:{{{1}}}|action=edit}} <span title="Edit this template. Be sure to preview any changes before submitting." style="color:{{{text|{{{color|}}}}}}">e</span>]</span></includeonly>
</noinclude><includeonly><span class="plainlinks" style="color:{{{text-color|{{{color|#000000}}}}}}; float:left; font-size: {{{font-size|0.8em}}}; font-weight: normal;">[[Template:{{{1}}}|<span title="View this template." style="color:{{{text-color|{{{link-color|}}}}}}">v</span>]] • [[Template talk:{{{1}}}|<span title="Discuss this template." style="color:{{{text-color|{{{link-color|}}}}}}">d</span>]] • [{{fullurl:Template:{{{1}}}|action=edit}} <span title="Edit this template. Be sure to preview any changes before submitting." style="color:{{{text|}}}">e</span>]</span></includeonly>

Revision as of 02:04, 27 January 2024

Notebook.pngTemplate Documentation
Imbox content.png
This template is deprecated.
This template will eventually be removed.

The {{vde}} template is used to quickly add links to a template's "view", "talk" and "edit" pages.

Usage

{{vde|TEMPLATENAME}}

vde


This template is intended to be used on in progress templates that may require contribution from the broader community.

It should be used sparingly on templates that are considered 'complete' and that do not require much modification. Including this template on high risk templates may result in excessive edits resulting in functionality and layout breaking.

Parameters

1Required
The name of the template to be linked to. Should be the name of the template that it's used on.
color
Changes the color of all the text that isn't a link.
text-color
Changes the color of all the text, including links. Overrides color and link-color.
link-color
Changes the link-color.
font-size
Font size of the text. Default is 0.8em.

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.