You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local lib = require('Module:Feature')
local search = lib.inArray
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
parentFirst = true,
removeBlanks = false
})
local main = args['text'] or args[1]
local label = args['label'] or args[2] or ''
local r_s,r_e,b,i,u_s,u_e,v_s,v_e = '','','','','','','',''
if main == nil then error('A value must be given') end
local nw = mw.text.nowiki
local out = mw.html.create('span'):addClass(' custom-formatting-code')
if args.NC then
out:addClass(' custom-formatting-plain')
end
if args.block then
out:addClass(' code-block' .. lib.ternary(main:find('Infobox'),'-table',''))
end
000
1:0
Templates used on this page:
- Template:Documentation/Header (view source)
- Template:T (view source)
- Module:Arguments (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/styles.css (view source)
- Module:Feature (view source)
- Module:Formatting (view source)
- Module:Formatting/doc (view source)
Return to Module:Formatting.