Difference between revisions of "Template:Infobox number/doc"

From blackwiki
Jump to navigation Jump to search
imported>Down10
(adding doc page pattern; WIP)
 
imported>Down10
(documentation added)
Line 1: Line 1:
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{editing}}
+
<includeonly>{{esoteric}}</includeonly>
{{esoteric}}
 
  
{{compactDocToc}}
+
{{tl|Number}} creates an [[wikipedia:infobox|infobox]] for [[interger]] article pages.
=Documentation=
 
 
 
<code>{&#123;[[Template:{{PAGENAME}}|{{lcfirst:{{PAGENAME}}}}]]&#125;}</code> does something, edit this line saying what.
 
  
 
== Usage ==
 
== Usage ==
<!-- Abstract usage of the template -->
 
 
<code>{&#123;{{PAGENAME}}&#125;}</code> - no parameter if applicable
 
 
<code>{&#123;{{PAGENAME}}|param&#125;}</code> - positional parameter
 
 
<code>{&#123;{{PAGENAME}}|name=value&#125;}</code> - named parameter
 
== Example ==
 
<!-- for the documentation don't subst the result -->
 
{| class="wikitable"
 
| '''Code'''
 
| '''Result'''
 
|-
 
| valign="top" | <code>{&#123;{{PAGENAME}}&#125;}</code>
 
| {{msg:{{PAGENAME}}}}
 
|-
 
| valign="top" | <code>{&#123;{{PAGENAME}}&#124;param&#125;}</code>
 
| {{msg:{{PAGENAME}}|param}}
 
|}
 
 
== See also ==
 
 
<!-- self-listing for quick access on edit history -->
 
* {{Lts|{{PAGENAME}}}}
 
* <!-- links to relevant pages -->
 
 
= Discussion =
 
__TOC__ <!-- Created from Template:Doctl -->
 
''Add issues below as you see fit, sign with'' ~<nowiki>~~</nowiki>~
 
 
 
 
<pre>
 
<pre>
 
{{Number|number =  
 
{{Number|number =  
Line 62: Line 27:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
== Example ==
 +
<!-- for the documentation don't subst the result -->
 +
 +
For the number [[1000 (number)|1000]]:
 +
=== Code ===
 +
<pre>
 +
{{Number|number= 1000
 +
| prev = 999
 +
| next = 1001
 +
| range = 1000-10000
 +
| cardinal = one thousand
 +
| ordinal = th
 +
| ordinal text =
 +
| numeral =
 +
| factorization = <math>2^3 \cdot 5^3</math>
 +
| prime =
 +
| divisor =
 +
| roman = Ⅿ
 +
| unicode = Ⅿ, ⅿ, ↀ
 +
| greek prefix = chilia-
 +
| latin prefix = milli-
 +
| bin = 1111101000
 +
| oct = 1750
 +
| duo =
 +
| hex = 3E8
 +
}}
 +
</pre>
 +
 +
=== Result ===
 +
{{Number|number = 1000
 +
| prev = 999
 +
| next = 1001
 +
| range = 1000-10000
 +
| cardinal = one thousand
 +
| ordinal = 1000th
 +
| ordinal text =
 +
| numeral =
 +
| factorization = <math>2^3 \cdot 5^3</math>
 +
| prime =
 +
| divisor =
 +
| roman = Ⅿ
 +
| unicode = Ⅿ, ⅿ, ↀ
 +
| greek_prefix = chilia
 +
| latin_prefix = milli
 +
| bin = 1111101000
 +
| oct = 1750
 +
| duo =
 +
| hex = 3E8
 +
}}
 +
{{-}}
 +
 +
[[9 (number)]] has the following additional fields (added to the ''misc'' parameter):
 +
{| class=wikitable
 +
| [[Hindu-Arabic numerals|Arabic-Indic numeral]]
 +
| &#1641;
 +
|-
 +
| [[Armenian numerals|Armenian numeral]]
 +
| &#1337;
 +
|-
 +
| [[Chinese numerals|Chinese numeral]]
 +
| &#20061; <br> &#29590; (formal writing)
 +
|-
 +
| [[Arabic numerals|Eastern Arabic-Indic (Persian and Urdu) numeral]]
 +
| &#1785;
 +
|-
 +
| [[Greek numerals|Greek numeral]]
 +
| &#952;´
 +
|-
 +
| [[Hebrew numerals|Hebrew numeral]]
 +
| <font style="font-size:150%;">&#1496;</font> (Tet)
 +
|-
 +
| [[Indian numerals|Indian (Hindi/Devanagari) numeral]]
 +
| &#2415;
 +
|-
 +
| [[Japanese numerals|Japanese numeral]]
 +
| &#20061; <br> &#29590; (formal writing)
 +
|-
 +
|-
 +
| [[Arabic numerals|Tamil numeral]]
 +
| &#3055;
 +
|-
 +
| [[Thai numerals|Thai numeral]]
 +
| &#3673;
 +
|}
 +
 +
== See also ==
 +
<!-- self-listing for quick access on edit history -->
 +
* {{Lts|{{PAGENAME}}}}
 +
* [[:Category:Numeric templates]]
  
 
<includeonly>
 
<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
 
[[Category:Numeric templates|{{PAGENAME}}]]
 
[[Category:Numeric templates|{{PAGENAME}}]]
 
[[Category:Infobox templates|{{PAGENAME}}]]
 
[[Category:Infobox templates|{{PAGENAME}}]]

Revision as of 00:59, 27 December 2006

Template:Template doc page viewed directly


{{Number}} creates an infobox for interger article pages.

Usage

{{Number|number = 
| range = 
| cardinal = 
| ordinal = 
| ordinal text = 
| numeral = 
| factorization = 
| prime = 
| divisor = 
| roman = 
| unicode = 
| greek prefix = 
| latin prefix = 
| bin = 
| oct = 
| duo = 
| hex = 
| misc =
}}

Example

For the number 1000:

Code

{{Number|number= 1000
| prev = 999
| next = 1001
| range = 1000-10000
| cardinal = one thousand
| ordinal = th
| ordinal text = 
| numeral = 
| factorization = <math>2^3 \cdot 5^3</math>
| prime = 
| divisor = 
| roman = Ⅿ
| unicode = Ⅿ, ⅿ, ↀ
| greek prefix = chilia-
| latin prefix = milli-
| bin = 1111101000
| oct = 1750
| duo = 
| hex = 3E8
}}

Result

Template:Number

9 (number) has the following additional fields (added to the misc parameter):

Arabic-Indic numeral ٩
Armenian numeral Թ
Chinese numeral
玖 (formal writing)
Eastern Arabic-Indic (Persian and Urdu) numeral ۹
Greek numeral θ´
Hebrew numeral ט (Tet)
Indian (Hindi/Devanagari) numeral
Japanese numeral
玖 (formal writing)
Tamil numeral
Thai numeral

See also