Misplaced Pages

Template:Ru-census2010: 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:02, 23 February 2018 view sourcePrimefac (talk | contribs)Edit filter managers, Autopatrolled, Bureaucrats, Checkusers, Oversighters, Administrators209,781 editsm Changed protection level for "Template:Ru-census2010": high-risk template with 2000+ transclusions ( (indefinite) (indefinite))← Previous edit Revision as of 16:12, 29 September 2020 view source Jonesey95 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Mass message senders, Template editors375,838 edits fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum argumentsNext edit →
Line 1: Line 1:
<includeonly>{{nowrap|{{FORMATNUM:{{{p2010|{{{1}}}}}}}}&thinsp;(])}}{{#switch:{{{punct|{{{2|}}}}}}|;=<nowiki>;</nowiki>|:=<nowiki>:</nowiki>|{{{punct|{{{2|}}}}}}}}<ref name="2010Census">{{ru-pop-ref|2010Census}}</ref></includeonly><noinclude>{{template doc}}</noinclude> <includeonly>{{nowrap|{{FORMATNUM:{{replace|{{{p2010|{{{1}}}}}}|,|}}}}&thinsp;(])}}{{#switch:{{{punct|{{{2|}}}}}}|;=<nowiki>;</nowiki>|:=<nowiki>:</nowiki>|{{{punct|{{{2|}}}}}}}}<ref name="2010Census">{{ru-pop-ref|2010Census}}</ref></includeonly><noinclude>{{template doc}}</noinclude>

Revision as of 16:12, 29 September 2020

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 5,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Usage

This template is intended to simplify entering 2010 Census population information in the articles about Russian administrative divisions and inhabited localities. The template automatically references the data to the appropriate source, so make sure that the number you are entering into the template matches that source. The reference can be re-used elsewhere in the text. The name of the reference is "2010Census".

Parameters

Bolded parameters are mandatory; italicized parameters are optional.

  • p2010 or first unnamed parameter: population recorded by the 2010 Census
  • punct or second unnamed parameter: trailing punctuation sign. There is no trailing punctuation sign by default.
Examples
  • Default output:
{{Ru-census2010|22,321}} → 22,321 (2010 Census)
  • Use custom punctuation:
{{Ru-census2010|22,321|punct=;}} → 22,321 (2010 Census);
Things to remember

Make sure that the article using this template contains a reference section. If it is not there, add the following at the bottom of the article:

==References==
{{Reflist}}

It will produce the following:

  1. ^ Russian Federal State Statistics Service (2011). Всероссийская перепись населения 2010 года. Том 1 [2010 All-Russian Population Census, vol. 1]. Всероссийская перепись населения 2010 года (in Russian). Federal State Statistics Service.
The above documentation is transcluded from Template:Ru-census2010/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: