Template:Main: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}} for this [[Wikipedia:Cate..." |
Verdite cat (talk | contribs) m 1 revision imported |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | |||
-->{{#vardefine:text|<!-- start vd | |||
-->{{#if:{{{2|}}}<!-- if more than one page | |||
-->|[[{{{1}}}]]{{#if:{{{3|}}}<!-- start concat if | |||
-->|, [[{{{2}}}]] and [[{{{3}}}]]<!-- concat two | |||
-->|<nowiki> </nowiki>and [[{{{2}}}]]<!-- else; concat one | |||
-->}}<!-- end concat if | |||
-->|[[{{{1}}}]]<!-- else; one page only | |||
-->}}<!-- end if | |||
-->}}<!-- end vd | |||
{{ | -->{{Hatnote|<!-- | ||
</noinclude> | -->{{#if:{{{2|}}}|Main articles|Main article}}: {{#var:text}}<!-- | ||
-->}}<!-- | |||
--></includeonly><!-- | |||
--><noinclude>{{doc}}[[Category:Hatnote templates]]</noinclude> |
Latest revision as of 18:53, 12 September 2024
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Main/doc to edit this documentation. (How does this work?) |
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 |
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
|
Dependencies
This template requires the {{Hatnote}}
metatemplate.
Source
Roughly based on Wikipedia's For Template.