Jump to navigation
Jump to search
Notmyhandle (talk | contribs) (attempting to limit height, not width) |
Notmyhandle (talk | contribs) (added reversal switch to change the side that the text appears on; I'm sure the switch code can be simplified by using an earlier set variable; will look into that after this function is seen working) |
||
Line 1: | Line 1: | ||
<includeonly>'''[[The Legend of Zelda/{{#switch:{{{1}}} | <includeonly>{{#if:{{{s}}}| | ||
'''[[The Legend of Zelda/{{#switch:{{{1}}} | |||
|enemy | |enemy | ||
|Enemy=Enemies | |Enemy=Enemies | ||
|item | |item | ||
|Item=Items | |Item=Items | ||
}}#{{{2}}}|{{{2}}}]]''' {{im|LOZ1 {{{2}}}.{{{3|png}}}|{{{4|x32px}}}}}</includeonly><noinclude> | }}#{{{2}}}|{{{2}}}]]''' {{im|LOZ1 {{{2}}}.{{{3|png}}}|{{{4|x32px}}}}} | ||
| | |||
{{im|LOZ1 {{{2}}}.{{{3|png}}}|{{{4|x32px}}}}} '''[[The Legend of Zelda/{{#switch:{{{1}}} | |||
|enemy | |||
|Enemy=Enemies | |||
|item | |||
|Item=Items | |||
}}#{{{2}}}|{{{2}}}]]''' | |||
}}</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
[[Category:Guide-specific templates|I]]</noinclude> | [[Category:Guide-specific templates|I]]</noinclude> |
Revision as of 16:53, 6 May 2014
This page has been transcluded from Template:Im/loz/Documentation.
The Legend of Zelda specific implementation of {{im}}.
- Parameters
- Type of image; e.g. Item or Enemy.
- Specific image identifier; e.g. Wooden Sword or Armos. This is part of the filename.
- File extension; "png" is default.
- Optional image parameters; will override default height constraint of 32px, so you will need to re-specify like "x20px" (height constraint) or "30px" (width constraint) or 30x20px (width x height constraints). To add additional parameters, use {{!}} to escape the pipe character to separate image parameters. See example below with the thumbnail (note: do not use thumbnail or float parameters with in-line images).
- s: Switch sides. This moves the text to the right side of the icon. Useful for aligning the image.
Example
{{im/loz|Item|Wooden Sword}}: Wooden Sword
{{im/loz|Item|Wooden Sword|png|30px}}: Wooden Sword
{{im/loz|Item|Wooden Sword|s=1}}: Wooden Sword
{{im/loz|Item|Wooden Sword|png|50px{{!}}thumb{{!}}left|s=1}}: Wooden Sword