Editing Template:HeroIcon/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
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 add a small headshot of the hero with a link.  


For more details, see [[Module:Icon]].
== Examples ==
<pre style="width:50%">
{{HeroIcon|Lash}}
</pre>
{{HeroIcon|Lash}}


== Examples ==
<pre style="width:50%">
<pre style="width:50%">
{{HeroIcon|Trapper}}
{{HeroIcon|Lash|Jacob}}
{{HeroIcon|Dynamo|l1=Professor Dynamo}}
{{HeroIcon|Warden|size=40px}}
</pre>
</pre>
{{HeroIcon|Trapper}}
{{HeroIcon|Lash|Jacob}}
{{HeroIcon|Dynamo|l1=Professor Dynamo}}
{{HeroIcon|Warden|size=40px}}


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"2": {
"description": "Hero name.",
"description": "Set the alternative text to display.",
"type": "string",
"required": true
},
"l1": {
"description": "Custom text.",
"type": "string"
"type": "string"
},
},
"link": {
"icon": {
"description": "Custom link.",
"aliases": [
"type": "string"
"1"
},
],
"image": {
"description": "Custom image.",
"type": "string",
"type": "string",
"example": "Image.png, Image.svg"
"description": "Set the image file name.",
"required": true
},
},
"size": {
"size": {
"default": "20px",
"type": "number",
"type": "string",
"description": "Set the size of the icon in px.",
"description": "Icon size.",
"example": "20, 24, 32",
"example": "30px, 40px, 50px"
"default": "25"
},
"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",
"icon",
"l1",
"2",
"link",
"size"
"image",
]
"size",
"no-link",
"no-file",
"icon-only"
],
"description": " "
}
}
</templatedata><includeonly>[[Category:Icon templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
</templatedata><noinclude>[[Category:Template documentation]]</noinclude>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template