Difference between revisions of "Template:CPC flag/doc"

From blackwiki
Jump to navigation Jump to search
imported>Daviddwd
m (fixed category link)
imported>John of Reading
m (Typo/general fixes, replaced: the the → to the)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 +
== Usage ==
 +
 
== Usage ==
 
== Usage ==
  
 +
<code><nowiki>{{CPC flag}}</nowiki></code> yields {{CPC flag}}.
 +
 +
<code><nowiki>{{CPC flag|size=30px}}</nowiki></code> yields {{CPC flag|size=30px}}.
  
 
== See also ==
 
== See also ==
Line 11: Line 17:
 
<templatedata>
 
<templatedata>
 
{
 
{
"description": "An inline flag and link the the article [[Communist Party of China]], intended for infoboxes",
+
"description": "An inline flag and link to the article [[Communist Party of China]], intended for infoboxes",
"params": {}
+
"params": {
 +
"size": {
 +
"label": "Flag size",
 +
"description": "(optional) adjusts the flag size",
 +
"type": "string",
 +
"default": "23px"
 +
}
 +
}
 
}
 
}
 
</templatedata>
 
</templatedata>

Latest revision as of 16:16, 6 February 2019

Usage

Usage

{{CPC flag}} yields 23px Communist Party of China.

{{CPC flag|size=30px}} yields 30px Communist Party of China.

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CPC flag

An inline flag and link to the article [[Communist Party of China]], intended for infoboxes

Template parameters

ParameterDescriptionTypeStatus
Flag sizesize

(optional) adjusts the flag size

Default
23px
Stringoptional