Template:Hero Navbox: Difference between revisions

Sur (talk | contribs)
m now more dynamic by generating each list for Current and Upcoming heroes
No edit summary
 
(33 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Navbox
<templatestyles src="Template:Hero Navbox/styles.css" />
|name      = {{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}
<includeonly>
|title      = [[Heroes|<span style="color:#FFEFD7; text-transform: uppercase;">{{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}</span>]]
<div class="heronav-header">Heroes</div>
|state      =  
<div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom:5px;flex:1">
|titlestyle = background-image: linear-gradient(#c1a671, #d0bb95); border-radius:8px; width:600px; align:center; font-size:16px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 2px black, 0px 2px 2px black, 0px 0px 2px black;
{{#invoke:HeroData/nav|get_hero_nav_cards
|groupstyle = background-color:#bdad9f;
|in_herolabs=false
|liststyle  = text-align:center;
|text_size={{{text_size|15}}}
|abovestyle = background:#bdad9f;
|card_size={{{card_size|80}}}  
|aboveclass = hlist
|sticker_size={{{sticker_size|30}}}
|above =
|herolabs_text_size={{{herolabs_text_size|6}}}
|bodystyle = width:100%;
|lang_code={{{lang_code|en}}}
|group1    =
}}
|list1      = {{#invoke:HeroData/nav|get_hero_nav_cards|Current}}
</div>
 
</includeonly><noinclude>{{Documentation}}</noinclude>
{{Navbox subgroup
|groupstyle =
|group1    =  
    |list1style = background-image: linear-gradient(#c1a671, #d0bb95); border-radius:8px; width:600px; align:center; font-size:16px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 2px black, 0px 2px 2px black, 0px 0px 2px black; color:#FFEFD7; height: 27px !important;
|list1      = <span style="color:#FFEFD7; text-transform: uppercase">{{#invoke:Dictionary|translate|Upcoming}}</span>
    |group2    =
    |list2      = {{#invoke:HeroData/nav|get_hero_nav_cards|Upcoming}}
    }}
}}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude>