Template:For/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
Created page with "== Summary == <templatedata> { "params": { "1": { "label": "Term", "description": "The term page.", "example": "Term Page", "type": "wiki-page-name", "suggested": true }, "2": { "label": "Alternative", "description": "The alternative page.", "example": "Alternative Page", "type": "wiki-page-name", "suggested": true }, "3": { "label": "Second Alternative", "description": "A second alternative page.", "example": "Second Alt..."
 
Aliser (talk | contribs)
move templatedata to main; cleanup
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Summary ==
<templatedata>
{
"params": {
"1": {
"label": "Term",
"description": "The term page.",
"example": "Term Page",
"type": "wiki-page-name",
"suggested": true
},
"2": {
"label": "Alternative",
"description": "The alternative page.",
"example": "Alternative Page",
"type": "wiki-page-name",
"suggested": true
},
"3": {
"label": "Second Alternative",
"description": "A second alternative page.",
"example": "Second Alternative Page",
"type": "wiki-page-name"
},
"4": {
"label": "Third Alternative",
"description": "A third alternative page.",
"example": "Third Alternative Page",
            "type": "wiki-page-name"
}
},
"description": "This hatnote template is meant to be used to related pages the reader might want to visit.",
"paramOrder": [
"1",
"2",
"3",
        "4"
],
"format": "inline"
}
</templatedata>
== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
! Code !! Result
! Code !! Result
|-
|-
| <code><nowiki>{{Distinguish|Page One}}</nowiki></code> || {{Distinguish|Page One}}
| <code><nowiki>{{For|more information|Special:WantedPages}}</nowiki></code> || {{For|more information|Special:WantedPages}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two}}</nowiki></code> || {{Distinguish|Page One|Page Two}}
| <code><nowiki>{{For|more information|Special:WantedPages|Special:UncategorizedPages}}</nowiki></code> || {{For|more information|Special:WantedPages|Special:UncategorizedPages}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two|Page Three}}</nowiki></code> || {{Distinguish|Page One|Page Two|Page Three}}
| <code><nowiki>{{For|more information|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}}</nowiki></code> || {{For|more information|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}}
|-
|-
| <code><nowiki>{{Distinguish|Page One{{!}}Page 1}}</nowiki></code> || {{Distinguish|Page One{{!}}Page 1}}
| <code><nowiki>{{For|more information|Special:WantedPages{{!}}Page 1}}</nowiki></code> (Custom link label) || {{For|more information|Special:WantedPages{{!}}Page 1}}
|-
| <code><nowiki>{{Distinguish|text = Page 1, another name for [[Page One]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Page One]]}}
|}
|}


== Dependencies ==
<noinclude>[[Category:Template documentation]]</noinclude>
This template requires the {{tl|Hatnote}} metatemplate.
 
== Source ==
Roughly based on [https://en.wikipedia.org/wiki/Template:For Wikipedia's For Template].
__NOTOC__

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.