Difference between revisions of "Template:Wrongpage"
m (willager?) |
(Adding "or" parameter which allows linking to a second page sharing a similar description. Added update template. Added to Category:Templates missing documentation page.) |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <div class="hatnote" role="note">''This {{{type|article}}} is about {{{1}}}. {{#if:{{{2|}}}|For {{{2}}}, see [[{{{3}}}|{{{page-text1|{{{3}}}}}}]]{{#if:{{{or|}}}|{{{or}}}}}.}} {{#if:{{{4|}}}|For {{{4}}}, see [[{{{5}}}|{{{page-text2|{{{5}}}}}}]].}} {{#if:{{{6|}}}|For {{{6}}}, see [[{{{7}}}|{{{page-text3|{{{7}}}}}}]].}} {{#if:{{{text|}}}|{{{text}}}}}''</div><noinclude> | |
− | <noinclude> | + | ==Usage== |
− | + | {{Update|section|note=Template accepts up to three pages as of November of 2022, this should be explicitly noted. There also needs to be documentation of the <code>page-text1</code>, <code>page-text2</code>, etc. parameters which allow for custom link text. <code>or</code> parameter documentation is also needed. All of this should be moved to a proper documentation page at [[Template:Wrongpage/doc]].}} | |
− | + | <code><nowiki>{{Wrongpage|Use0|Use1|Article1|Use2|Article2|text=ARBITRARY}}</nowiki></code> | |
− | + | ||
− | </ | + | This '''should be''' placed at the start of an article (unless in the presence of [[Template:Villager Header]] or a similar template), to let the reader know that they are reading about <code>Use0</code> ('''required'''), which may be similar to a topic <code>Use1</code> (''optional''), which they may read more at the page <code>Article1</code> ('''required if Use1 is used'''). Another topic <code>Use2</code> (''optional''), which may be similar to the first and current topics, may be added, with its link being <code>Article2</code> ('''required if Use2 is used'''). |
− | < | + | |
+ | Arbitrary text (''optional'') may be displayed at the end of the template using the <code>text</code> parameter. The <code>type</code> parameter may be used to adjust the type of message displayed (example: "This section is about...") | ||
+ | |||
+ | :''Note: Pages with a disambiguation page with more than two entries should instead link to that disambiguation page.'' | ||
+ | |||
+ | ==Examples== | ||
+ | <code><nowiki>{{Wrongpage|the [[rabbit]] villager}}</nowiki></code> returns {{Wrongpage|the [[rabbit]] villager}} | ||
+ | |||
+ | <code><nowiki>{{Wrongpage|the rabbit villager introduced in City Folk|the mouse villager of the same name|Carmen (mouse)}}</nowiki></code> returns {{Wrongpage|the rabbit villager introduced in City Folk|the mouse villager of the same name|Carmen (mouse)}} | ||
+ | |||
+ | <code><nowiki>{{Wrongpage|the special species which includes [[Tortimer]]|the similar-looking special species|Kappa|the species of fish|Soft-shelled turtle}}</nowiki></code> returns {{Wrongpage|the special species which includes [[Tortimer]]|the similar-looking special species|Kappa|the species of fish|Soft-shelled turtle}} | ||
+ | |||
+ | <code><nowiki>{{Wrongpage|furniture items that play different sounds|the special species|Gyroid (species)|the item that sits outside the player's house in Animal Crossing|Gyroid (outdoor)|text=For other uses, see [[Gyroid]].}}</nowiki></code> returns {{Wrongpage|furniture items that play different sounds|the special species|Gyroid (species)|the item that sits outside the player's house in Animal Crossing|Gyroid (outdoor)|text=For other uses, see [[Gyroid]].}} | ||
+ | |||
+ | :Note: The last example is just a demonstration of the template. The editor should instead just link to the disambiguation page [[Gyroid]] instead of exhaustively listing its specific uses. | ||
+ | |||
+ | <code><nowiki>{{Wrongpage|furniture items that play different sounds|other uses|Gyroid}}</nowiki></code> returns {{Wrongpage|furniture items that play different sounds|other uses|Gyroid}} | ||
+ | |||
+ | [[Category:Notice templates]][[Category:Templates missing documentation page]]</noinclude> |
Latest revision as of 20:05, July 15, 2024
Usage
Further details: Template accepts up to three pages as of November of 2022, this should be explicitly noted. There also needs to be documentation of the
page-text1
, page-text2
, etc. parameters which allow for custom link text. or
parameter documentation is also needed. All of this should be moved to a proper documentation page at Template:Wrongpage/doc.Further details: Template accepts up to three pages as of November of 2022, this should be explicitly noted. There also needs to be documentation of the
page-text1
, page-text2
, etc. parameters which allow for custom link text. or
parameter documentation is also needed. All of this should be moved to a proper documentation page at Template:Wrongpage/doc.{{Wrongpage|Use0|Use1|Article1|Use2|Article2|text=ARBITRARY}}
This should be placed at the start of an article (unless in the presence of Template:Villager Header or a similar template), to let the reader know that they are reading about Use0
(required), which may be similar to a topic Use1
(optional), which they may read more at the page Article1
(required if Use1 is used). Another topic Use2
(optional), which may be similar to the first and current topics, may be added, with its link being Article2
(required if Use2 is used).
Arbitrary text (optional) may be displayed at the end of the template using the text
parameter. The type
parameter may be used to adjust the type of message displayed (example: "This section is about...")
- Note: Pages with a disambiguation page with more than two entries should instead link to that disambiguation page.
Examples
{{Wrongpage|the [[rabbit]] villager}}
returns
{{Wrongpage|the rabbit villager introduced in City Folk|the mouse villager of the same name|Carmen (mouse)}}
returns
{{Wrongpage|the special species which includes [[Tortimer]]|the similar-looking special species|Kappa|the species of fish|Soft-shelled turtle}}
returns
{{Wrongpage|furniture items that play different sounds|the special species|Gyroid (species)|the item that sits outside the player's house in Animal Crossing|Gyroid (outdoor)|text=For other uses, see [[Gyroid]].}}
returns
- Note: The last example is just a demonstration of the template. The editor should instead just link to the disambiguation page Gyroid instead of exhaustively listing its specific uses.
{{Wrongpage|furniture items that play different sounds|other uses|Gyroid}}
returns