On Friday, April 19, 2024 at 10:00 PM New York time, all OpenWiki Project sites will be undergoing scheduled maintenance for about 2 hours. Expect read-only access and brief periods of downtime.

Template:ItemData: Difference between revisions

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
m (Correction to rounding)
m (Removed need for all fields to be declared after respective game# field, set default values as "--".)
Line 8: Line 8:
|-
|-
{{#if:{{{game1|}}}|
{{#if:{{{game1|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game1|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game1|}}}
{{#if:{{{sprite1|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite1|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite1|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses1|--}}}
{{#if:{{{uses1|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth1|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses1|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes1|--}}}}}
{{#if:{{{worth1|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth1|}}}}}
{{#if:{{{notes1|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes1|}}}}}
|-
|-
{{#if:{{{game2|}}}|
{{#if:{{{game2|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game2|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game2|}}}
{{#if:{{{sprite2|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite2|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite2|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses2|--}}}
{{#if:{{{uses2|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth2|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses2|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes2|--}}}}}
{{#if:{{{worth2|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth2|}}}}}
{{#if:{{{notes2|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes2|}}}}}
|-
|-
{{#if:{{{game3|}}}|
{{#if:{{{game3|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game3|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game3|}}}
{{#if:{{{sprite3|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite3|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite3|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses3|--}}}
{{#if:{{{uses3|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth3|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses3|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes3|--}}}}}
{{#if:{{{worth3|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth3|}}}}}
{{#if:{{{notes3|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes3|}}}}}
|-
|-
{{#if:{{{game4|}}}|
{{#if:{{{game4|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game4|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game4|}}}
{{#if:{{{sprite4|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite4|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite4|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses4|--}}}
{{#if:{{{uses4|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth4|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses4|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes4|--}}}}}
{{#if:{{{worth4|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth4|}}}}}
{{#if:{{{notes4|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes4|}}}}}
|-
|-
{{#if:{{{game5|}}}|
{{#if:{{{game5|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game5|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game5|}}}
{{#if:{{{sprite5|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite5|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite5|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses5|--}}}
{{#if:{{{uses5|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth5|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses5|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes5|--}}}}}
{{#if:{{{worth5|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth5|}}}}}
{{#if:{{{notes5|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes5|}}}}}
|-
|-
{{#if:{{{game6|}}}|
{{#if:{{{game6|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game6|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game6|}}}
{{#if:{{{sprite6|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite6|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite6|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses6|--}}}
{{#if:{{{uses6|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth6|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses6|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes6|--}}}}}
{{#if:{{{worth6|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth6|}}}}}
{{#if:{{{notes6|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes6|}}}}}
|-
|-
{{#if:{{{game7|}}}|
{{#if:{{{game7|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game7|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game7|}}}
{{#if:{{{sprite7|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite7|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite7|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses7|--}}}
{{#if:{{{uses7|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth7|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses7|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes7|--}}}}}
{{#if:{{{worth7|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth7|}}}}}
{{#if:{{{notes7|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes7|}}}}}
|-
|-
{{#if:{{{game8|}}}|
{{#if:{{{game8|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game8|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game8|}}}
{{#if:{{{sprite8|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite8|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite8|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses8|--}}}
{{#if:{{{uses8|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth8|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses8|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes8|--}}}}}
{{#if:{{{worth8|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth8|}}}}}
{{#if:{{{notes8|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes8|}}}}}
|-
|-
{{#if:{{{game9|}}}|
{{#if:{{{game9|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game9|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game9|}}}
{{#if:{{{sprite9|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite9|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite9|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses9|--}}}
{{#if:{{{uses9|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth9|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses9|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes9|--}}}}}
{{#if:{{{worth9|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth9|}}}}}
{{#if:{{{notes9|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes9|}}}}}
|-
|-
{{#if:{{{game10|}}}|
{{#if:{{{game10|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game10|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game10|}}}
{{#if:{{{sprite10|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite10|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite10|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses10|--}}}
{{#if:{{{uses10|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth10|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses10|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes10|--}}}}}
{{#if:{{{worth10|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth10|}}}}}
{{#if:{{{notes10|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes10|}}}}}
|-
|-
{{#if:{{{game11|}}}|
{{#if:{{{game11|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game11|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game11|}}}
{{#if:{{{sprite11|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite11|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite11|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses11|--}}}
{{#if:{{{uses11|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth11|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses11|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes11|--}}}}}
{{#if:{{{worth11|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth11|}}}}}
{{#if:{{{notes11|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes11|}}}}}
|-
|-
{{#if:{{{game12|}}}|
{{#if:{{{game12|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{game12|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{game12|}}}
{{#if:{{{sprite12|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{sprite12|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{sprite12|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses12|--}}}
{{#if:{{{uses12|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth12|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{uses12|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{notes12|--}}}}}
{{#if:{{{worth12|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worth12|}}}}}
{{#if:{{{notes12|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{notes12|}}}}}
|-
|-
{{#if:{{{game13|}}}|
{{#if:{{{game13|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game13|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{game13|}}}
{{#if:{{{sprite13|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite13|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{sprite13|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses13|--}}}
{{#if:{{{uses13|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth13|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{uses13|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes13|--}}}}}
{{#if:{{{worth13|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{worth13|}}}}}
{{#if:{{{notes13|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{notes13|}}}}}
|-
|-
{{#if:{{{game14|}}}|
{{#if:{{{game14|}}}|
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{game14|}}}}}
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{game14|}}}
{{#if:{{{sprite14|}}}|
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{sprite14|--}}}
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{sprite14|}}}}}
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{uses14|--}}}
{{#if:{{{uses14|}}}|
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{worth14|--}}}
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{uses14|}}}}}
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{notes14|--}}}}}
{{#if:{{{worth14|}}}|
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{worth14|}}}}}
{{#if:{{{notes14|}}}|
{{!}}style="border:none; background-color:{{Color1}}" {{!}} {{{notes14|}}}}}
|-
|-
{{#if:{{{gameo|}}}|
{{#if:{{{gameo|}}}|
{{!}}style="{{roundbl|20px}}; border:none; background-color:{{Color3}}" {{!}} {{{gameo|}}}}}
{{!}}style="{{roundbl|20px}}; border:none; background-color:{{Color3}}" {{!}} {{{gameo|}}}
{{#if:{{{spriteo|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{spriteo|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{spriteo|}}}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{useso|--}}}
{{#if:{{{useso|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{wortho|--}}}
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{useso|}}}}}
{{!}}style="{{roundbr|20px}}; border:none; background-color:{{Color3}}" {{!}} {{{noteso|--}}}}}
{{#if:{{{wortho|}}}|
{{!}}style="border:none; background-color:{{Color3}}" {{!}} {{{wortho|}}}}}
{{#if:{{{noteso|}}}|
{{!}}style="{{roundbr|20px}}; border:none; background-color:{{Color3}}" {{!}} {{{noteso|}}}}}
|-
|-
{{#if:{{{gamee|}}}|
{{#if:{{{gamee|}}}|
{{!}}style="{{roundbl|20px}}; background:{{Color1}}" {{!}} {{{gamee|}}}}}
{{!}}style="{{roundbl|20px}}; background:{{Color1}}" {{!}} {{{gamee|}}}
{{#if:{{{spritee|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{spritee|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{spritee|}}}}}
{{!}}style="background:{{Color1}}" {{!}} {{{usese|--}}}
{{#if:{{{usese|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worthe|--}}}
{{!}}style="background:{{Color1}}" {{!}} {{{usese|}}}}}
{{!}}style="{{roundbr|20px}}; background:{{Color1}}" {{!}} {{{notese|--}}}}}
{{#if:{{{worthe|}}}|
{{!}}style="background:{{Color1}}" {{!}} {{{worthe|}}}}}
{{#if:{{{notese|}}}|
{{!}}style="{{roundbr|20px}}; background:{{Color1}}" {{!}} {{{notese|}}}}}
|-
|-
|}<noinclude>
|}<noinclude>

Revision as of 03:02, 18 September 2020

width=150px style="Template:Roundtl; border:none"|Game Icon Uses Worth width=400px style="Template:Roundtr}; border:none"|Effects and notes

Usage

For item stats on item/weapon pages. Input the values after the equal signs. Game values have to be inputted; input them as "{{title|Game Title}}".

There are fourteen FE games in total, so use "game1" to "game14". "Game14" has been coded as the last row, with rounded corners. However, if the item did not appear in FE14 (Fates), then use "gameo" (if the total number of games is odd) or "gamee" (if the total number of games is even.) Whatever number after "game" is used is irrelevant, as long as the last row is rounded used "game14", "gameo" OR "gamee" (and so, "rank14"/"ranko"/"ranke".)

In other words, use "game1" to "game14" for different games, but the number is irrelevant as long as the last set of values are rounded using "game14", "gameo" OR "gamee".

{{ItemData
|game1=
|sprite1=
|uses1=
|worth1=
|notes1=
|-
|game2=
|sprite2=
|uses2=
|worth2=
|notes2=
|-
...
|game14=
|sprite14=
|uses14=
|worth14=
|notes14=
|-
}}