Template:Nth/doc

From Gineipaedia, the Legend of Galactic Heroes wiki

(Difference between revisions)
Jump to: navigation, search
(create doc)
m
Line 3: Line 3:
;Syntax
;Syntax
-
:<code><nowiki>{{nth|number}}</nowiki></code>
+
:<code><nowiki>{{nth|<number>}}</nowiki></code>
;Sample output
;Sample output

Revision as of 19:29, 27 March 2011

Description
Template for automatically adding the appropriate ordinal indicator (-st, -nd, -rd, -th) to a number.
Syntax
{{nth|<number>}}
Sample output
{{nth|25}} produces: 25th
Notes
This template will be seen most commonly in media infoboxes; for instance, {{infobox episode}} uses it for displaying the order of release (e.g., '21st of 110 released in LOGH').
Acknowledgements
Adapted from a similar template on Memory Alpha.
Personal tools
Namespaces
Variants
Actions
Miscellany
Common
Tool box