𨀈𬧐內容

恪別𡧲版𢯢𢷮𧵑「Module:Citation/CS1」

no edit summary
空固𥿂略𢯢𢷮
空固𥿂略𢯢𢷮
 
(空顯示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 ('Module:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules
cfg = mw.loadData ('Mô đun:Citation/CS1/Configuration/sandbox'); -- load sandbox versions of support modules
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist/sandbox');
whitelist = mw.loadData ('Mô đun:Citation/CS1/Whitelist/sandbox');
utilities = require ('Module:Citation/CS1/Utilities/sandbox');
utilities = require ('Mô đun:Citation/CS1/Utilities/sandbox');
validation = require ('Module:Citation/CS1/Date_validation/sandbox');
validation = require ('Mô đun:Citation/CS1/Date_validation/sandbox');
identifiers = require ('Module:Citation/CS1/Identifiers/sandbox');
identifiers = require ('Mô đun:Citation/CS1/Identifiers/sandbox');
metadata = require ('Module:Citation/CS1/COinS/sandbox');
metadata = require ('Mô đun:Citation/CS1/COinS/sandbox');
styles = 'Module:Citation/CS1/sandbox/styles.css';
styles = 'Mô đun:Citation/CS1/sandbox/styles.css';
else -- otherwise
else -- otherwise
cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load live versions of support modules
cfg = mw.loadData ('Mô đun:Citation/CS1/Configuration'); -- load live versions of support modules
whitelist = mw.loadData ('Module:Citation/CS1/Whitelist');
whitelist = mw.loadData ('Mô đun:Citation/CS1/Whitelist');
utilities = require ('Module:Citation/CS1/Utilities');
utilities = require ('Mô đun:Citation/CS1/Utilities');
validation = require ('Module:Citation/CS1/Date_validation');
validation = require ('Mô đun:Citation/CS1/Date_validation');
identifiers = require ('Module:Citation/CS1/Identifiers');
identifiers = require ('Mô đun:Citation/CS1/Identifiers');
metadata = require ('Module:Citation/CS1/COinS');
metadata = require ('Mô đun:Citation/CS1/COinS');
styles = 'Module:Citation/CS1/styles.css';
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( 'Module:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version
suggestions = mw.loadData( 'Mô đun:Citation/CS1/Suggestions/sandbox' ); -- use the sandbox version
else
else
suggestions = mw.loadData( 'Module:Citation/CS1/Suggestions' ); -- use the live version
suggestions = mw.loadData( 'Mô đun:Citation/CS1/Suggestions' ); -- use the live version
end
end
end
end