Changes
Jump to navigation
Jump to search
-- return mw.text.tag({name = "ref", contents = content, params = args} return z.wikitext.tag(, frame, {name = "ref", contents = content, params = args})
Changed to use "mw" library.
function nowiki(frame, content)
return zmw.wikitexttext.tag(frame, {name="nowiki",contents=content,params={}}, frame)
end
if ( AccessDate ~= nil ) then AccessDate = " Accessed on " .. AccessDate .. "." else AccessDate = "" end
if ( SubscriptionRequired ~= nil ) then
SubscriptionRequired = " " .. zmw.wikitexttext.HTMLTagtag({name="span", contents="(subscription required)", params={style="font-size:0.95em; font-size: 90%; color: #555"}})
else
SubscriptionRequired = ""
end
local args = { class="citation " .. (config.CitationClass or ""), id=id }
text = zmw.wikitexttext.HTMLTagtag({name="span", contents=text, params=args})
end
local OCinS = zmw.wikitexttext.HTMLTagtag({name="span", contents=" ", params={class="Z3988",title=OCinStitle,style="display: none;"}})
return text .. OCinS
if ( page ~= nil ) then
local contents = ":" .. page
p = zmw.wikitexttext.HTMLTagtag(frame, {name="sup",contents=contents,params={class="reference",style="white-space:nowrap;"}})
end
return zmw.wikitexttext.tag(frame, {name="ref",contents="",params={name=name,group=group}}, frame) .. p
end
params.style = params.style .. " " .. z.wikitext.columnwidthstyle(width)
end
local references = zmw.wikitexttext.tag(frame, {name="references",contents=contents,params={group=group}}, frame) return zmw.wikitexttext.HTMLTagtag({name="div",contents=references,params=params})
end
local content = crossref(frame, pframe.args)
local args = { name = refid(pframe.args) }
end
params.class="reference"
if ( args.noid == nil or args.noid == "" ) then params.id = "ref_" .. P1 .. P3 end
return zmw.wikitexttext.HTMLTagTag({name="sup",contents=contents,params=params})
end
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local args = pframe.args -- the arguments passed TO the template, in the wikitext that instantiates the template
return zmw.wikitexttext.tag(frame, {name="ref",contents=(args[1] or ""),params={name=args.name,group=config.default_group}}, frame)
end
return z