Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Numrec
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{#ifeq: {{{asof}}}|S|{{{alt|As of}}}{{sp}}{{#if: {{Numrec/{{{1|Palestine}}}|D}}|{{Numrec/{{{1|Palestine}}}|D}}{{sp}}}}{{#if: {{Numrec/{{{1|Palestine}}}|M}}|{{Numrec/{{{1|Palestine}}}|M}}{{sp}}}}{{Numrec/{{{1|Palestine}}}|Y}},{{sp}}}}{{#if: {{{alt2|}}}|{{{alt2}}}{{sp}}}}{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}} }}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#ifeq: {{{spell}}}|N|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}} }}|{{#ifexpr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}<10 | {{spellnum|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}} | {{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}} }}}}}}{{#if:{{{3|}}}| {{{3}}} }}|[[International recognition of {{Numrec/{{{1|Palestine}}}|THE}} {{Numrec/{{{1|Palestine}}}|NAME}}|{{#if: {{{2|}}}|{{{2}}} }}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#ifeq: {{{spell}}}|N|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}} }}|{{#ifexpr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}<10 | {{spellnum|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}} | {{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}} }}}}}}{{#if:{{{3|}}}| {{{3}}} }}]]}}{{#ifeq:{{{asof}}}|E|{{sp}}{{{alt|as of}}}{{sp}}{{#if: {{Numrec/{{{1|Palestine}}}|D}}|{{Numrec/{{{1|Palestine}}}|D}}{{sp}}}}{{#if:{{Numrec/{{{1|Palestine}}}|M}}|{{Numrec/{{{1|Palestine}}}|M}}{{sp}}}}{{Numrec/{{{1|Palestine}}}|Y}} }}<noinclude>{{documentation |content = 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 ==== {{Special:PrefixIndex/Template:Numrec/|hideredirects=1}} === Usage === The first parameter corresponds to a subtemplate of this template, e.g., <code>Palestine</code> for {{tl|Numrec/Palestine}}. The second and third parameter inserts wikilinked text before and after the number. Other optional parameters are: * <code>asof = S</code> to turn on the "As of" prefix (start) * <code>asof = E</code> to turn on the "as of" suffix (end) * <code>alt = foo</code> to change the "As of" prefix to "foo" * <code>alt2 = bar</code> to add "bar" after the "As of" date and before the wikilinked text * <code>link = N</code> to turn off linking * <code>spell = N</code> to turn off spelling out numbers less than 10 and listing them simply as integers. * <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>W = Y</code> outputs number of states who have withdrawn recognition as opposed to the number of recognizers. === Examples === * <code><nowiki>{{Numrec|Palestine|the|countries}}</nowiki></code> β {{Numrec|Palestine|the|countries}} * <code><nowiki>{{Numrec|Palestine|the|countries|link=N}}</nowiki></code> β {{Numrec|Palestine|the|countries|link=N}} * <code><nowiki>{{Numrec|Abkhazia|the|countries}}</nowiki></code> β {{Numrec|Abkhazia|the|countries}} * <code><nowiki>{{Numrec|Abkhazia|the|countries|spell=N}}</nowiki></code> β {{Numrec|Abkhazia|the|countries|spell=N}} * <code><nowiki>{{Numrec|Palestine|although|of the countries|link=N|pcent=193}}</nowiki></code> β {{Numrec|Palestine|although|of the countries|link=N|pcent=193}} * <code><nowiki>{{Numrec|Palestine|a total of|countries ...|link=N|asof=S}}</nowiki></code> β {{Numrec|Palestine|a total of|countries ...|link=N|asof=S}} * <code><nowiki>{{Numrec|Palestine|a total of|countries ...|link=N|asof=S|alt=as of }}</nowiki></code> β {{Numrec|Palestine|a total of|countries ...|link=N|asof=S|alt=as of }} * <code><nowiki>{{Numrec|Palestine|a total of|countries ...|link=N|asof=E}}</nowiki></code> β {{Numrec|Palestine|a total of|countries ...|link=N|asof=E}} * <code><nowiki>{{Numrec|Palestine|a total of|countries ...|link=N|asof=E|alt=, by }}</nowiki></code> β {{Numrec|Palestine|a total of|countries ...|link=N|asof=E|alt=, by }} * <code><nowiki>{{Numrec|Israel|a total of|countries that recognize Israeli statehood|asof=S|alt2=there are}}</nowiki></code> β {{Numrec|Israel|a total of|countries that recognize Israeli statehood|asof=S|alt2=there are}} }} <templatedata> { "params": { "1": { "label": "State", "description": "State of limited recognition", "default": "Palestine", "required": true, "type": "string" }, "2": { "label": "linked text before number", "example": "\"the\", \"a total of\"", "type": "string", "description": "Text before number/percent included in the wikilink" }, "3": { "label": "linked text after number", "example": "that recognize Kosovo", "type": "string", "description": "Text after the number/percent included in the wikilink" }, "asof": { "label": "Show 'as of'?", "description": "Shows 'as of' at start or end", "example": "S (start), E (end)", "type": "string", "suggested": true }, "alt": { "label": "Alternate prefix/suffix text", "description": "Replaces 'As of' with the text entered", "example": "\", by\"", "type": "string" }, "alt2": { "label": "text before wikilink", "type": "unbalanced-wikitext", "description": "Text included between the date (if shown) and wikilinked text" }, "link": { "label": "Show link?", "description": "If 'N', disables links", "example": "N", "type": "string" }, "pcent": { "aliases": [ "percent" ], "label": "Show as percent?", "description": "If a number, shows percent of countries recognizing the state", "example": "UN (or, \"total number\")", "type": "string" }, "W": { "label": "States that withdrew recognition?", "description": "If 'Y', shows states that withdrew recognition instead of currently extend", "example": "Y", "type": "string", "aliases": [ "show_withdrawn" ] }, "N": { "label": "UN non-member states recognizing", "description": "Number of states which have extended recognition", "example": "4", "type": "number" }, "spell": { "label": "Spell numbers less than 10?", "description": "If 'N', lists numbers less than 10 as integers (default is to spell them out)", "example": "N", "type": "string" } }, "description": "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." } </templatedata> [[Category:Foreign relations templates]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation
(
edit
)
Template:Number to word
(
edit
)
Template:Numrec
(
edit
)
Template:Numrec/Abkhazia
(
edit
)
Template:Numrec/Israel
(
edit
)
Template:Numrec/Palestine
(
edit
)
Template:Pct
(
edit
)
Template:Sp
(
edit
)
Template:Spellnum
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:ConvertNumeric
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/styles.css
(
edit
)