Site News
Warning: This wiki contains spoilers. Read at your own risk!

Social media: If you would like, please join our Discord server, and/or follow us on Twitter (X) or Tumblr!

Template:Item: Difference between revisions

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
m (More TRS examples)
(Experiment)
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[File:Is {{#invoke:Item|PlatformGame|{{{1|gba}}}}} {{lc:{{{image|{{{2|Iron Sword}}}}}}}}.png|alt=]] [[{{#switch:{{{1|}}}|ps1=TearRingSaga:}}{{{link|{{{2|Iron Sword}}}}}}|<span style="color: {{#switch:{{{type|}}}|drop={{#switch:{{#invoke:Item|PlatformGame|{{{1|gba}}}}}|gcn=#ff8080|wii=#ff8080|#00ff00}}|forged=#45d0f0}};">{{{2|Iron Sword}}}</span>]]{{#switch:{{{type|}}}|drop=[[File:SNESItemDrop.png|link=Inventory#Droppable items|This item is dropped upon this unit's defeat.]]|forged=[[File:3DSForge.png|14px|link=Forge|This weapon is forged and has boosted stats.]]}}<noinclude><br>
[[File:Is {{#invoke:Item|PlatformGame|{{{1|gba}}}}} {{lc:{{{image|{{{2|Iron Sword}}}}}}}}.png{{#switch:{{{1}}}|16|fewa|fewa2={{!}}x20px|17={{!}}x24px}}|alt=|link={{#switch:{{{1}}}|ps1|ps2|vs1=Saga:}}{{{link|{{{2|Iron Sword}}}}}}]] [[{{#switch:{{{1}}}|ps1|ps2|vs1=Saga:}}{{{link|{{{2|Iron Sword}}}}}}|<span style="color: {{#switch:{{{type}}}|drop=#{{#switch:{{#invoke:Item|PlatformGame|{{{1|gba}}}}}|gcn|wii=ff8080|0f0}}|forged=#45d0f0}}">{{{2|Iron Sword}}}</span>]]{{#switch:{{{type}}}|drop=[[File:SNESItemDrop.png|link=Inventory#Droppable items|This item is dropped upon this unit's defeat.]]|forged=[[File:3DSForge.png|14px|link=Forge|This weapon is forged and has boosted stats.]]}}{{#if:{{{lock|}}}|[[File:WiiLock.png|14px|link=Inventory#Locked items|This item or skill is locked to this unit.]]}}<noinclude>
To make adding item and skills and their icons to enemy/character data pages more streamlined.
{{doc}}</noinclude>
<pre>
{{Item|platform|item/skill}}
 
For above: {{Item|gba|Iron Sword}}
</pre>
Where "platform" is one of nes01, nes02, snes01, snes02, snes03, gba, gcn, wii, 3ds01, 3ds02, 3ds03. This determines which game the image comes from. Alternatively, the game's number can be put in this parameter (i.e. {{FE11}} would be 11).
 
For [[Inventory#Droppable items|dropped]] and [[forge]]d items, the "type" parameter should be added. Examples:
<pre>
{{Item|gba|Vulnerary|type=drop}}
</pre>
{{Item|gba|Vulnerary|type=drop}}
<pre>
{{Item|gcn|Vulnerary|type=drop}}
</pre>
{{Item|gcn|Vulnerary|type=drop}}
<pre>
{{Item|ds|Silver Sword|type=forged}}
</pre>
{{Item|ds|Silver Sword|type=forged}}
 
Additional parameters can be added to manually change the image and the article the text links to. Examples:
<pre>
{{Item|14|Iron Katana|image=katana}}
</pre>
{{Item|14|Iron Katana|image=katana}}
<pre>
{{Item|gcn|Astra|link=Astra (skill)}}
</pre>
{{Item|gcn|Astra|link=Astra (skill)}}
 
Multiple parameters can be used at the same time.
<pre>
{{Item|14|Thunder|link=Thunder (tome)|image=tome|type=drop}}
</pre>
{{Item|14|Thunder|link=Thunder (tome)|image=tome|type=drop}}
 
For {{TRS1}}, the template will automatically link to the relevant ''TearRingSaga'' wikispace article.
<pre>
{{Item|ps1|Warp}}
{{Item|ps1|Fire|link=Fire (spell)}}
{{Item|ps1|Continuation|image=continuation skill}}
</pre>
{{Item|ps1|Warp}}
 
{{Item|ps1|Fire|link=Fire (spell)}}
 
{{Item|ps1|Continuation|image=continuation skill}}
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 22:23, 22 January 2023

Iron Sword

Purpose

A template for use on character data and chapter data pages. This makes adding an item or skill with a link to its page alongside its icon more streamlined.

Usage

This template has two main parameters: the game's number in the series/console platform code, and the item/skill's name.

{{Item|platform|item/skill}}

For above: {{Item|gba|Iron Sword}}

There additional parameters that can be included or excluded when needed. They can be put in any order in the template, as long as the first two parameters are still the required two.

For dropped and forged items, the "type" parameter should be added. Examples:

{{Item|gba|Vulnerary|type=drop}}
{{Item|gcn|Vulnerary|type=drop}}
{{Item|ds|Silver Sword|type=forged}}

VulneraryThis item is dropped upon this unit's defeat.

VulneraryThis item is dropped upon this unit's defeat.

Silver SwordThis weapon is forged and has boosted stats.

If an item is locked to a unit's inventory, the "lock" parameter should be added. Examples:

{{Item|ds|Fire Emblem|link=Fire Emblem (Archanean item)|lock=y}}
{{Item|10|Steel Sword|type=drop|lock=y}}

Fire EmblemThis item or skill is locked to this unit.

Steel SwordThis item is dropped upon this unit's defeat.This item or skill is locked to this unit.

Additional parameters can be added to manually change the image and the article the text links to. Examples:

{{Item|14|Iron Katana|image=katana}}
{{Item|gcn|Blessing|link=Blessing (skill)}}

Iron Katana

Blessing

Multiple parameters can be used at the same time.

{{Item|14|Thunder|image=tome|type=drop}}

ThunderThis item is dropped upon this unit's defeat.

For items and skills in TearRing Saga: Yutona Heroes War Chronicles, the template will automatically link to the relevant TearRingSaga namespace article.

{{Item|ps1|Warp}}
{{Item|ps1|Fire|link=Fire (spell)}}
{{Item|ps1|Continuation|image=continuation skill}}

Warp

Fire

Continuation