No edit summary Tag: 2017 source edit |
Imperialhare (talk | contribs) No edit summary Tag: 2017 source edit |
||
Line 22: | Line 22: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Purpose !! Color !! CSS variable name !! | ! Purpose !! Color !! CSS variable name !! Theme name | ||
|- | |- | ||
| Default | | Default | ||
Line 86: | Line 86: | ||
=== Changing the color of Infoboxes === | === Changing the color of Infoboxes === | ||
To change the color of an infobox, the TEMPLATE must contain <code>theme-source=" | To change the color of an infobox, the TEMPLATE must contain <code>theme-source="color_theme"</code> in the infobox tag. See [[Template:Infobox_Season]] for an example. | ||
Code example: | Code example: | ||
<pre><infobox theme-source="color-theme">...</infobox></pre> | <pre><infobox theme-source="color-theme">...</infobox></pre> | ||
When you use the infobox on a page, add the attribute: <code> | When you use the infobox on a page, add the attribute: <code>color_theme=</code> and use the appropriate infobox theme name from the table above as the value. | ||
See the infobox [[Marielda (season)]] for an example. | See the infobox [[Marielda (season)]] for an example. | ||
Code example: | Code example: | ||
Line 98: | Line 98: | ||
... | ... | ||
}}</pre> | }}</pre> | ||
=== Changing the color of Navboxes === | |||
Add the <code>titleclass</code> attribute to the template and use the class <code>.bgcolor-SEASON</code> | |||
Replace SEASON with the appropriate abbreviation from the theme name color column in the table above. | |||
Example: | |||
<pre>{{Autumn in Hieron episodes | |||
| titleclass = bgcolor-aih | |||
... | |||
}} | |||
</pre> |
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 ... }}