Difference between revisions of "Template:Cardinal/doc"

From blackwiki
Jump to navigation Jump to search
(Fixed typo)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
This template converts an [[Ordinal number (linguistics)|ordinal number]] into a [[Cardinal number (linguistics)|cardinal number]] by stripping the [[ordinal indicator]] off the end of the only parameter. Specifically, it removes any series of letters that immediately follows a numeral.
 
This template converts an [[Ordinal number (linguistics)|ordinal number]] into a [[Cardinal number (linguistics)|cardinal number]] by stripping the [[ordinal indicator]] off the end of the only parameter. Specifically, it removes any series of letters that immediately follows a numeral.
 +
 +
This template should not be used in running prose in articles; it is intended for automated script processing of numeric data.  Writing something like "<code><nowiki>on August {{cardinal|16th}}, 2004</nowiki></code>" serves no purpose, and just makes the wikicode harder to understand and edit.
  
 
== Usage ==
 
== Usage ==
Line 16: Line 18:
 
*{{tl|ordinal}}, which adds an ordinal indicator to a cardinal number
 
*{{tl|ordinal}}, which adds an ordinal indicator to a cardinal number
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Numeric templates]]
+
[[Category:Number templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:49, 24 April 2020

This template converts an ordinal number into a cardinal number by stripping the ordinal indicator off the end of the only parameter. Specifically, it removes any series of letters that immediately follows a numeral.

This template should not be used in running prose in articles; it is intended for automated script processing of numeric data. Writing something like "on August {{cardinal|16th}}, 2004" serves no purpose, and just makes the wikicode harder to understand and edit.

Usage

See also

  • {{ordinal}}, which adds an ordinal indicator to a cardinal number