模块:Settlement short description
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
| Warning | This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
| 文件:Lua-logo-nolabel.svg | 此-{zh-hans:模块; zh-hant:模組;}-使用Lua语言: |
Usage
Used in Template:Infobox settlement to generate short descriptions.
--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
return p