<span class="searchmatch">template</span>_link = m_<span class="searchmatch">template</span>_<span class="searchmatch">parser</span>.<span class="searchmatch">template</span>Link local unpack = unpack or table.unpack -- Lua 5.2 compatibility local wikitag_link = m_<span class="searchmatch">template</span>_<span class="searchmatch">parser</span>.wikitagLink...
"<span class="searchmatch">parser</span> variable" then <span class="searchmatch">parser</span>_variables[name] = output else <span class="searchmatch">templates</span>[name] = output end return output, subclass end function <span class="searchmatch">Template</span>...
template invocation, the function returns nil. The <span class="searchmatch">parser</span> will correctly <span class="searchmatch">parse</span> any wikitext given as <span class="searchmatch">template</span> arguments (such as subtemplates, arguments, tables...
highlight{ lang = "text"} local <span class="searchmatch">parse</span> = require("Module:<span class="searchmatch">template</span> <span class="searchmatch">parser</span>").<span class="searchmatch">parse</span> function tests:check_<span class="searchmatch">templates</span>(examples) local options = { nowiki...
of <span class="searchmatch">parse</span>_<span class="searchmatch">template</span>_name checks if there are any -- arguments, since <span class="searchmatch">parser</span> variables cannot take arguments (e.g. -- {{CURRENTYEAR}} is a <span class="searchmatch">parser</span> variable...
uri_encode = mw.uri.encode mw.loadData = require local m_<span class="searchmatch">parser</span> = require("Module:<span class="searchmatch">parser</span>") local TAGS = { categorytree = true, ce = true, charinsert...
This module provides functions for finding and <span class="searchmatch">parsing</span> <span class="searchmatch">template</span> invocations found in wikitext, though it can also be used for other purposes. find_bracket(str...
various other [[:Category:Form-of <span class="searchmatch">templates</span>|form-of <span class="searchmatch">templates</span>]]. It is meant to be called directly from <span class="searchmatch">templates</span>. See also [[Module:form of]], which...
export.<span class="searchmatch">parse</span>_2_lang_args(parent_args) local sources = args[2] if sources[2] then -- Because this doesn't really make sense. error("[[<span class="searchmatch">Template</span>:inherited]]...
mw.title.new local <span class="searchmatch">parse</span> = require("Module:User:Theknightwho/<span class="searchmatch">template</span> <span class="searchmatch">parser</span>/new").<span class="searchmatch">parse</span> function export.<span class="searchmatch">parse</span>(frame) return <span class="searchmatch">parse</span>(mw.text.unstripNoWiki(frame...