Actions

Template

Difference between revisions of "Catmore"

From Sonic Retro

(This is how Wikipedia does it. Should solve some issues when implemented.)
 
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>''The main article for this category is '''[[{{{1|{{PAGENAME}}}}}]]'''.''</includeonly><noinclude>
+
<includeonly>{{ArticleNote
 +
| image=Sonic Retro emblem.svg
 +
| text=''The main article for this category is '''[[{{{1|{{PAGENAME}}}}}|{{#if: {{{2|}}}|{{{2}}}...|{{{1|{{PAGENAME}}}}}...}}]]'''''
 +
| mini=yes
 +
}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
This template is for use on Category pages, to refer to the primary article associated with this category, which most of the time, describes the entire set containing the category.
 
This template is for use on Category pages, to refer to the primary article associated with this category, which most of the time, describes the entire set containing the category.
Line 9: Line 13:
 
{{Catmore}}
 
{{Catmore}}
  
If the name of the main article is different than the name of the category. For example: if the main article for [[:Category:Dead or Alive]] is [[:Dead or Alive (series)]], then you will need to use one parameter to specify the article (see below for example).
+
If the name of the main article is different than the name of the category. For example: if the main article for [[:Category:Sonic the Hedgehog 3]] is [[Sonic the Hedgehog 3]], then you will need to use one parameter to specify the article (see below for example).
  
 
Alternate usage:
 
Alternate usage:
*<pre>{{Catmore|Dead or Alive (series)}}</pre>
+
*<pre>{{Catmore|Sonic the Hedgehog 3}}</pre>
  
 
Which renders:
 
Which renders:
{{Catmore|Dead or Alive (series)}}
+
{{Catmore|Sonic the Hedgehog 3}}
 +
[[Category:Navigational templates]]
 +
 
 +
If a second parameter is specified, it will replace the display text for the link.
 
</noinclude>
 
</noinclude>

Latest revision as of 14:21, 31 July 2018

Usage

This template is for use on Category pages, to refer to the primary article associated with this category, which most of the time, describes the entire set containing the category.

Normal usage (uses category name for wiki link):

  • {{Catmore}}

Which renders:

Sonic Retro emblem.svg The main article for this category is Catmore...

If the name of the main article is different than the name of the category. For example: if the main article for Category:Sonic the Hedgehog 3 is Sonic the Hedgehog 3, then you will need to use one parameter to specify the article (see below for example).

Alternate usage:

  • {{Catmore|Sonic the Hedgehog 3}}

Which renders:

Sonic Retro emblem.svg The main article for this category is Sonic the Hedgehog 3...

If a second parameter is specified, it will replace the display text for the link.