𨀈𬧐內容

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

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