View source for Module:Unsubst
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local checkType = require('libraryUtil').checkType
local p = {}
local BODY_PARAM = '$B'
local specialParams = {
['$params'] = 'parameter list',
['$aliases'] = 'parameter aliases',
['$flags'] = 'flags',
['$B'] = 'template content',
['$template-name'] = 'template invocation name override',
}
function p.main(frame, body)
-- If we are substing, this function returns a template invocation, and if
-- not, it returns the template body. The template body can be specified in
-- the body parameter, or in the template parameter defined in the
-- BODY_PARAM variable. This function can be called from Lua or from
-- #invoke.
-- Return the template body if we aren't substing.
000
1:0
Templates used on this page:
- Template:)) (view source)
- Template:Para (view source)
- Template:Sandbox other (view source)
- Template:Tag (view source)
- Template:Template link code (view source)
- Template:Template link expanded (view source)
- Template:Tlc (view source)
- Template:Tlsc (view source)
- Template:Tlx (view source)
- Module:Arguments (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/styles.css (view source)
- Module:String (view source)
- Module:Template link general (view source)
- Module:Unsubst (view source)
- Module:Unsubst/doc (view source)
Return to Module:Unsubst.