Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Gnoblin

From Deepest Lore
Revision as of 16:46, 29 March 2026 by Elias (talk | contribs) (Created page with "local p = {} function p.processTitle(frame) local input = frame.args[1] or "" -- Check if input already looks like a {{Title}} template if mw.ustring.match(input, "^%s*%{%{%s*[Tt]itle%s*[|}]") then return input end -- Otherwise wrap it in {{Title|name=...}} return string.format("{{Title|name=%s}}", input) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Titles

! colspan="2" class="infobox-subheader" | Not on a character |-



! colspan="2" class="infobox-subheader" | |-

{{Title|name= Using the template }}
Gnoblin
{{Title|name=Simple name only}}
Gnoblin

local p = {}

function p.processTitle(frame)
    local input = frame.args[1] or ""

    -- Check if input already looks like a {{Title}} template
    if mw.ustring.match(input, "^%s*%{%{%s*[Tt]itle%s*[|}]") then
        return input
    end

    -- Otherwise wrap it in {{Title|name=...}}
    return string.format("{{Title|name=%s}}", input)
end

return p
Contents