恪別𡧲版𢯢𢷮𧵑「模庉:Location map/multi」
SaigonSarang (討論 | 㨂𢵰) 造張㵋貝內容「require('strict') local p = {} local getArgs = require('Mô đun:Arguments').getArgs local locmap = require('Mô đun:Location map') local function switcherSeparate(s) if s == nil then return {} end local retval = {} for i in mw.ustring.gmatch(s .. '#', '([^#]*)#') do i = mw.text.trim(i) retval[#retval + 1] = (i ~= '' and i) end return retval end function p.container(frame, args, map) local caption_list = {} if not args then args = getArgs(frame, {wr…」 |
SaigonSarang (討論 | 㨂𢵰) n 𠊝替文本-「Bản mẫu:」成「Template:」 |
||
| (空顯示2番版𧵑2𠊛用於𡧲) | |||
| 𣳔3: | 𣳔3: | ||
local p = {} | local p = {} | ||
local getArgs = require(' | local getArgs = require('Module:Arguments').getArgs | ||
local locmap = require(' | local locmap = require('Module:Location map') | ||
local function switcherSeparate(s) | local function switcherSeparate(s) | ||
| 𣳔19: | 𣳔19: | ||
local caption_list = {} | local caption_list = {} | ||
if not args then | if not args then | ||
args = getArgs(frame, {wrappers = ' | args = getArgs(frame, {wrappers = 'Template:Bản đồ định vị+', valueFunc = locmap.valueFunc}) | ||
end | end | ||
if not map then | if not map then | ||
| 𣳔133: | 𣳔133: | ||
function p.many(frame, args, map) | function p.many(frame, args, map) | ||
if not args then | if not args then | ||
args = getArgs(frame, {wrappers = ' | args = getArgs(frame, {wrappers = 'Template:Bản đồ định vị nhiều', valueFunc = locmap.valueFunc}) | ||
end | end | ||
if not args[1] then | if not args[1] then | ||
| 𣳔201: | 𣳔201: | ||
end | end | ||
args.label = nil -- there is no global label | args.label = nil -- there is no global label | ||
return locmap.top(frame, args, map) .. body .. locmap.bottom(frame, args, map) .. (markhigh and '[[ | return locmap.top(frame, args, map) .. body .. locmap.bottom(frame, args, map) .. (markhigh and '[[體類:Bản đồ định vị có thể có lỗi|Trang sử dụng tham số dời]]' or '') | ||
end | end | ||