Template:For/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Mr Pie 5
Examples: Removing redlinks
Aliser (talk | contribs)
move templatedata to main; cleanup
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatedata>
{
"params": {
"1": {
"label": "Topic",
"description": "The topic the following pages are about.",
"example": "more information",
"type": "line",
"required": true
},
"2": {
"label": "Related Page",
"description": "A related page.",
"example": "Related Page",
"type": "wiki-page-name",
"required": true
},
"3": {
"label": "Second Page",
"description": "A second related page.",
"example": "Second Related Page",
"type": "wiki-page-name"
},
"4": {
"label": "Third Page",
"description": "A third related page.",
"example": "Third Related Page",
"type": "wiki-page-name"
}
},
"description": "This hatnote template is meant to be used to show pages related to a topic the reader might want to visit.",
"paramOrder": [
"1",
"2",
"3",
"4"
],
"format": "inline"
}
</templatedata>
== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
Line 52: Line 11:
| <code><nowiki>{{For|more information|Special:WantedPages{{!}}Page 1}}</nowiki></code> (Custom link label) || {{For|more information|Special:WantedPages{{!}}Page 1}}
| <code><nowiki>{{For|more information|Special:WantedPages{{!}}Page 1}}</nowiki></code> (Custom link label) || {{For|more information|Special:WantedPages{{!}}Page 1}}
|}
|}
== Dependencies ==
For this template to work properly, you need the following:
* The {{tl|Hatnote}} base template.
* The <code>.hatnote</code> class, found in [[MediaWiki:Common.css]].
== Source ==
Roughly based on [[wikipedia:Template:For|Wikipedia's For Template]].


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 00:28, 20 May 2025

Examples

Code Result
{{For|more information|Special:WantedPages}}
For more information, see Special:WantedPages.
{{For|more information|Special:WantedPages|Special:UncategorizedPages}}
For more information, see Special:WantedPages and Special:UncategorizedPages.
{{For|more information|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}}
{{For|more information|Special:WantedPages{{!}}Page 1}} (Custom link label)
For more information, see Page 1.