Template:Hero Navbox/doc: Difference between revisions

Sur (talk | contribs)
m example updated to use 16px instead of 20px which is what home page currently uses
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{TS|Hero Navbox/styles.css}}
== Usage ==
== Usage ==
This navbox template displays [[Heroes]], and should be added at the end of the page.
This navbox template displays [[Heroes]], and should be added at the end of the page.


It appears at the bottom of individual hero pages like [[Abrams]] and on the home page.
It appears at the bottom of individual hero pages like [[Abrams]] and on the home page.
The code for cards is at [[Template:Hero card2]].


== Examples ==
== Examples ==
Line 13: Line 16:
Specific parameters for a bigger navbox:
Specific parameters for a bigger navbox:
<pre>
<pre>
{{Hero Navbox|text_size=16|card_size=132|sticker_size=56|herolabs_text_size=8}}
{{Hero Navbox|text_size=16|card_size=132}}
</pre>
</pre>
{{Hero Navbox|text_size=16|card_size=132|sticker_size=56|herolabs_text_size=8}}
{{Hero Navbox|text_size=16|card_size=132}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"text_size": {},
"text_size": {
"card_size": {},
"label": "Text Size",
"sticker_size": {},
"description": "Size of the text on the card. Dont put 'px' at the end.",
"herolabs_text_size": {}
"type": "number",
"default": "13",
"suggestedvalues": ["13, 14"]
},
"card_size": {
"label": "Card Size",
"description": "Size of the hero card. Dont put 'px' at the end",
"type": "number",
"default": "88",
"suggestedvalues": ["80, 88"]
}
},
},
"description": " ",
"description": " ",
Line 28: Line 41:
}
}
</templatedata>
</templatedata>
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Navbox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>