FANDOM


--  {{#invoke:Set templates|quotes|$localized-name|$language}}
--[[
    quotes
    Intended to wrap a text with quotes
    (either "" or 「」, depending on the language)
    (Japanese and Chinese for the later).
    If no text is given, outputs blank.
    The arg[1] is supposed to be a card name;
    The arg[2] is supposed to be a language code;
]]
local myInput = {}
 
function myInput.quotes( frame )
    local _localizedName = frame.args[1]
    local _language      = frame.args[2]
    _localizedName = _localizedName or ""
 
    if _localizedName == nil or _localizedName == "" then
        return
    else
        if _language == "ja" or _language == "zh" then
            return '「' .. _localizedName .. '」'
        else
            return '"' .. _localizedName .. '"'
        end
    end
end
 
return myInput

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.