Editing Module:D'ni Tools
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 296: | Line 296: | ||
function p.dnifont2ots(frame) | function p.dnifont2ots(frame) | ||
return | return frame.args[1] | ||
end | end | ||
function p.dnifont2nts(frame) | function p.dnifont2nts(frame) | ||
-- If called via #invoke, use the args passed into the invoking template. | |||
-- Otherwise, for testing purposes, assume args are being passed directly in. | |||
if frame == mw.getCurrentFrame() then | |||
origArgs = frame:getParent().args | |||
else | |||
origArgs = frame.args | |||
end | |||
return dnifont2nts( | return dnifont2nts(origArgs[1]) | ||
end | end | ||