Template:ModlistFlag: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><span style="background:linear-gradient({{{flagBG|#40804d}}},{{{flagGrad|#7db388}}});border-radius:3px;color:{{{flagFont|#dddddd}}};padding:0.25em;">'''{{#switch:{{{flag|}}} | ||
|Dawnguard=DG | |Dawnguard=DG | ||
|Hearthfire=HF | |Hearthfire=HF | ||
|Dragonborn=DB | |Dragonborn=DB | ||
|{{{flag}}}}}</span | |{{{flag}}}}}'''</span></includeonly><noinclude>__NOTOC____NOTITLE__[[Category:Formatting Templates]] | ||
= {{FULLPAGENAME}} = | = {{FULLPAGENAME}} = | ||
Line 42: | Line 42: | ||
== Related Templates == | == Related Templates == | ||
[[:Template:modlisting]] | *[[:Template:Indicator]] | ||
*[[:Template:modlisting]] | |||
</noinclude> | </noinclude> |
Revision as of 22:02, January 16, 2021
Template:ModlistFlag
Discussion:
Purpose & Usage
This is a helper template that is primarily used for the modlist template.
Required Parameters
- flag
- Defines the keyword or text displayed for the flag. Users can enter any text and the flag will display that text. The text can be formatted within this parameter, as well. However, the following keywords are pre-defined and will default to a pre-defined style.
- Dawnguard = DG
- Hearthfire = HF
- Dragonborn = DB
Optional Parameters
- flagBG
- Defined:
flagBG=value
- Default: #40804d
- Defines the background color of the flag. Accepts any valid CSS for color.
- flagGrad
- Defined:
flagGrad=value
- Default: #7db388
- Defines the gradient color the background will fade into (top to bottom). Accepts any valid CSS for color.
- flagFont
- Defined:
flagFont=value
- Default: #dddddd
- Defines the font color the text will be. Accepts any valid CSS for color.
Examples
Simplest call will use the defaults.
- Code:
{{modlistFlag|flag=Custom}}
- Result:
Custom
Related Templates