< Template:Im | oot
Notmyhandle (talk | contribs) (another fix) |
(Update documentation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
;Parameters | ;Parameters | ||
# | #Page linked to; e.g. Items, Equipment, Upgrades, or Enemies. | ||
#Specific image identifier; e.g. Deku Nut or Skulltula. This is part of the filename. | #Specific image identifier; e.g. Deku Nut or Skulltula. This is part of the filename, and also the anchor point on the linked page you want the browser to jump to when clicked. | ||
#File extension; "png" is default. | #File extension; "png" is default. | ||
#Optional image parameters; will override default height constraint of | #Optional image parameters; will override default height constraint of x24px, 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 <nowiki>{{!}}</nowiki> 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''': '''S'''witch sides. This moves the text to the right side of the icon. Useful for aligning the image. | *'''s''': '''S'''witch sides. This moves the text to the right side of the icon. Useful for aligning the image. | ||
*'''display''': '''Display''' text. This is the different text that you want to display on the page if it is different than the specific image identifier. | |||
==Example== | ==Example== | ||
<nowiki>{{im/ | ===Items (including Item Trading items), Equipment, and Upgrades=== | ||
<nowiki>{{im/oo|Items|Deku Nut}}</nowiki>: {{im/oot|Items|Deku Nut}} | |||
<nowiki>{{im/oot|Items|Megaton Hammer}}</nowiki>: {{im/oot|Items|Megaton Hammer}} | |||
<nowiki>{{im/oot|Upgrades|Piece of Heart}}</nowiki>: {{im/oot|Upgrades|Piece of Heart}} | |||
;With image size parameter | |||
<nowiki>{{im/oot|Equipment|Hylian Shield|png|30px}}</nowiki>: {{im/oot|Equipment|Hylian Shield|png|30px}} | <nowiki>{{im/oot|Equipment|Hylian Shield|png|30px}}</nowiki>: {{im/oot|Equipment|Hylian Shield|png|30px}} | ||
<nowiki>{{im/oot| | ;Different display text | ||
<nowiki>{{im/oot|Enemies|Deku Baba (withered)|display=withered Deku Babas}}</nowiki>: {{im/oot|Enemies|Deku Baba (withered)|display=withered Deku Babas}} | |||
===Enemies=== | |||
;In-line links | |||
<nowiki>{{im/oot|Enemies|Gohma Larva}}</nowiki>: {{im/oot|Enemies|Gohma Larva}} | |||
;Switched sides | |||
<nowiki>{{im/oot|Enemies|Gohma Larva|s=1}}</nowiki>: {{im/oot|Enemies|Gohma Larva|s=1}} | |||
<nowiki>{{im/oot| | ;With image parameters of filetype, size, and thumbnail | ||
<nowiki>{{im/oot|Enemies|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}}</nowiki>: {{im/oot|Enemies|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}} | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 04:24, 29 December 2018
The Legend of Zelda: Ocarina of Time specific implementation of {{im}}.
- Parameters
- Page linked to; e.g. Items, Equipment, Upgrades, or Enemies.
- Specific image identifier; e.g. Deku Nut or Skulltula. This is part of the filename, and also the anchor point on the linked page you want the browser to jump to when clicked.
- File extension; "png" is default.
- Optional image parameters; will override default height constraint of x24px, 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.
- display: Display text. This is the different text that you want to display on the page if it is different than the specific image identifier.
Example[edit]
Items (including Item Trading items), Equipment, and Upgrades[edit]
{{im/oo|Items|Deku Nut}}: Deku Nut
{{im/oot|Items|Megaton Hammer}}: Megaton Hammer
{{im/oot|Upgrades|Piece of Heart}}: Piece of Heart
- With image size parameter
{{im/oot|Equipment|Hylian Shield|png|30px}}: Hylian Shield
- Different display text
{{im/oot|Enemies|Deku Baba (withered)|display=withered Deku Babas}}: withered Deku Babas
Enemies[edit]
- In-line links
{{im/oot|Enemies|Gohma Larva}}: Gohma Larva
- Switched sides
{{im/oot|Enemies|Gohma Larva|s=1}}: Gohma Larva
- With image parameters of filetype, size, and thumbnail
{{im/oot|Enemies|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}}: