Revision as of 04:29, 29 October 2011 view sourceDanlaycock (talk | contribs)Autopatrolled, Extended confirmed users, File movers, Pending changes reviewers, Rollbackers, Template editors31,498 edits automate UN num← Previous edit | Revision as of 04:31, 29 October 2011 view source Danlaycock (talk | contribs)Autopatrolled, Extended confirmed users, File movers, Pending changes reviewers, Rollbackers, Template editors31,498 edits update docNext edit → | ||
Line 12: | Line 12: | ||
* <code>alt = foo</code> to change the "As of" prefix to "foo" | * <code>alt = foo</code> to change the "As of" prefix to "foo" | ||
* <code>link = N</code> to turn off linking | * <code>link = N</code> to turn off linking | ||
* <code>pcent = total number</code> to add a percentage out of "total number" | * <code>pcent = total number</code> to add a percentage out of "total number". If pcent=UN then the total number of UN member states is used. | ||
* <code>N = number</code> outputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total. | * <code>N = number</code> outputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total. | ||
Revision as of 04:31, 29 October 2011
Template documentationThis template is used to display the current number of member states which recognize a particular state. To update the number, month, year, or name produced by this template, you must modify the corresponding subtemplate.
List of subtemplates
- Numrec/Abkhazia
- Numrec/ESH
- Numrec/Holy See
- Numrec/Israel
- Numrec/KOS
- Numrec/Kos
- Numrec/Kosovo
- Numrec/PAL
- Numrec/PSE
- Numrec/Pal
- Numrec/Palestine
- Numrec/ROC
- Numrec/Republic of China
- Numrec/RoC
- Numrec/SADR
- Numrec/Sahrawi Arab Democratic Republic
- Numrec/South Ossetia
- Numrec/TWN
- Numrec/Taiwan
- Numrec/VAT
- Numrec/Vatican City
- Numrec/Western Sahara
- Numrec/sandbox
- Numrec/subdoc
- Numrec/testcases
Usage
The first parameter corresponds to a subtemplate of this template, e.g., Pal
for {{Numrec/Pal}}. The second and third parameter inserts text before and after the number. Other optional parameters are:
asof = S
to turn on the "As of" prefixasof = E
to turn on the "as of" suffixalt = foo
to change the "As of" prefix to "foo"link = N
to turn off linkingpcent = total number
to add a percentage out of "total number". If pcent=UN then the total number of UN member states is used.N = number
outputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total.
Examples
{{Numrec|Pal|the|countries}}
→ the 146 countries{{Numrec|Pal|the|countries|link=N}}
→ the 146 countries{{Numrec|Pal|although|of the countries|link=N|pcent=193}}
→ although 75.6% of the countries{{Numrec|Pal|a total of|countries ...|link=N|asof=S}}
→ As of 21 June 2024, a total of 146 countries ...{{Numrec|Pal|a total of|countries ...|link=N|asof=S|alt=as of }}
→ as of 21 June 2024, a total of 146 countries ...{{Numrec|Pal|a total of|countries ...|link=N|asof=E}}
→ a total of 146 countries ... as of 21 June 2024{{Numrec|Pal|a total of|countries ...|link=N|asof=E|alt=, by }}
→ a total of 146 countries ... , by 21 June 2024
Subpages of this template. Category: