Jump to navigation
Jump to search
(add gold skulltulas > gold skulltula remap) |
(Simplifying template) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine: | <includeonly>{{#vardefine:basePage|The Legend of Zelda: Ocarina of Time}}<!-- | ||
| | -->{{#vardefine:imagePrefix|{{#switch:{{{1}}} | ||
|Enemies=LoZ OoT enemy | |||
|OoT Items | |||
| | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#vardefine:name|{{#switch:{{{2}}} | -->{{#vardefine:name|{{#switch:{{{2}}} | ||
| | |Zelda's Lullaby|Saria's Song|Epona's Song|Sun's Song=Fairy Ocarina | ||
| | |Song of Storms|Song of Time|Minuet of Forest|Bolero of Fire|Serenade of Water|Nocturne of Shadow|Requiem of Spirit|Prelude of Light|Scarecrow's Song=Ocarina of Time | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|{{{2}}} | |{{{2}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{# | -->{{#if:{{{display|}}} | ||
| | |{{#vardefine:display|{{{display}}}}} | ||
|{{#vardefine:display|{{{2}}}}} | |||
}}<!-- | |||
-->{{#vardefine:link|'''[[{{#var:basePage}}/{{{1}}}#{{{2}}}|{{#var:display}}]]'''}}<!-- | |||
| | -->{{#vardefine:image|{{im|{{#var:imagePrefix}} {{#var:name}}.{{{3|png}}}|{{{4|x24px}}}}}}}<!-- | ||
}}}}<!-- | |||
-->{{#vardefine: | |||
| | |||
}}}}<!-- | |||
-->{{#if:{{{s|}}}<!-- | -->{{#if:{{{s|}}}<!-- | ||
-->|{{#var:image}} {{#var:link}}<!-- | -->|{{#var:image}} {{#var:link}}<!-- |
Latest revision as of 04:22, 29 December 2018
This page has been transcluded from Template:Im/oot/Documentation.
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}}: