Template:Hero Card Nav/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
Created page with "==Usage== This template is used in the navbox. ==Example== <pre> {{Hero Card Nav|Abrams}} {{Hero Card Nav|Hero=McGinnis}} </pre> {{Hero Card Nav|Abrams}} {{Hero Card Nav|Hero=McGinnis}} <templatedata> { "params": { "Hero": { "description": "Which Hero this is for", "example": "Abrams", "default": "Abrams" }, "size": { "description": "Image size, adjust if using elsewhere", "example": "50", "type": "number", "default": "50" }, "font size":..."
 
Sylphoid (talk | contribs)
update templatedata, add more examples
Line 1: Line 1:
==Usage==
== Usage ==
This template is used in the navbox.
This template is used in the navbox.


==Example==
== Examples ==
<pre>
<pre>
{{Hero Card Nav|Abrams}}
{{Hero Card Nav|Mirage}}
{{Hero Card Nav}}
{{Hero Card Nav|Hero=McGinnis}}
{{Hero Card Nav|Hero=McGinnis}}
{{Hero Card Nav|Mo & Krill|72}}
</pre>
</pre>
{{Hero Card Nav|Abrams}}
{{Hero Card Nav|Mirage}}
{{Hero Card Nav}}
{{Hero Card Nav|Hero=McGinnis}}
{{Hero Card Nav|Hero=McGinnis}}
{{Hero Card Nav|Mo & Krill|72}}
<templatedata>
<templatedata>
{
{
Line 15: Line 19:
"description": "Which Hero this is for",
"description": "Which Hero this is for",
"example": "Abrams",
"example": "Abrams",
"default": "Abrams"
"default": "Abrams",
"aliases": [
"1"
],
"type": "string"
},
},
"size": {
"size": {
Line 21: Line 29:
"example": "50",
"example": "50",
"type": "number",
"type": "number",
"default": "50"
"default": "55",
"aliases": [
"2"
]
},
},
"font size": {
"font size": {
"description": "Font size, defaults to 10",
"description": "Font size, defaults to 9",
"type": "number",
"type": "number",
"default": "10"
"default": "9"
}
}
},
},
Line 34: Line 45:
"size",
"size",
"font size"
"font size"
]
],
"format": "inline"
}
}
</templatedata><noinclude>[[Category:Template documentation]]</noinclude>
</templatedata><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 18:06, 3 October 2024

Usage

This template is used in the navbox.

Examples

{{Hero Card Nav|Mirage}}
{{Hero Card Nav}}
{{Hero Card Nav|Hero=McGinnis}}
{{Hero Card Nav|Mo & Krill|72}}

A smaller type of hero card for use primarily in navboxes

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
HeroHero 1

Which Hero this is for

Default
Abrams
Example
Abrams
Stringoptional
sizesize 2

Image size, adjust if using elsewhere

Default
55
Example
50
Numberoptional
font sizefont size

Font size, defaults to 9

Default
9
Numberoptional