Template:Hero Navbox: Difference between revisions
Jump to navigation
Jump to search
m localize HEROES and UPCOMING |
m now more dynamic by generating each list for Current and Upcoming heroes |
||
Line 11: | Line 11: | ||
|bodystyle = width:100%; | |bodystyle = width:100%; | ||
|group1 = | |group1 = | ||
|list1 = {{ | |list1 = {{#invoke:HeroData/nav|get_hero_nav_cards|Current}} | ||
{{Navbox subgroup | {{Navbox subgroup | ||
Line 19: | Line 19: | ||
|list1 = <span style="color:#FFEFD7; text-transform: uppercase">{{#invoke:Dictionary|translate|Upcoming}}</span> | |list1 = <span style="color:#FFEFD7; text-transform: uppercase">{{#invoke:Dictionary|translate|Upcoming}}</span> | ||
|group2 = | |group2 = | ||
|list2 ={{ | |list2 = {{#invoke:HeroData/nav|get_hero_nav_cards|Upcoming}} | ||
}} | }} | ||
}}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude> | }}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 02:56, 16 October 2024
|
Usage
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.
Examples
Default parameters for a smaller navbox:
{{Hero Navbox}}
|
Specific parameters for a bigger navbox:
{{Hero Navbox|text_size=20|card_size=132|sticker_size=56|herolabs_text_size=8}}
|
Parameter | Description | Type | Status | |
---|---|---|---|---|
text_size | text_size | no description | Unknown | optional |
card_size | card_size | no description | Unknown | optional |
sticker_size | sticker_size | no description | Unknown | optional |
herolabs_text_size | herolabs_text_size | no description | Unknown | optional |