恪別𡧲版𢯢𢷮𧵑「模庉:Location map」
Keepout2010 (討論 | 㨂𢵰) n 𠊝替文本-「Mô đun:Arguments」成「模庉:Arguments」 |
Keepout2010 (討論 | 㨂𢵰) n 𠊝替文本-「Thể loại:」成「體類:」 |
||
| 𣳔285: | 𣳔285: | ||
if args.caption and args.caption ~= '' then | if args.caption and args.caption ~= '' then | ||
if (currentTitle.namespace == 0) and mw.ustring.find(args.caption, '##') then | if (currentTitle.namespace == 0) and mw.ustring.find(args.caption, '##') then | ||
retval = retval .. '[[ | retval = retval .. '[[體類:Trang có hai dấu thăng trong chú thích bản đồ định vị]]' | ||
end | end | ||
end | end | ||
| 𣳔333: | 𣳔333: | ||
mw.logObject(args, 'args') | mw.logObject(args, 'args') | ||
if currentTitle.namespace == 0 then | if currentTitle.namespace == 0 then | ||
retval = retval .. '[[ | retval = retval .. '[[體類:Bản đồ định vị có tham số dời|caption_undefined]]' | ||
end | end | ||
end | end | ||
| 𣳔343: | 𣳔343: | ||
(map('crosses180') ~= '' and 'crosses180' or '') .. | (map('crosses180') ~= '' and 'crosses180' or '') .. | ||
(map('type') ~= '' and 'type' or '') | (map('type') ~= '' and 'type' or '') | ||
retval = retval .. '[[ | retval = retval .. '[[體類:Bản đồ định vị có tham số dời|' .. key .. ' ]]' | ||
end | end | ||
end | end | ||
| 𣳔349: | 𣳔349: | ||
mw.log('Pipe used in name of map definition ' .. map()) | mw.log('Pipe used in name of map definition ' .. map()) | ||
if currentTitle.namespace == 0 then | if currentTitle.namespace == 0 then | ||
retval = retval .. '[[ | retval = retval .. '[[體類:Bản đồ định vị có dấu sổ thẳng trong tên]]' | ||
end | end | ||
end | end | ||
| 𣳔489: | 𣳔489: | ||
end | end | ||
if args.link and (currentTitle.namespace == 0) then | if args.link and (currentTitle.namespace == 0) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có ghim được liên kết lấy tọa độ từ Wikidata]]') | ||
end | end | ||
end | end | ||
| 𣳔499: | 𣳔499: | ||
if currentTitle.namespace > 0 then | if currentTitle.namespace > 0 then | ||
if (not args.lon_deg) ~= (not args.lat_deg) then | if (not args.lon_deg) ~= (not args.lat_deg) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có độ chính xác kinh độ và vĩ độ khác nhau|Độ]]') | ||
elseif (not args.lon_min) ~= (not args.lat_min) then | elseif (not args.lon_min) ~= (not args.lat_min) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có độ chính xác kinh độ và vĩ độ khác nhau|Phút]]') | ||
elseif (not args.lon_sec) ~= (not args.lat_sec) then | elseif (not args.lon_sec) ~= (not args.lat_sec) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có độ chính xác kinh độ và vĩ độ khác nhau|Giây]]') | ||
elseif (not args.lon_dir) ~= (not args.lat_dir) then | elseif (not args.lon_dir) ~= (not args.lat_dir) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có độ chính xác kinh độ và vĩ độ khác nhau|Bán cầu]]') | ||
elseif (not args.long) ~= (not args.lat) then | elseif (not args.long) ~= (not args.lat) then | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có độ chính xác kinh độ và vĩ độ khác nhau|Thập phân]]') | ||
end | end | ||
end | end | ||
| 𣳔521: | 𣳔521: | ||
(args.lon_shift and 'lon_shift' or '') .. | (args.lon_shift and 'lon_shift' or '') .. | ||
(args.markhigh and 'markhigh' or '') | (args.markhigh and 'markhigh' or '') | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị có tham số dời|' .. key ..' ]]') | ||
end | end | ||
end | end | ||
| 𣳔543: | 𣳔543: | ||
if currentTitle.namespace == 0 then | if currentTitle.namespace == 0 then | ||
local key = frame:preprocess('{{FULLPAGENAME}}') | local key = frame:preprocess('{{FULLPAGENAME}}') | ||
builder:wikitext('[[ | builder:wikitext('[[體類:Bản đồ định vị không định trước rằng ghim nằm ngoài bản đồ|' .. key .. ' ]]') | ||
end | end | ||
end | end | ||