View source for Module:Settlement short description
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
--generates auto short description for use in infobox settlement
local p = {}
p.categories = ""
local plain = require('Module:Plain text')._main
local getArgs = require('Module:Arguments').getArgs
local tableTools = require ('Module:TableTools')
function p.reverseTable (init)
init[1], init[3] = init[3], init[1]
return init
end
--Display short description using {{short description}}
function p.shortdesc(text, frame)
return frame:expandTemplate{title = 'Short description', args = {text, 'noreplace'}}
end
function p.category (cattype)
local category = string.format('[[Category:Infobox settlement pages with bad %s]]', cattype)
if category then p.categories = p.categories..category end --categorize
000
1:0
Templates used on this page:
- Template:Pagetype (view source)
- Template:SHORTDESC: (view source)
- Template:Short description (view source)
- Module:Arguments (view source)
- Module:Disambiguation (view source)
- Module:Disambiguation/templates (view source)
- Module:Pagetype (view source)
- Module:Pagetype/config (view source)
- Module:Redirect (view source)
- Module:Yesno (view source)
Return to Module:Settlement short description.