local upper = string.upper local <span class="searchmatch">data</span> = {} do local tags = mw.load<span class="searchmatch">Data</span>("Module:<span class="searchmatch">data</span>/<span class="searchmatch">parser</span> extension tags") local <span class="searchmatch">data</span>_end_tags = {} -- Generates the...
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...
fullText local <span class="searchmatch">template</span>_memo = {} local <span class="searchmatch">template</span>_name_memo = {} local <span class="searchmatch">template</span>_prefixed_name_memo = {} local <span class="searchmatch">parser</span>_variable_memo = {} local <span class="searchmatch">parser</span>_function_memo...
upper local uri_encode = mw.uri.encode mw.load<span class="searchmatch">Data</span> = require local m_<span class="searchmatch">parser</span> = require("Module:<span class="searchmatch">parser</span>") local TAGS = { categorytree = true, ce = true...
specific <span class="searchmatch">parse</span>. function <span class="searchmatch">Parser</span>:new(text) return setmetatable({ text = text, head = 1 }, self) end function <span class="searchmatch">Parser</span>:<span class="searchmatch">parse</span>(<span class="searchmatch">data</span>) local <span class="searchmatch">parser</span> = self:new(data...
--Note: noinclude, includeonly and onlyinclude are not <span class="searchmatch">parser</span> extension tags, as they are handled in a special way by the preprocessor. Among other things...
loaded[modname] end mw.load<span class="searchmatch">Data</span> = require setmetatable(loaded, { __mode = "v" }) local <span class="searchmatch">Parser</span> = {} <span class="searchmatch">Parser</span>.__index = <span class="searchmatch">Parser</span> ------------------------...
embedded {{,}} <span class="searchmatch">template</span>, as in [[MMR]], [[TMA]], [[DEI]], where an -- initialism expands to multiple terms; easiest not to try and <span class="searchmatch">parse</span> the lemma spec...
require("Module:ko").link local <span class="searchmatch">parse</span> = m_<span class="searchmatch">template</span>_<span class="searchmatch">parser</span>.<span class="searchmatch">parse</span> local pcall = pcall function export.main(frame) local text = frame:getParent().args["<span class="searchmatch">data</span>"] if not text...
specific <span class="searchmatch">parse</span>. function <span class="searchmatch">Parser</span>:new(text) return setmetatable({ text = text, head = 1 }, self) end function <span class="searchmatch">Parser</span>:<span class="searchmatch">parse</span>(<span class="searchmatch">data</span>) local <span class="searchmatch">parser</span> = self:new(data...