Difference between revisions of "Template:Wrongpage"

From Nookipedia, the Animal Crossing wiki
(→‎Examples: Added what SHOULD be done for disambiguation pages.)
(Adding "or" parameter which allows linking to a second page sharing a similar description. Added update template. Added to Category:Templates missing documentation page.)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
:''This article is about {{{1}}}. {{#if:{{{2|}}}|For {{{2}}}, see [[{{{3}}}]].}} {{#if:{{{4|}}}|For {{{4}}}, see [[{{{5}}}]].}} {{#if:{{{text|}}}|{{{text}}}}}''<br>
+
<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==
 
==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>
 
<code><nowiki>{{Wrongpage|Use0|Use1|Article1|Use2|Article2|text=ARBITRARY}}</nowiki></code>
  
This is '''always''' placed at the start of an article, 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''').  
+
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''').  
  
An arbitrary text <code>ARBITRARY</code> (''optional'') may be displayed at the end of the template.
+
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.''
 
:''Note: Pages with a disambiguation page with more than two entries should instead link to that disambiguation page.''
Line 13: Line 13:
 
<code><nowiki>{{Wrongpage|the [[rabbit]] villager}}</nowiki></code> returns {{Wrongpage|the [[rabbit]] villager}}
 
<code><nowiki>{{Wrongpage|the [[rabbit]] villager}}</nowiki></code> returns {{Wrongpage|the [[rabbit]] villager}}
  
<code><nowiki>{{Wrongpage|the [[rabbit]] villager introduced in {{CF}}|the [[mouse]] villager of the same name|Carmen (mouse)}}</nowiki></code> returns {{Wrongpage|the [[rabbit]] villager introduced in {{CF}}|the [[mouse]] villager of the same name|Carmen (mouse)}}
+
<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|a special species which includes [[Tortimer]]|a similar-looking special species|[[Kappa]]|a species of [[fish]]|Soft-Shelled Turtle}}</nowiki></code> returns {{Wrongpage|a special species that include [[Tortimer]]|a similar-looking special species which includes [[Kapp'n]]|Kappa|a species of [[fish]]|Soft-Shelled Turtle}}
+
<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 {{PG}}|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 {{PG}}|Gyroid (outdoor)|text=For other uses, see [[Gyroid]].}}
+
<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.''
+
 
 +
: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}}
 
<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]]</noinclude>
+
[[Category:Notice templates]][[Category:Templates missing documentation page]]</noinclude>

Latest revision as of 20:05, July 15, 2024

This article is about {{{1}}}.

Usage

Harriet NH Character Icon.png
This section needs to be updated.
Please edit this section to reflect updated content or newly available information. Relevant discussion may be found on the talk page.
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.
Harriet NH Character Icon.png
This section needs to be updated.
Please edit this section to reflect updated content or newly available information. Relevant discussion may be found on the talk page.
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

This article is about the rabbit villager.

{{Wrongpage|the rabbit villager introduced in City Folk|the mouse villager of the same name|Carmen (mouse)}} returns

This article is about the rabbit villager introduced in City Folk. For the mouse villager of the same name, see Carmen (mouse).

{{Wrongpage|the special species which includes [[Tortimer]]|the similar-looking special species|Kappa|the species of fish|Soft-shelled turtle}} returns

This article is about the special species which includes Tortimer. For the similar-looking special species, see Kappa. For the species of fish, see Soft-shelled turtle.

{{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

This article is about furniture items that play different sounds. For the special species, see Gyroid (species). For the item that sits outside the player's house in Animal Crossing, see Gyroid (outdoor). 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.

{{Wrongpage|furniture items that play different sounds|other uses|Gyroid}} returns

This article is about furniture items that play different sounds. For other uses, see Gyroid.