Modulo:Datoj: Malsamoj inter versioj
[kontrolita revizio] | [kontrolita revizio] |
Enhavo forigita Enhavo aldonita
alia provo de transpreno de parametroj laŭ la angla modulo en:Module:Citation |
e ĉu eble tiel? |
||
Linio 68:
function p.daton( frame )
-- Allow for invocation via #invoke or directly from another module
local pframe = frame:getParent()▼
local args
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself▼
if frame == mw.getCurrentFrame() then
local args = pframe.args -- the arguments passed TO the template, in the wikitext that instantiates the template▼
args = frame.args
else
▲
▲
end
local t = args[1] or "" -- tago
local m = args[2] or "" -- monato
|