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

From blackwiki
Jump to navigation Jump to search
imported>Daviddwd
m (Update to example)
imported>Daviddwd
(Update to TemplateData)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
  
<nowiki><code>{{CPC flag}}</code></nowiki> yields {{CPC flag}}.
+
== Usage ==
  
<nowiki><code>{{CPC flag|size=30px}}</code></nowiki> yields {{CPC flag|size=30px}}.
+
<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 15: Line 17:
 
{
 
{
 
"description": "An inline flag and link the the article [[Communist Party of China]], intended for infoboxes",
 
"description": "An inline flag and link the 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>

Revision as of 20:16, 12 January 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 the the article [[Communist Party of China]], intended for infoboxes

Template parameters

ParameterDescriptionTypeStatus
Flag sizesize

(optional) adjusts the flag size

Default
23px
Stringoptional