Template:Main: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Mr Pie 5 +cat |
depends on {{hatnote}} |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
-->{{Hatnote|<!-- | -->{{Hatnote|<!-- | ||
-->{{#if:{{{2|}}}|Main | -->{{#if:{{{2|}}}|Main articles|Main article}}: {{#var:text}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 26: | Line 26: | ||
--></includeonly><!-- | --></includeonly><!-- | ||
--><noinclude>{{doc}}[[Category:Hatnote templates]]</noinclude> | --><noinclude> | ||
{{doc|bb= | |||
{{depends on template|Hatnote}} | |||
}} | |||
[[Category:Hatnote templates]] | |||
[[Category:Template starter-kit]] | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Article", | |||
"description": "A main article.", | |||
"example": "Article", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Second Article", | |||
"description": "A second main article.", | |||
"example": "Second Article", | |||
"type": "wiki-page-name" | |||
}, | |||
"3": { | |||
"label": "Third Article", | |||
"description": "A third main article.", | |||
"example": "Third Article", | |||
"type": "wiki-page-name" | |||
} | |||
}, | |||
"description": "This hatnote template is meant to be in sections of an article mentioning information about another existing main article.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 00:33, 20 May 2025
Depends on template
This template depends on template:
Examples
Code | Result |
---|---|
{{Main|Special:WantedPages}} |
Main article: Special:WantedPages
|
{{Main|Special:WantedPages#Section Title}} |
Main article: Special:WantedPages
|
{{Main|Special:WantedPages|Special:UncategorizedPages}} |
Main articles: Special:WantedPages and Special:UncategorizedPages
|
{{Main|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}} |
|
{{Main|Special:WantedPages{{!}}Page 1}} (Custom link label) |
Main article: Page 1
|
This hatnote template is meant to be in sections of an article mentioning information about another existing main article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Article | 1 | A main article.
| Page name | required |
Second Article | 2 | A second main article.
| Page name | optional |
Third Article | 3 | A third main article.
| Page name | optional |