Template:Vte: Difference between revisions
m (4 revisions imported) |
Quantumhusky (talk | contribs) (Removed redirect to Template:VTE) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | <div class="vte plainlinks" style="font-size:smaller; text-align:center;">[[{{{3|Template}}}:{{{1}}}|{{#if: {{{2|}}} | <span style="color:{{{2}}}">v</span> | v}}]] - [[{{{3|Template}}} talk:{{{1}}}|{{#if: {{{2|}}} | <span style="color:{{{2|}}}">t</span> | t}}]] - [{{fullurl:{{{3|Template}}}:{{{1}}}|action=edit}} {{#if: {{{2|}}} | <span style="color:{{{2|}}}">e</span> | e}}]</div><noinclude>{{doc}}</noinclude> | ||
< |
Revision as of 02:44, 7 June 2021
This template adds a set of three links to a page, one to the page, one to its talk page, and one to edit it. They are appear in a small font size, with minimal text.
It is intended to be added to templates, to provide easy access to the template from a page it is transcluded into.
Usage
At the most basic, you will likely only need to place
{{vte|{{subst:PAGENAME}}}}
onto the template.
If, for whatever reason, you wish to make the links apply to a different page, replace {{subst:PAGENAME}}
with the name of the page.
The colour of the links can be changed via the second parameter. For example, to have white links, add
{{vte|{{subst:PAGENAME}}|#ffffff}}
The namespace of the linked-to pages can be changed with the third parameter. If not included, it defaults to "Template". Usually you would just need
{{vte|{{subst:PAGENAME}}||{{subst:NAMESPACE}}}}
To change the namespace and colour, place the colour code in the middle:
{{vte|{{subst:PAGENAME}}|#ffffff|{{subst:NAMESPACE}}}}