From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(→‎Example: added piece of heart example)
(Update documentation)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:


;Parameters
;Parameters
#Type of image; e.g. Item, Equipment, Upgrade, or Enemy.
#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 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 {{t|!}} 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).
#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/oot|Item|Deku Nut}}</nowiki>: {{im/oot|Item|Deku Nut}}
===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|Upgrade|Piece of Heart}}</nowiki>: {{im/oot|Upgrade|Piece of Heart}}
;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}}


<nowiki>{{im/oot|Enemy|Gohma Larva|s=1}}</nowiki>: {{im/oot|Enemy|Gohma Larva|s=1}}
;Switched sides
<nowiki>{{im/oot|Enemies|Gohma Larva|s=1}}</nowiki>: {{im/oot|Enemies|Gohma Larva|s=1}}


<nowiki>{{im/oot|Enemy|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}}</nowiki>: {{im/oot|Enemy|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}}
;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
  1. Page linked to; e.g. Items, Equipment, Upgrades, or Enemies.
  2. 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.
  3. File extension; "png" is default.
  4. 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 OoT Items Deku Nut.png

{{im/oot|Items|Megaton Hammer}}: Megaton Hammer OoT Items Megaton Hammer.png

{{im/oot|Upgrades|Piece of Heart}}: Piece of Heart OoT Items Piece of Heart.png

With image size parameter

{{im/oot|Equipment|Hylian Shield|png|30px}}: Hylian Shield OoT Items Hylian Shield.png

Different display text

{{im/oot|Enemies|Deku Baba (withered)|display=withered Deku Babas}}: withered Deku Babas LoZ OoT enemy Deku Baba (withered).png

Enemies[edit]

In-line links

{{im/oot|Enemies|Gohma Larva}}: Gohma Larva LoZ OoT enemy Gohma Larva.png

Switched sides

{{im/oot|Enemies|Gohma Larva|s=1}}: LoZ OoT enemy Gohma Larva.png Gohma Larva

With image parameters of filetype, size, and thumbnail

{{im/oot|Enemies|Deku Scrub|png|50px{{!}}thumb{{!}}left|s=1}}:

LoZ OoT enemy Deku Scrub.png

 Deku Scrub