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:ChapUnitHdr: Difference between revisions
From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
(Added logic for Gaiden NPC colours) |
Thecornerman (talk | contribs) m (Gave min-width to map animation column, so it doesn't squish in small windows) |
||
Line 1: | Line 1: | ||
{| class="chapter-table" style="width: 95%" | {| class="chapter-table" style="width: 95%" | ||
| style="border: none; background: none" | | | style="border: none; background: none" | | ||
{| class="chapter-table" style="background: {{#switch:{{{type}}}|Enemy=\#a83028|NPC={{#ifeq:{{{platform}}}|nes02|\#3850e0|\#089000 | {| class="chapter-table" style="background: {{#switch:{{{type}}}|Enemy=\#a83028|NPC={{#ifeq:{{{platform}}}|nes02|\#3850e0|\#089000}}|Partner={{#ifeq:{{{platform}}}|snes02|\#089000|goldenrod}}|Third Army=\#f8f840|Other=goldenrod}}; color: {{#switch:{{{type}}}|Enemy|NPC=\#fff|Partner={{#ifeq:{{{platform}}}|snes02|\#fff|black}}|Third Army|Other=black}}; width: 99%" | ||
! style="border: none; background: none" | {{{type}}} Units | ! style="border: none; background: none" | {{{type}}} Units | ||
|} | |} | ||
Line 7: | Line 7: | ||
| style="border: none; background: none" | | | style="border: none; background: none" | | ||
{| style="width: 100%" | {| style="width: 100%" | ||
! class="roundtl" style="width: 3%" | | ! class="roundtl" style="width: 3%; min-width: 16px" | | ||
! style="width: 8%" | Name | ! style="width: 8%" | Name | ||
! style="width: 8%" | Class | ! style="width: 8%" | Class |
Revision as of 19:42, 18 June 2021
| |||||||||||||||
|
Usage
For enemy data on chapter pages. Should be followed with instances of one of the several "ChapUnitCell" templates to display each of the chapter's units, their stats, etc. A set of these should be enclosed with either {{ChapUnitReinf}} or {{ChapUnitFtr}}.
The "type" field should be filled with one of "Enemy", "NPC", "Partner", or "Third Army" depending on what type of units will be displayed below.
The "platform" field should be filled with whatever platform the game in question is using.
{{ChapUnitHdr|type=Enemy|platform=one of nes01, nes02, snes01, snes02, snes03, gba, gcn, wii, ds01, ds02, 3ds01, 3ds02, 3ds03, ns01, ps1}}