Template:Hero Navbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
QuinnBinn (talk | contribs)
m Moved Mirage
Sur (talk | contribs)
m localize HEROES and UPCOMING
Line 1: Line 1:
{{Navbox
{{Navbox
|name      = {{#invoke:Lang|get_string_fallback|menu_heroes|Heroes}}
|name      = {{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}
|title      = [[Heroes|<span style="color:#FFEFD7">HEROES</span>]]
|title      = [[Heroes|<span style="color:#FFEFD7; text-transform: uppercase;">{{#invoke:Lang|get_string|menu_heroes|fallback_str=Heroes}}</span>]]
|state      =  
|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;
|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;
Line 17: Line 17:
|group1    =  
|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;
     |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      = UPCOMING
|list1      = <span style="color:#FFEFD7; text-transform: uppercase">{{#invoke:Dictionary|translate|Upcoming}}</span>
     |group2    =  
     |group2    =  
     |list2      ={{Hero Card Nav|Hero=Holliday}} {{Hero Card Nav|Hero=Calico}} {{Hero Card Nav|Hero=Wrecker}} {{Hero Card Nav|Hero=Kali}}
     |list2      ={{Hero Card Nav|Hero=Holliday}} {{Hero Card Nav|Hero=Calico}} {{Hero Card Nav|Hero=Wrecker}} {{Hero Card Nav|Hero=Kali}}
     }}
     }}
}}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude>
}}<includeonly>[[Category:Heroes]]</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 03:23, 11 October 2024

Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at Hero Navbox/styles.css.

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.

The code for cards is at Template:Hero card2.

Examples

Default parameters for a smaller navbox:

{{Hero Navbox}}

Specific parameters for a bigger navbox:

{{Hero Navbox|text_size=16|card_size=132}}

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Text Sizetext_size

Size of the text on the card. Dont put 'px' at the end.

Suggested values
13, 14
Default
13
Numberoptional
Card Sizecard_size

Size of the hero card. Dont put 'px' at the end

Suggested values
80, 88
Default
88
Numberoptional