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..." |
defaultloadout-wikigg>Karmaworks No edit summary |
||
Line 4: | Line 4: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "Topic", | ||
"description": "The | "description": "The topic the", | ||
"example": "Term Page", | "example": "Term Page", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
" | "required": true | ||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Related Page", | ||
"description": " | "description": "A related page.", | ||
"example": " | "example": "Related Name", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
" | "required": true | ||
}, | }, | ||
"3": { | "3": { | ||
"label": "Second | "label": "Second Page", | ||
"description": "A second | "description": "A second related page.", | ||
"example": "Second | "example": "Second Related Page", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | }, | ||
"4": { | "4": { | ||
"label": "Third | "label": "Third Page", | ||
"description": "A third | "description": "A third related page.", | ||
"example": "Third | "example": "Third Related Page", | ||
"type": "wiki-page-name" | |||
} | }, | ||
"text": {} | |||
}, | }, | ||
"description": "This hatnote template is meant to be used to related | "description": "This hatnote template is meant to be used to show pages related to a topic the reader might want to visit.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"2", | "2", | ||
"3", | "3", | ||
"4", | |||
"text" | |||
], | ], | ||
"format": "inline" | "format": "inline" | ||
Line 44: | Line 46: | ||
! Code !! Result | ! Code !! Result | ||
|- | |- | ||
| <code><nowiki>{{ | | <code><nowiki>{{For|Topic|Page One}}</nowiki></code> || {{For|Topic|Page One}} | ||
|- | |- | ||
| <code><nowiki>{{ | | <code><nowiki>{{For|Topic|Page One|Page Two}}</nowiki></code> || {{For|Topic|Page One|Page Two}} | ||
|- | |- | ||
| <code><nowiki>{{ | | <code><nowiki>{{For|Topic|Page One|Page Two|Page Three}}</nowiki></code> || {{For|Topic|Page One|Page Two|Page Three}} | ||
|- | |- | ||
| <code><nowiki>{{ | | <code><nowiki>{{For|Topic|Page One{{!}}Page 1}}</nowiki></code> || {{For|Topic|Page One{{!}}Page 1}} | ||
|- | |- | ||
| <code><nowiki>{{ | | <code><nowiki>{{For|Topic|text = Page 1, another name for [[Page One]]}}</nowiki></code> || {{For|Topic|text = Page 1, another name for [[Page One]]}} | ||
|} | |} | ||
Revision as of 20:36, 12 April 2024
Summary
This hatnote template is meant to be used to show pages related to a topic the reader might want to visit.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Topic | 1 | The topic the
| Page name | required |
Related Page | 2 | A related page.
| Page name | required |
Second Page | 3 | A second related page.
| Page name | optional |
Third Page | 4 | A third related page.
| Page name | optional |
text | text | no description | Unknown | optional |
Examples
Dependencies
This template requires the {{Hatnote}}
metatemplate.
Source
Roughly based on Wikipedia's For Template.