15.088
Bearbeitungen
Keine Bearbeitungszusammenfassung |
(fix local htmlAndWikitextDump()) |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 22: | Zeile 22: | ||
end | end | ||
function p. | function p.GetFrameAndParentArgs(frame) | ||
-- mw.log("GetFrameAndParentArgs(frame)") | |||
if frame. | -- mw.logObject(frame) | ||
-- Konsolenzeile zum Debuggen: | |||
-- p.GetParentArgs{pargs={test=14}} | |||
local pargs | |||
if frame.pargs ~= nil then | |||
pargs = frame.pargs -- for debugging purposes in console | |||
frame = mw.getCurrentFrame() | |||
else | else | ||
pargs = frame:getParent().args | |||
end | end | ||
return | -- mw.logObject(frame) | ||
-- mw.logObject(pargs) | |||
return frame, pargs | |||
end | end | ||
| Zeile 36: | Zeile 42: | ||
local d = "" | local d = "" | ||
for i = 1, mw.ustring.len(t) do | for i = 1, mw.ustring.len(t) do | ||
c = mw.ustring.byte(t, i) | local c = mw.ustring.byte(t, i) | ||
if c == mw.ustring.byte("[") then | if c == mw.ustring.byte("[") then | ||
d = d .. "[" | d = d .. "[" | ||