Template:Vte: Difference between revisions
www>GR~2020 m (Protected "Template:Vte": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Quantumhusky (talk | contribs) m (1 revision imported) |
(2 intermediate revisions by 2 users not shown) | |
(No difference)
|
Latest revision as of 02:56, 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}}}}