Template:Hero Navbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m now more dynamic by generating each list for Current and Upcoming heroes
Sur (talk | contribs)
m merging this with Template:Deadlock_Wiki/Hero
Line 1: Line 1:
{{Navbox
{|style="display:inline;border: 2px solid transparent;margin-top:10px;margin-bottom:10px;background-color:transparent;margin: auto;"
|name      = {{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}
|-
|title      = [[Heroes|<span style="color:#FFEFD7; text-transform: uppercase;">{{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}</span>]]
|style="display:block;border-radius: 8px;text-align: center; background-image: linear-gradient(#c1a671, #d0bb95); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;"| [[Heroes|<span style="color:#FFF5E8; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight:bold; text-shadow: 1px 1px rgba(0, 0, 0, 0.3);">Heroes</span>]]
|state      =
|-
|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;
| <div style="display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; margin: auto;">
|groupstyle = background-color:#bdad9f;
{{#invoke:HeroData/nav|get_hero_nav_cards
|liststyle  = text-align:center;
|in_herolabs=false
|abovestyle = background:#bdad9f;
|text_size={{{text_size|11}}}}
|aboveclass = hlist
|card_size={{{card_size|88}}}
|above =
|sticker_size={{{sticker_size|30}}}
|bodystyle = width:100%;
}}
|group1    =
</div>
|list1      = {{#invoke:HeroData/nav|get_hero_nav_cards|Current}}
|}


{{Navbox subgroup
{|style="display:inline;border: 2px solid transparent;margin-top:10px;margin-bottom:10px;background-color:transparent;margin: auto;"
|groupstyle =  
|-
|group1    =
|style="border-radius: 8px;text-align: center; background-image: linear-gradient(#ce9b54, #674915); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;"| <span style="color:#FFF0D6; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight:bold; text-shadow: 1px 1px rgba(0, 0, 0, 0.3); display: flex; justify-content: center; align-items: center;"> Hero Labs </span>
    |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>
| <div style="display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; margin: 0 auto;">
    |group2    =  
{{#invoke:HeroData/nav|get_hero_nav_cards
    |list2      = {{#invoke:HeroData/nav|get_hero_nav_cards|Upcoming}}
|in_herolabs=true
    }}
|text_size={{{text_size|11}}}}
}}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude>
|card_size={{{card_size|88}}}
|sticker_size={{{sticker_size|30}}}
}}
</div>
|}

Revision as of 18:12, 28 October 2024

Heroes

Hero Labs

Abrams

Hero Labs

Apollo

Hero Labs

Bebop

Hero Labs

Billy

Hero Labs

Calico

Hero Labs

Celeste

Hero Labs

The Doorman

Hero Labs

Drifter

Hero Labs

Dynamo

Hero Labs

Graves

Hero Labs

Grey Talon

Hero Labs

Haze

Hero Labs

Holliday

Hero Labs

Infernus

Hero Labs

Ivy

Hero Labs

Kelvin

Hero Labs

Lady Geist

Hero Labs

Lash

Hero Labs

McGinnis

Hero Labs

Mina

Hero Labs

Mirage

Hero Labs

Mo & Krill

Hero Labs

Paige

Hero Labs

Paradox

Hero Labs

Pocket

Hero Labs

Rem

Hero Labs

Seven

Hero Labs

Shiv

Hero Labs

Silver

Hero Labs

Sinclair

Hero Labs

Venator

Hero Labs

Victor

Hero Labs

Vindicta

Hero Labs

Viscous

Hero Labs

Vyper

Hero Labs

Warden

Hero Labs

Wraith

Hero Labs

Yamato

Hero Labs