Template talk:Number

From Wikipedia, the free encyclopedia

Contents

Documentation - Discussion

[edit] Documentation

The template documentation below is transcluded from Template:Number/doc [edit]
This template employs intricate features of template syntax.
Please do not alter it unless you are certain to understand its setup and parser functions and are ready to repair/revert all collateral damage if results are unexpected.
Any experiments should be conducted and all improvements tested in the template sandbox, or in your user space, before applying anything here.

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

[edit] Usage

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

[edit] Example

For the number 1000:

[edit] 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
}}

[edit] Result

1000
Cardinal one thousand
Ordinal 10001000th
(one thousand1000th)
Factorization 2^3 \cdot 5^3
Roman numeral
Unicode symbol(s) Ⅿ, ⅿ, ↀ
Binary 1111101000
Octal 1750
Hexadecimal 3E8


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

[edit] See also



[edit] Discussion

Contents


[edit] Creation

This template was created to help with the creation of new number articles.--Commander Keane 23:11, 8 December 2005 (UTC)

I'm converting it into a proper template. Gonna take me a bit. Dread Lord CyberSkull ✎☠ 04:18, 24 December 2005 (UTC)

[edit] Unused?

Is there any special reason why this template has not been used yet, or can I add it to some articles on numbers ? Schutz 09:50, 30 August 2006 (UTC)

Same as above, why is it unused?-Andrew c 01:16, 9 February 2007 (UTC)

[edit] Adding this template to different languages

How do I add this and other templates to a different language wikipedia? Any help is appreciated. --Sarvagna 16:46, 24 February 2007 (UTC)

You'd need to copy the code from the template page and create a corresponding template page at the other language wikipedia. Once you do that, you can add an interwiki link to this template's page. For example, go the template:fact and look at the left column for the interlanguage links. Each language has its own unique set of templates. (However, if you copy the code from this or any other template to another language wikipedia, make sure you translate the text. English doesn't help users of other language wikipedias). Hope this helps.-Andrew c 17:46, 24 February 2007 (UTC)
Thanks. I will try to do it. --Sarvagna 19:39, 24 February 2007 (UTC)