Template:ModlistFlag: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) |
||
Line 34: | Line 34: | ||
: Default: ''#dddddd'' | : Default: ''#dddddd'' | ||
: Defines the font color the text will be. Accepts any valid CSS for color. | : Defines the font color the text will be. Accepts any valid CSS for color. | ||
==== Listing Files ==== | |||
; Main, Update, Alt, Add, Add1, Add2, Add3, Add4, Add5, Opt, Misc, Old | |||
: Defined: <code>Parameter=''file; file2; file3''</code> | |||
: Each of the parameters above defines a heading for file listing. The value is plain text that displays as the list. Separate items with ''';'''. | |||
== Examples == | == Examples == |
Revision as of 02:28, November 3, 2020
Template:ModlistFlag[edit source]
Discussion:
Purpose & Usage[edit source]
This is a helper template that is primarily used for the modlist template.
Required Parameters[edit source]
- 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[edit source]
- 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.
Listing Files[edit source]
- Main, Update, Alt, Add, Add1, Add2, Add3, Add4, Add5, Opt, Misc, Old
- Defined:
Parameter=file; file2; file3
- Each of the parameters above defines a heading for file listing. The value is plain text that displays as the list. Separate items with ;.
Examples[edit source]
Simplest call will use the defaults.
- Code:
{{modlistFlag|flag=Custom}}
- Result:
Custom