Template:Numerical titles: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Protected "Template:Numerical titles": vital sorting template for links (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
(Categorize)
Line 24: Line 24:
* category – the category the page is to be added to. This is case sensitive.
* category – the category the page is to be added to. This is case sensitive.


<pre>
  <nowiki>{{Numerical titles
{{Numerical titles
|page      =
|category =
}}
</pre>
 
==== Example ====
<pre>
{{Numerical titles
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
|category  = Science & Medicine
|category  = Science & Medicine
}}
}}</nowiki>
</pre>
</noinclude>
</noinclude>
[[Category:Utility templates]]

Revision as of 00:21, 28 July 2013

Description

This template allows a transcript page (full or 5X5) to be categorized with a sortkey that ensures the proper numerical order and separation of full and 5X5 episodes. For example:

  • SGU Episode 2
  • SGU Episode 35
  • SGU Episode 143
  • 5X5 Episode 5
  • 5X5 Episode 42
  • 5X5 Episode 100

Without this sort key, page names are sorted as a string, and the episodes in the above example would be listed on the category page as:

  • 5X5 Episode 100
  • 5X5 Episode 42
  • 5X5 Episode 5
  • SGU Episode 143
  • SGU Episode 2
  • SGU Episode 35

This template is useful when categories are applied automatically, using another template (e.g. Template:Editing required).

Usage

There are two compulsory parameters:

  • page – the page to be categorized. When used in a template, this should be {{PAGENAME}}.
  • category – the category the page is to be added to. This is case sensitive.
{{Numerical titles
|page      = {{PAGENAME}}
|category  = Science & Medicine
}}