Template:HeroIcon/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Data source changed |
mNo edit summary |
||
| Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This template creates a small hero icon. The label and link will be automatically translated on a language subpage. | 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 == | ||
| Line 23: | Line 25: | ||
"description": "Custom text.", | "description": "Custom text.", | ||
"type": "string" | "type": "string" | ||
}, | |||
"link": { | |||
"description": "Custom link.", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"description": "Custom image.", | |||
"type": "string", | |||
"example": "Image.png, Image.svg" | |||
}, | }, | ||
"size": { | "size": { | ||
| Line 28: | Line 39: | ||
"type": "string", | "type": "string", | ||
"description": "Icon size.", | "description": "Icon size.", | ||
"example": "30px, 40px, 50px" | |||
}, | |||
"no-link": { | |||
"description": "Removes the target link.", | |||
"type": "boolean", | |||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "true" | ||
] | ] | ||
}, | }, | ||
"no- | "no-file": { | ||
"description": "Removes the | "description": "Removes the file image.", | ||
"type": "boolean", | "type": "boolean", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Line 46: | Line 60: | ||
"true" | "true" | ||
], | ], | ||
"description": " | "description": "Removes any text." | ||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
" | "paramOrder": [ | ||
"1", | |||
"l1", | |||
"link", | |||
"image", | |||
"size", | |||
"no-link", | |||
"no-file", | |||
"icon-only" | |||
] | |||
} | } | ||
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||