Template:HeroIcon/doc: Difference between revisionsGive feedback
m example for subpage parameter |
mNo edit summary |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This | This template creates a small hero icon. The label and link will be automatically translated on a language subpage. | ||
For more details, see [[Module:Icon]]. | |||
== Examples == | == Examples == | ||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{HeroIcon| | {{HeroIcon|Trapper}} | ||
{{HeroIcon|Dynamo|l1=Professor Dynamo}} | |||
{{HeroIcon| | {{HeroIcon|Warden|size=40px}} | ||
{{HeroIcon| | |||
</pre> | </pre> | ||
{{HeroIcon| | {{HeroIcon|Trapper}} | ||
{{HeroIcon|Dynamo|l1=Professor Dynamo}} | |||
{{HeroIcon|Warden|size=40px}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"description": " | "description": "Hero name.", | ||
"type": "string", | |||
"required": true | |||
}, | |||
"l1": { | |||
"description": "Custom text.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "link": { | ||
" | "description": "Custom link.", | ||
"type": "string" | |||
}, | |||
"image": { | |||
"description": "Custom image.", | |||
"type": "string", | "type": "string", | ||
" | "example": "Image.png, Image.svg" | ||
}, | }, | ||
"size": { | "size": { | ||
"type": " | "default": "20px", | ||
"description": " | "type": "string", | ||
" | "description": "Icon size.", | ||
" | "example": "30px, 40px, 50px" | ||
}, | |||
"no-link": { | |||
"description": "Removes the target link.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"no-file": { | |||
"description": "Removes the file image.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
] | |||
}, | |||
"icon-only": { | |||
"type": "boolean", | |||
"suggestedvalues": [ | |||
"true" | |||
], | |||
"description": "Removes any text." | |||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "1", | ||
" | "l1", | ||
"size" | "link", | ||
] | "image", | ||
"size", | |||
"no-link", | |||
"no-file", | |||
"icon-only" | |||
], | |||
"description": " " | |||
} | } | ||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||