Misplaced Pages

Template:Numrec: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 17:41, 20 October 2011 view sourceFrietjes (talk | contribs)Autopatrolled, Extended confirmed users, Template editors1,000,827 editsmNo edit summary← Previous edit Revision as of 17:53, 20 October 2011 view source Frietjes (talk | contribs)Autopatrolled, Extended confirmed users, Template editors1,000,827 edits doc and catNext edit →
Line 1: Line 1:
{{#ifeq: {{{asof}}}|S|{{#if: {{{alt|}}}|{{{alt}}}|As of}} {{#ifeq: {{Numrec/{{{1|Pal}}}|M}}|||{{Numrec/{{{1|Pal}}}|M}}{{Sp}} }} {{Numrec/{{{1|Pal}}}|Y}},{{Sp}} }}{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{Numrec/{{{1|Pal}}}|N}}|{{{pcent}}}|1}}|{{Numrec/{{{1|Pal}}}|N}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}|]}}{{#ifeq: {{{asof}}}|E|{{Sp}}{{#if: {{{alt|}}}|{{{alt}}}|as of}} {{#ifeq: {{Numrec/{{{1|Pal}}}|M}}|||{{Numrec/{{{1|Pal}}}|M}}{{Sp}}}} {{Numrec/{{{1|Pal}}}|Y}} }}<noinclude>{{uncat}}</noinclude> {{#ifeq: {{{asof}}}|S|{{#if: {{{alt|}}}|{{{alt}}}|As of{{sp}}}}{{#if: {{Numrec/{{{1|Pal}}}|M}}|{{Numrec/{{{1|Pal}}}|M}}{{sp}}}}{{Numrec/{{{1|Pal}}}|Y}},{{sp}}}}{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{Numrec/{{{1|Pal}}}|N}}|{{{pcent}}}|1}}|{{Numrec/{{{1|Pal}}}|N}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}|]}}{{#ifeq: {{{asof}}}|E|{{Sp}}{{#if: {{{alt|}}}|{{{alt}}}|as of}} {{#ifeq: {{Numrec/{{{1|Pal}}}|M}}|{{Numrec/{{{1|Pal}}}|M}}{{sp}}}}{{Numrec/{{{1|Pal}}}|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/}}

=== Usage ===
The first parameter corresponds to a subtemplate of this template, e.g., <code>Pal</code> for {{tl|Numrec/Pal}}.
* <code>asof = S</code> to turn on the "As of" prefix
* <code>asof = E</code> to turn on the "as of" suffix
* <code>alt = foo</code> to change the "As of" prefix to "foo"
* <code>link = N</code> to turn off linking
* <code>pcent = Y</code> to add the percentage

}}
]
</noinclude>

Revision as of 17:53, 20 October 2011

146

Template documentation

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., Pal for {{Numrec/Pal}}.

  • asof = S to turn on the "As of" prefix
  • asof = E to turn on the "as of" suffix
  • alt = foo to change the "As of" prefix to "foo"
  • link = N to turn off linking
  • pcent = Y to add the percentage
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Subpages of this template. Category: