恪別𡧲版𢯢𢷮𧵑「Module:Citation/CS1」
no edit summary
Keepout2010 (討論 | 㨂𢵰) 空固𥿂略𢯢𢷮 |
Keepout2010 (討論 | 㨂𢵰) 空固𥿂略𢯢𢷮 |
||
𣳔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 |