Imperialhare (talk | contribs) No edit summary Tag: 2017 source edit |
Imperialhare (talk | contribs) No edit summary Tag: 2017 source edit |
||
Line 94: | Line 94: | ||
Code example: | Code example: | ||
<pre>{{Infobox Season | <pre>{{Infobox Season | ||
| | |color_theme=pzn | ||
|title1=PARTIZAN | |title1=PARTIZAN | ||
... | ... |
Revision as of 21:32, 13 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 | 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 | #7C7BCF | --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 ... }}
Add the titleclass
attribute to the template and use the class .bgcolor-SEASON
Replace SEASON with the appropriate abbreviation from the theme name color column in the table above.
Example:
{{Autumn in Hieron episodes | titleclass = bgcolor-aih ... }}