View source for Module:template

Jump to navigation Jump to search

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

local export = {}
local function make_template(frame, nested)
local args = (frame:getParent() and frame:getParent().args) or frame.args
local out = {"&#123;&#123;", (nested and "<code>") or "", frame.args[1]}
local i = 2
while frame.args[i] do
table.insert(out, "&#124;" .. frame.args[i])
i = i + 1
end
for key, value in ipairs(frame.args) do
if type(key) == "string" then
table.insert(out, "&#124;" .. key .. "=" .. value)
end
end
table.insert(out, ((nested and "") or "</code>") .. "&#125;&#125;")
return table.concat(out)
end
function export.show(frame)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:template.