Template:Most populous cities of the world/sandbox

Template documentation[view · edit · history · purge]

This template is intended for use with categories involving international interactions or trends like trade and international politics. Local topics like buildings, culture, and people should use city- and country-specific templates.

Usage


{{Most populous cities of the world |prefix= |suffix= }}

Template parameters

ParameterDescriptionDefaultStatus
prefixprefixprefix to use before the subdivision name in the generated link to the full target page nameemptyoptional
suffixsuffixsuffix to use after the subdivision name in the generated link to the full target page nameemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template is intended for use with categories involving international interactions or trends like trade and international politics. Local topics like buildings, culture, and people should use city- and country-specific templates.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
prefixprefix

prefix to use before the subdivision name in the generated link to the full target page name

Stringoptional
suffixsuffix

suffix to use after the subdivision name in the generated link to the full target page name

Stringoptional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:

Examples

{{Most populous cities of the world|prefix=:Category:Demonstrations and protests in}}

renders as:


{{Most populous cities of the world|prefix=:Category:Demonstrations and protests in|suffix=by year}}

renders as:

See also

Sandbox and testcases

Localization

This template is not intended to be localized.

Category:Templates not requiring internationalization Category:Category navigational templates for cities