Template:Colourbox

From Wikipedia, the free encyclopedia

[edit] Template documentation
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

This template is an adapted version of Template:leagueicon, for sports other than Rugby League.

This template's purpose is to easily output the club colours of the clubs. These little images are used throughout many rugby league articles, mainly lists of teams etc.

To use the template anywhere in Wikipedia. Follow the code below.

{{colourbox|KEYWORD}} 
See the table below to what you can enter in the KEYWORD part.
It is default sized to 23px

For example

{{colours|WP}} will equate to
{{leagueicon|KEYWORD|size=SIZE}} 
See the table below to what you can enter in the KEYWORD part.
The size should be size=(what ever size you want)
Please do not put px on it, enter a number (eg. 50)

For example

{{colourbox|WP|size=80}} will equate to
{{colourbox|KEYWORD|align=ALIGNMENT}}
You can align where the image goes, which will then wrap it around the text
Simply add align=(what ever alignment you want)

For example

{{colourbox|WP|align=right}} will equate to


Result Keyword Team Link (Bold indicates current)
NZFC Teams
ACFC Auckland City FC
CU, CUD Canterbury United
HBU Hawke's Bay United
OU Otago United
TW Team Wellington
WFC Waikato FC
WU Waitakere United
YHM YoungHeart Manawatu
A-League Teams
AU Adelaide United
MV Melbourne Victory
NUJ Newcastle Jets
PG Perth Glory
QR Queensland Roar
SFC Sydney FC
WP Wellington Phoenix FC
NZK New Zealand Knights
NZNBL Teams
NHH North Harbour Heat
AS Auckland Stars
pistons Waikato Pistons
TD Taranaki Dynamos
HBH Hawke's Bay Hawks
MJ Manawatu Jets
WS Wellington Saints
NG Nelson Giants
CR Canterbury Rams
ON Otago Nuggets
Air NZ Cup Teams
aru Auckland Rugby Football Union
bop Bay of Plenty Rugby Union
cru Canterbury Rugby Football Union
cmru Counties Manukau Rugby Union
hbru Hawke's Bay Rugby Union
mru Manawatu Rugby Union
nh North Harbour Rugby Union
nru Northland Rugby Football Union
oru Otago Rugby Union
sru Southland Rugby
naki Taranaki Rugby Football Union
makos Tasman Rugby Union
wru Waikato Rugby Union
wl Wellington Rugby Football Union