Template:Hero Navbox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) added "no_title" variable |
Gammaton32 (talk | contribs) formatting |
||
| Line 2: | Line 2: | ||
{|style="display:inline;border: 2px solid transparent;margin-top:10px;margin-bottom:10px;background-color:transparent;margin: auto;" | {|style="display:inline;border: 2px solid transparent;margin-top:10px;margin-bottom:10px;background-color:transparent;margin: auto;" | ||
|- | |- | ||
|style="display:block;border-radius: 8px;text-align: center; background-image: linear-gradient(#987556, #e8be86); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;" | {{#ifeq: {{{no_title|}}}|true||style="display:block;border-radius: 8px;text-align: center; background-image: linear-gradient(#987556, #e8be86); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;"{{!}}[[Hero{{if lang}}|<span style="color:#FFF5E8; font-family: 'Retail Demo', 'Open Sans', 'PT Serif','Palatino','Georgia',serif; font-weight:bold; text-shadow: 0px 2px 2px black, 0px 0px 2px black;">{{#invoke:lang|get_string|menu_heroes}}</span>]]}} | ||
|- | |- | ||
| <div style="display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; margin: auto;"> | | <div style="display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; margin: auto;"> | ||
Revision as of 09:40, 8 September 2025
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}}
style="display:block;border-radius: 8px;text-align: center; background-image: linear-gradient(#987556, #e8be86); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;"|Heroes
Specific parameters for a bigger navbox:
{{Hero Navbox|text_size=16|card_size=132}}
style="display:block;border-radius: 8px;text-align: center; background-image: linear-gradient(#987556, #e8be86); font-family: 'PT Serif','Palatino','Georgia',serif; font-size:22px;"|Heroes
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text Size | text_size | Size of the text on the card. Dont put 'px' at the end.
| Number | optional |
| Card Size | card_size | Size of the hero card. Dont put 'px' at the end
| Number | optional |





































