A small Css and Js framework to create Wikipedia-styled infoboxes.
<table class="infobox [type]">
<!-- Place rows here. -->
</table>
[type]
can be either nothing for basic infoboxes, or:
-
royalty
:- example:
<table class="infobox royalty">
- changes header color
- adds the
in-office
class alongsidesection-header
for "in office: [from] - [to]" boxes
- example:
-
country
:- example:
<table class="infobox country">
- changes column width to equal 50%
- Adds
flag-and-seal
andvertical
row types - Adds
remove-border
class that removes the bottom border of rows - Miscellaneous helper classes (unstyles lists, list headers, etc.)
- example:
Work in progress types are in the projects tab up top.
If you add certain classes, the script file will add additional elements into the infobox.
- External links (
<a href="" class="external">
) will get a small image added to the end. - Coordinates (
<span class="coordinates">
) will get a small globe added to the beginning. - Positive or negative changes, as well as steady values will get arrows:
pos-inc
: positive incready, green arrow uppos-dec
: positive decrease, green arrow downneg-inc
: negative increase, red arrow upneg-dec
: negative decrease, red arrow downsteady
: blue bar indicating no change