(→Colors) Tag: 2017 source edit |
(→Colors) |
||
Line 31: | Line 31: | ||
|''[[Autumn in Hieron]]'' | |''[[Autumn in Hieron]]'' | ||
| style="background-color:#E49108" |#E49108 | | style="background-color:#E49108" |#E49108 | ||
|--color-aih | | --color-aih | ||
| | |aih | ||
|- | |- | ||
| ''[[COUNTER/Weight]]'' | | ''[[COUNTER/Weight]]'' |
Revision as of 00:52, 12 July 2022
Useful templates
- See template: Template:Navbox
- Example: Template:Friends
- Category:Navboxes All current navboxes
- Official Mediawiki documentation for navbox
Infobox
- Official documentation for Infobox
- Category:Infoboxes All current infoboxes
Categories
Overlap categories
- We can use DPL3 to generate "overlap" categories. So if you add Category:NPCs and Category:Marielda to a character's page, you don't need to also add Category:Marielda NPCs - that page is generated automatically when a page has both categories already!
- Overlap categories do need to be set up manually so let me know if you want to add one. (If you feel good about setting one up yourself also go for it!)
Colors
Some season-specific colors I've been using for navboxes and tables:
Purpose | Color | CSS variable name | Infobox theme name |
---|---|---|---|
Default | #FDCE5E | --color-main | main |
Autumn in Hieron | #E49108 | --color-aih | aih |
COUNTER/Weight | #F47AC7 | --color-cw | cw |
Marielda | #FFB27B | --color-marielda | marielda |
Winter in Hieron | #92D1F4 | --color-wih | wih |
Twilight Mirage | #59ADA1 | --color-tm | tm |
Spring in Hieron | #AFE27D | --color-sih | sih |
PARTIZAN | #F75451 | --color-pzn | pzn |
Sangfielle | #FAD47A | --color-sf | sf |
Bluff City | #2F7FAB | --color-bluff | bluff |
Live at the Table | #5AC45E | --color-live | live |
Background | #FFF1D1 | --color-background |
Changing the color of Infoboxes
To change the color of an infobox, the TEMPLATE must contain theme-source="color-theme"
in the infobox tag. See Template:Infobox_Season for an example.
Code example:
<infobox theme-source="color-theme">...</infobox>
When you use the infobox on a page, add the attribute: color-theme=
and use the appropriate infobox theme name from the table above as the value.
See the infobox Marielda (season) for an example.
Code example:
{{Infobox Season |color-theme=pzn |title1=PARTIZAN ... }}