恪別𡧲版𢯢𢷮𧵑「模庉:Citation/CS1」
Keepout2010 (討論 | 㨂𢵰) 空固縿略𢯢𢷮 |
SaigonSarang (討論 | 㨂𢵰) n 𠊝替文本-「Mô đun:」成「Module:」 |
||
(空顯示番版𧵑𠬠𠊛用恪於𡧲) | |||
𣳔26: | 𣳔26: | ||
local Frame; -- holds the module's frame table | local Frame; -- holds the module's frame table | ||
---Định dạng ngày tháng. Thay thế [[ | ---Định dạng ngày tháng. Thay thế [[板㑄:Ngày chuẩn]]. | ||
local function vi_formatdate(rawDate, dayPrefix) | local function vi_formatdate(rawDate, dayPrefix) | ||
local formatStr = 'j "tháng" n "năm" Y' | local formatStr = 'j "tháng" n "năm" Y' | ||
𣳔4.111: | 𣳔4.111: | ||
if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version? | if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version? | ||
cfg = mw.loadData (' | cfg = mw.loadData ('Module:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules | ||
whitelist = mw.loadData (' | whitelist = mw.loadData ('Module:Citation/CS1/Whitelist/sandbox'); | ||
utilities = require (' | utilities = require ('Module:Citation/CS1/Utilities/sandbox'); | ||
validation = require (' | validation = require ('Module:Citation/CS1/Date_validation/sandbox'); | ||
identifiers = require (' | identifiers = require ('Module:Citation/CS1/Identifiers/sandbox'); | ||
metadata = require (' | metadata = require ('Module:Citation/CS1/COinS/sandbox'); | ||
styles = ' | styles = 'Module:Citation/CS1/sandbox/styles.css'; | ||
else -- otherwise | else -- otherwise | ||
cfg = mw.loadData (' | cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load live versions of support modules | ||
whitelist = mw.loadData (' | whitelist = mw.loadData ('Module:Citation/CS1/Whitelist'); | ||
utilities = require (' | utilities = require ('Module:Citation/CS1/Utilities'); | ||
validation = require (' | validation = require ('Module:Citation/CS1/Date_validation'); | ||
identifiers = require (' | identifiers = require ('Module:Citation/CS1/Identifiers'); | ||
metadata = require (' | metadata = require ('Module:Citation/CS1/COinS'); | ||
styles = ' | styles = 'Module:Citation/CS1/styles.css'; | ||
end | end | ||
𣳔4.166: | 𣳔4.166: | ||
if nil == suggestions.suggestions then -- if this table is nil then we need to load it | if nil == suggestions.suggestions then -- if this table is nil then we need to load it | ||
if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version? | if nil ~= string.find (frame:getTitle(), 'sandbox', 1, true) then -- did the {{#invoke:}} use sandbox version? | ||
suggestions = mw.loadData( ' | suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version | ||
else | else | ||
suggestions = mw.loadData( ' | suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions' ); -- use the live version | ||
end | end | ||
end | end |