| Latest revision |
Your text |
| 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 icon link template is used to include a head shot of the hero. |
|
| |
|
| For more details, see [[Module:Icon]].
| | === Examples === |
| | <pre>{{HeroIcon|Hero=Abrams}}</pre> |
| | {{HeroIcon|Hero=Abrams}} |
|
| |
|
| == Examples ==
| | <pre>{{HeroIcon|Hero=Bebop}}</pre> |
| <pre style="width:50%"> | | {{HeroIcon|Hero=Bebop}} |
| {{HeroIcon|Trapper}}
| |
| {{HeroIcon|Dynamo|l1=Professor Dynamo}}
| |
| {{HeroIcon|Warden|size=40px}} | |
| </pre> | |
| {{HeroIcon|Trapper}} | |
| {{HeroIcon|Dynamo|l1=Professor Dynamo}}
| |
| {{HeroIcon|Warden|size=40px}}
| |
|
| |
|
| <templatedata> | | <pre>{{HeroIcon|Hero=Infernus|size=50px}}</pre> |
| { | | {{HeroIcon|Hero=Infernus|size=50px}} |
| "params": {
| | |
| "1": {
| | <pre>{{HeroIcon|Hero=Haze|size=100px}}</pre> |
| "description": "Hero name.",
| | {{HeroIcon|Hero=Haze|size=100px}} |
| "type": "string",
| | |
| "required": true
| | <pre>{{HeroIcon|Hero=Yamato|size=150px}}</pre> |
| },
| | {{HeroIcon|Hero=Yamato|size=150px}} |
| "l1": {
| | <includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
| "description": "Custom text.",
| |
| "type": "string"
| |
| },
| |
| "link": {
| |
| "description": "Custom link.",
| |
| "type": "string"
| |
| },
| |
| "image": {
| |
| "description": "Custom image.",
| |
| "type": "string",
| |
| "example": "Image.png, Image.svg"
| |
| },
| |
| "size": {
| |
| "default": "20px",
| |
| "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",
| |
| "paramOrder": [
| |
| "1",
| |
| "l1",
| |
| "link",
| |
| "image",
| |
| "size",
| |
| "no-link",
| |
| "no-file",
| |
| "icon-only"
| |
| ],
| |
| "description": " "
| |
| } | |
| </templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |