Template:Colourbox/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Colourbox (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.
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)
A-League Teams
AU Adelaide United
[[Image:CentralCoastColours.png

‎|23x23px|]]

CCM Central Coast Mariners
MV Melbourne Victory
NUJ Newcastle United Jets
PG Perth Glory
QR Queensland Roar
SFC Sydney FC
WP Wellington Phoenix FC
NZK New Zealand Knights
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