Template:Numrec

{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}} }}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#expr:{{Numrec/|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}}{{#if:{{{3|}}}| {{{3}}} }}|NAME}}|{{#if: {{{2|}}}|{{{2}}} }}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}}|{{{pcent}}}}}|1}}|{{#expr:{{Numrec/|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}}{{#if:{{{3|}}}| {{{3}}} }}}}{{#ifeq:|E| {{#if: {{Numrec/{{{1|Pal}}}|D}}|{{Numrec/{{{1|Pal}}}|D}} }}{{#if:{{Numrec/{{{1|Pal}}}|M}}|{{Numrec/{{{1|Pal}}}|M}} }}{{Numrec/{{{1|Pal}}}|Y}} }} {{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.

Usage
The first parameter corresponds to a subtemplate of this template, e.g.,  for Numrec/Pal. The second and third parameter inserts wikilinked text before and after the number. Other optional parameters are:
 * to turn on the "As of" prefix (start)
 * to turn on the "as of" suffix (end)
 * to change the "As of" prefix to "foo"
 * to add "bar" after the "As of" date and before the wikilinked text
 * to turn off linking
 * to add a percentage out of "total number". If pcent=UN then the total number of UN member states is used.
 * outputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total.
 * outputs number of states who have withdrawn recognition as opposed to the number of recognizers.

Examples
}}
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;