Difference between revisions of "Template:Ref"
Jump to navigation
Jump to search
m (Give them the length parameter.) |
(Added g and e.) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|c={{ref/c-link|{{{5}}}}} | |c={{ref/c-link|{{{5}}}}} | ||
|d={{ref/d-link|{{{5}}}|{{{6|}}}}} | |d={{ref/d-link|{{{5}}}|{{{6|}}}}} | ||
|e= | |e={{ref/e-link|{{{5}}}}} | ||
|g= | |g={{ref/g-link|{{{5}}}}} | ||
|=ERROR | |=ERROR | ||
}}|{{#switch:{{{1|}}} | }}|{{#switch:{{{1|}}} | ||
|c={{ref/c-title|{{{4}}}|{{{5}}}}} | |c={{ref/c-title|{{{4}}}|{{{5}}}}} | ||
|d={{ref/d-title|{{{4}}}|{{{5}}}|{{{6|}}}|{{{7|}}}}} | |d={{ref/d-title|{{{4}}}|{{{5}}}|{{{6|}}}|{{{7|}}}}} | ||
|e= | |e={{ref/e-title|{{{4}}}|{{{5}}}}} | ||
|g= | |g={{ref/g-title|{{{4}}}|{{{5}}}}} | ||
|=ERROR | |=ERROR | ||
}}]] {{#ifexist:Image:{{{2}}}|[[Image:{{{2}}}|{{{3}}}]]|}}</includeonly> | }}]] {{#ifexist:Image:{{{2}}}|[[Image:{{{2}}}|{{{3}}}|{{ref/image-title|{{{1}}}|{{{5}}}}}]]|}}</includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Latest revision as of 18:55, 29 June 2008
Documentation for {{ref}}
Use
This template is intended for extended use with {{c}}, {{d}}, {{e}} and {{g}} and their counterparts.
Do NOT use this template in articles. It is only to be used through the templates mentioned above, and their counter parts.
Usage
{{ref|type|image|imagewidth|size|data|...}}
Parameters
- type
- Can be one of the following values: c, d, e and g.
- image
- The image. If the image does not exist, it will not be printed at all.
- imagewidth
- The width of image, include the px (e.g. 15px), if the image does not exist, this won't be used, but must be supplied (supply something like NA instead).
- size
- Can be the following values: l and s.
- data ...
- The data for each sub ref.
Example
{{ref|d|Discicon.png|15px|l|1|1|ec}}
(see {{d}} for more examples)- Extra Content on disc 1, Volume One
{{ref|d|Discicon.png|15px|s|1|1|ee}}
- DVD: 1,1, EE
{{ref|c|Comicicon.png|15px|l|1}}
(see {{c}} for more examples)- "Monkey Sea, Monkey Doom!" (US#001)
{{ref|c|Comicicon.png|15px|s|1}}
- (US#001)