Template:Related: Difference between revisions
Jump to navigation
Jump to search
Hoof Hearted (talk | contribs) m (Protected "Template:Related": High-importance template: templates are crucial to the operation of this wiki, so need appropriate protection ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))) |
Hoof Hearted (talk | contribs) (clarity) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[:Category:{{{1}}}|<span title="{{{1}}} is a related topic to {{PAGENAME}}">{{{2|{{{1}}}}}}</span>]]<noinclude> | [[:Category:{{{1}}}|<span title="{{{1}}} is a related topic to {{PAGENAME}}">{{{2|{{{1}}}}}}</span>]]<noinclude> | ||
---- | ---- | ||
;Usage | ;''Usage | ||
*With one parameter (after the 'pipe' – <tt>|</tt>), the string from this parameter will be used for both the displayed name as well as the target [[Special:Categories|category]] it links to — <code><nowiki>{{ | *With one parameter (after the 'pipe' – <tt>|</tt>), the string from this parameter will be used for both the displayed name (and 'hover' text information) as well as the target [[Special:Categories|category]] it links to, eg — <code><nowiki>{{Related|category}}</nowiki></code>. | ||
*You may specify a second parameter (after a second pipe) for a <u>displayed name</u> that is different than the link target — <code><nowiki>{{ | *You ''may'' specify a second parameter (after a second pipe) for a <u>displayed name</u> that is different than the link target, eg — <code><nowiki>{{Related|category|displayed link name}}</nowiki></code>, however, this should not be utilised <u>unless</u> there is a significant reason or justification. | ||
[[Category: | [[Category:Category templates]]</noinclude> | ||
Latest revision as of 01:44, 14 November 2022
[[:Category:{{{1}}}|{{{1}}}]]
- Usage
- With one parameter (after the 'pipe' – |), the string from this parameter will be used for both the displayed name (and 'hover' text information) as well as the target category it links to, eg —
{{Related|category}}
. - You may specify a second parameter (after a second pipe) for a displayed name that is different than the link target, eg —
{{Related|category|displayed link name}}
, however, this should not be utilised unless there is a significant reason or justification.