Difference between revisions of "Template:Ref"
Jump to navigation
Jump to search
(This template is for easier maintaining the c, d, e and g templates.) |
(Added c.) |
||
Line 1: | Line 1: | ||
[[{{#switch:{{{1|}}} | <includeonly>[[{{#switch:{{{1|}}} | ||
|c= | |c={{ref/c-link|{{{5}}}}} | ||
|d={{ref/d-link|{{{5}}}|{{{6|}}}}} | |d={{ref/d-link|{{{5}}}|{{{6|}}}}} | ||
|e=Not implemented | |e=Not implemented | ||
Line 6: | Line 6: | ||
|=ERROR | |=ERROR | ||
}}|{{#switch:{{{1|}}} | }}|{{#switch:{{{1|}}} | ||
|c= | |c={{ref/c-title|{{{5}}}}} | ||
|d={{ref/d-title|{{{4}}}|{{{5}}}|{{{6|}}}|{{{7|}}}}} | |d={{ref/d-title|{{{4}}}|{{{5}}}|{{{6|}}}|{{{7|}}}}} | ||
|e=Not implemented | |e=Not implemented | ||
|g=Not implemented | |g=Not implemented | ||
|=ERROR | |=ERROR | ||
}}]][[Image:{{{2}}}|{{{3}}}]] | }}]] {{#ifexist:Image:{{{2}}}|[[Image:{{{2}}}|{{{3}}}]]|}}</includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Revision as of 17:46, 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|s|1}}
- ERROR