Difference between revisions of "Template:Format"
(Created page with "<includeonly><code>{{{{#if:{{{subst|}}}|subst:}}{{#ifeq:{{padleft:|1|{{{1}}}}}|:|:[[{{FULLPAGENAME:{{{1}}}}}]]|{{#switch:{{NAMESPACE:{{{1}}}}}|{{ns:0}}|{{ns:10}}...") |
(No difference)
|
Revision as of 19:26, 23 October 2019
Template used to format uniformally (resp.) property and item labels. Useful into other templates to display with the same conventions. Used for example in {{C}}
Usage
{{Format|item|Universe}}
{{Item|Universe}}
{{Format|property|instance of}}
{{Property|instance of}}
{{Format|property|
{{Instance of}}
}}
{{Format|item|Universe|color=Blue}}
{{Item|Universe}}
{{Format|value|no value|color=None}}
{{Value|no value}}
See also
{{C}}
<templatedata>
{
"params": {
"1": {
"aliases": [
"type"
],
"label": "type of format to use",
"description": "\"value\" for a claim value, \"item\" for an item, \"property\" for a property ",
"example": "{{Item|Q5}}
",
"type": "string",
"required": true,
"suggested": true
},
"2": {
"aliases": [
"value"
],
"description": "the value to format",
"example": "Q5, no value, P31, instance of, ...",
"type": "string",
"suggested": true
},
"color": {}
},
"description": "Used to format properties, items or statement values in a consistent way, used for example in Template:Claim",
"format": "inline"
}
</templatedata>
The above documentation is transcluded from Template:Format/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |