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 editContent deleted Content addedVisualWikitext
Revision as of 08:16, 10 December 2018 view sourceDaviddwd (talk | contribs)Extended confirmed users13,790 editsNo edit summary← Previous edit Latest revision as of 08:22, 10 December 2018 view source Daviddwd (talk | contribs)Extended confirmed users13,790 editsNo edit summary 
Line 50: Line 50:
"label": "linked text after number", "label": "linked text after number",
"example": "that recognize Kosovo", "example": "that recognize Kosovo",
"type": "string",
"description": "Text after the number/percent included in the wikilink" "description": "Text after the number/percent included in the wikilink"
}, },

Latest revision as of 08:22, 10 December 2018

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., Palestine for {{Numrec/Palestine}}. The second and third parameter inserts wikilinked text before and after the number. Other optional parameters are:

  • asof = S to turn on the "As of" prefix (start)
  • asof = E to turn on the "as of" suffix (end)
  • alt = foo to change the "As of" prefix to "foo"
  • alt2 = bar to add "bar" after the "As of" date and before the wikilinked text
  • link = N to turn off linking
  • spell = N to turn off spelling out numbers less than 10 and listing them simply as integers.
  • pcent = 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.
  • W = Y outputs number of states who have withdrawn recognition as opposed to the number of recognizers.

Examples

  • {{Numrec|Palestine|the|countries}}the 146 countries
  • {{Numrec|Palestine|the|countries|link=N}} → the 146 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 75.6% of the countries
  • {{Numrec|Palestine|a total of|countries ...|link=N|asof=S}} → As of 21 June 2024, a total of 146 countries ...
  • {{Numrec|Palestine|a total of|countries ...|link=N|asof=S|alt=as of }} → as of 21 June 2024, a total of 146 countries ...
  • {{Numrec|Palestine|a total of|countries ...|link=N|asof=E}} → a total of 146 countries ... as of 21 June 2024
  • {{Numrec|Palestine|a total of|countries ...|link=N|asof=E|alt=, by }} → a total of 146 countries ... , by 21 June 2024
  • {{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
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Subpages of this template.

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.

Template parameters

ParameterDescriptionTypeStatus
State1

State of limited recognition

Default
Palestine
Stringrequired
linked text before number2

Text before number/percent included in the wikilink

Example
"the", "a total of"
Stringoptional
linked text after number3

Text after the number/percent included in the wikilink

Example
that recognize Kosovo
Stringoptional
Show 'as of'?asof

Shows 'as of' at start or end

Example
S (start), E (end)
Stringsuggested
Alternate prefix/suffix textalt

Replaces 'As of' with the text entered

Example
", by"
Stringoptional
text before wikilinkalt2

Text included between the date (if shown) and wikilinked text

Unbalanced wikitextoptional
Show link?link

If 'N', disables links

Example
N
Stringoptional
Show as percent?pcent percent

If a number, shows percent of countries recognizing the state

Example
UN (or, "total number")
Stringoptional
States that withdrew recognition?W show_withdrawn

If 'Y', shows states that withdrew recognition instead of currently extend

Example
Y
Stringoptional
UN non-member states recognizingN

Number of states which have extended recognition

Example
4
Numberoptional
Spell numbers less than 10?spell

If 'N', lists numbers less than 10 as integers (default is to spell them out)

Example
N
Stringoptional


Category: