Vorlage:Icon: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<includeonly><!-- #<WRAPPER> | |||
<includeonly><!-- | --><span class="fs-icon"><!-- | ||
#<PAGE> | |||
-->{{#ifexpr: {{{label|1}}} |<!-- #<Visibility FLAG> | |||
--><span class="label">[[<!-- #<LINK> (alphabetical order by Id) | |||
-->{{#invoke:Item|link|{{{1}}} }}|<!-- | |||
#<TITLE> (alphabetical order by Id) | |||
-->{{#invoke:Item|short|{{{1}}} }}<!-- | |||
-->]]</span><!-- | |||
-->|}}<!-- | |||
--><span><!-- | |||
# <ICON> | |||
# alphabetical order by Id | |||
# compulsory completion for all items | |||
# compulsory duplication in the [Icon/doc] section | |||
-->[[File:{{#invoke:Item|img|{{{1}}} }}.png|<!-- | |||
#<SIZE> | |||
-->{{#switch:{{lc:{{{2}}}}} | |||
|0=60x60px | |||
|1=40x40px | |||
|2=60x60px | |||
|3=96x96px | |||
|4=128x128px | |||
|#default=60x60px | |||
}}<!-- | |||
-->]]</span><!-- | |||
--></span><!-- #</> | |||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "name", | |||
"description": "Resource name", | |||
"example": "{{Icon|Force}}", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "size", | |||
"description": "Icon size", | |||
"example": "{{Icon|Force|3}}", | |||
"type": "number", | |||
"required": false, | |||
"default": "2" | |||
}, | |||
"label": { | |||
"label": "label", | |||
"description": "Visibility flag for the name parameter", | |||
"example": "{{Icon|Force||label=0}}", | |||
"type": "boolean", | |||
"required": false, | |||
"default": "1" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"label" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Version vom 29. November 2025, 16:31 Uhr
Vorlage:Documentation <templatedata> { "params": { "1": { "label": "name", "description": "Resource name", "example": "", "type": "string", "required": true }, "2": { "label": "size", "description": "Icon size", "example": "", "type": "number", "required": false, "default": "2" }, "label": { "label": "label", "description": "Visibility flag for the name parameter", "example": "", "type": "boolean", "required": false, "default": "1" } }, "paramOrder": [ "1", "2", "label" ], "format": "inline" } </templatedata>