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

Social media: Get in touch with Fire Emblem Wiki on Twitter, Facebook, or Discord!
MediaWiki update: Fire Emblem Wiki has been updated to MediaWiki 1.32.0! If you notice any errors, please report them to a member of our tech support team.


From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.

For use with Template:Item.


If the user inputs the number of a game (e.g. 11 for Fire Emblem: Shadow Dragon), this will output the platform code for use in image file names (e.g. "ds" for Shadow Dragon).

{{#invoke:Item|PlatformGame|<game no>}}

Enter the game's number in the first parameter. If a non-numeral is entered here, it simply returns whatever is entered.



This will return "ds", as that is the platform code for game 12 (Fire Emblem: New Mystery of the Emblem).

local p = {}

Get the game's platform code from its number.

function p.PlatformGame(frame)
    game_no = tonumber(frame.args[1])
    if( game_no == nil ) then
        return frame.args[1]

    local g_platform = {
        [1] = "nes01",
        [2] = "nes02",
        [3] = "snes01",
        [4] = "snes02",
        [5] = "snes03",
        [6] = "gba",
        [7] = "gba",
        [8] = "gba",
        [9] = "gcn",
        [10] = "wii",
        [11] = "ds",
        [12] = "ds",
        [13] = "3ds01",
        [14] = "3ds02",
        [15] = "3ds03",
        [16] = "ns01"

    return g_platform[game_no]

return p