Template:Numrec/sandbox
| This is the template sandbox page for Template:Numrec (diff). See also the companion subpage for test cases. |
This 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
Usage
The first parameter corresponds to a subtemplate of this template, e.g., Palestine for {{Numrec/Palestine}}. The second and third parameter inserts wikilinked text before and after the number. Other optional parameters are:
asof = Sto turn on the "As of" prefix (start)asof = Eto turn on the "as of" suffix (end)alt = footo change the "As of" prefix to "foo"alt2 = barto add "bar" after the "As of" date and before the wikilinked textlink = Nto turn off linkingspell = Nto turn off spelling out numbers less than 10 and listing them simply as integers.pcent = total numberto add a percentage out of "total number". If pcent=UN then the total number of UN member states is used.N = numberoutputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total.W = Youtputs number of states who have withdrawn recognition as opposed to the number of recognizers.
Examples
{{Numrec|Palestine|the|countries}}→ the 157 countries{{Numrec|Palestine|the|countries|link=N}}→ the 157 countries{{Numrec|Abkhazia|the|countries}}→ the seven countries{{Numrec|Abkhazia|the|countries|spell=N}}→ the 7 countries{{Numrec|Palestine|although|of the countries|link=N|pcent=193}}→ although 81.3% of the countries{{Numrec|Palestine|a total of|countries ...|link=N|asof=S}}→ As of 23 September 2025, a total of 157 countries ...{{Numrec|Palestine|a total of|countries ...|link=N|asof=S|alt=as of }}→ as of 23 September 2025, a total of 157 countries ...{{Numrec|Palestine|a total of|countries ...|link=N|asof=E}}→ a total of 157 countries ... as of 23 September 2025{{Numrec|Palestine|a total of|countries ...|link=N|asof=E|alt=, by }}→ a total of 157 countries ... , by 23 September 2025{{Numrec|Israel|a total of|countries that recognize Israeli statehood|asof=S|alt2=there are}}→ As of 12 December 2020, there are a total of 165 countries that recognize Israeli statehood
This 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| State | 1 | State of limited recognition
| String | required |
| linked text before number | 2 | Text before number/percent included in the wikilink
| String | optional |
| linked text after number | 3 | Text after the number/percent included in the wikilink
| Unknown | optional |
| Show 'as of'? | asof | Shows 'as of' at start or end
| String | suggested |
| Alternate prefix/suffix text | alt | Replaces 'As of' with the text entered
| String | optional |
| text before wikilink | alt2 | Text included between the date (if shown) and wikilinked text | Unbalanced wikitext | optional |
| Show link? | link | If 'N', disables links
| String | optional |
| Show as percent? | pcent percent | If a number, shows percent of countries recognizing the state
| String | optional |
| States that withdrew recognition? | W show_withdrawn | If 'Y', shows states that withdrew recognition instead of currently extend
| String | optional |
| UN non-member states recognizing | N | Number of states which have extended recognition
| Number | optional |
| Spell numbers less than 10? | spell | If 'N', lists numbers less than 10 as integers (default is to spell them out)
| String | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.