Module:Parameter names example: Difference between revisions
m 1 revision imported |
Created page with "-- This module implements {{parameter names example}}. local p = {} local function makeParam(s) local lb = '{' local rb = '}' return lb:rep(3) .. s .. rb:rep(3) end local function italicize(s) return "''" .. s .. "''" end local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if args._display == 'italics' or args._display == 'italic' then formatFunc = italic..." |
||
| Line 37: | Line 37: | ||
end | end | ||
end | end | ||
targs['nocat'] = 'yes'; | |||
targs['categories'] = 'no'; | --targs['nocat'] = 'yes'; | ||
targs['demo'] = 'yes'; | --targs['categories'] = 'no'; | ||
--targs['demo'] = 'yes'; | |||
-- Find the template name. | -- Find the template name. | ||