恪別𡧲版𢯢𢷮𧵑「Module:Citation/CS1」
no edit summary
Keepout2010 (討論 | 㨂𢵰) 空固𥿂略𢯢𢷮 |
Keepout2010 (討論 | 㨂𢵰) 空固𥿂略𢯢𢷮 |
||
(空顯示1番版於𡧲𧵑共𠊛用) | |||
𣳔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 ('Mô đun:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules | ||
whitelist = mw.loadData (' | whitelist = mw.loadData ('Mô đun:Citation/CS1/Whitelist/sandbox'); | ||
utilities = require (' | utilities = require ('Mô đun:Citation/CS1/Utilities/sandbox'); | ||
validation = require (' | validation = require ('Mô đun:Citation/CS1/Date_validation/sandbox'); | ||
identifiers = require (' | identifiers = require ('Mô đun:Citation/CS1/Identifiers/sandbox'); | ||
metadata = require (' | metadata = require ('Mô đun:Citation/CS1/COinS/sandbox'); | ||
styles = ' | styles = 'Mô đun:Citation/CS1/sandbox/styles.css'; | ||
else -- otherwise | else -- otherwise | ||
cfg = mw.loadData (' | cfg = mw.loadData ('Mô đun:Citation/CS1/Configuration'); -- load live versions of support modules | ||
whitelist = mw.loadData (' | whitelist = mw.loadData ('Mô đun:Citation/CS1/Whitelist'); | ||
utilities = require (' | utilities = require ('Mô đun:Citation/CS1/Utilities'); | ||
validation = require (' | validation = require ('Mô đun:Citation/CS1/Date_validation'); | ||
identifiers = require (' | identifiers = require ('Mô đun:Citation/CS1/Identifiers'); | ||
metadata = require (' | metadata = require ('Mô đun:Citation/CS1/COinS'); | ||
styles = ' | styles = 'Mô đun: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( 'Mô đun:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version | ||
else | else | ||
suggestions = mw.loadData( ' | suggestions = mw.loadData( 'Mô đun:Citation/CS1/Suggestions' ); -- use the live version | ||
end | end | ||
end | end |