Sətir 35: |
Sətir 35: |
| end | | end |
| | | |
− | function hideinprint(content)
| |
− | return content
| |
− | end
| |
− |
| |
− | function onlyinprint(content)
| |
− | return ""
| |
− | end
| |
− |
| |
− |
| |
− | function r0(frame, name, group, page)
| |
− | if ( name == nil ) then return "" end
| |
− | if ( group == nil ) then group = "" end
| |
− | local p = ""
| |
− | if ( page ~= nil ) then
| |
− | local contents = ":" .. page
| |
− | p = createTag({name="sup",contents=contents,params={class="reference",style="white-space:nowrap;"}})
| |
− | end
| |
− | return createTag({name="ref",contents="",params={name=name,group=group}}, frame) .. p
| |
− | end
| |
− |
| |
− | function reflist0(frame, config, args)
| |
− | local contents = args.refs or ""
| |
− | local liststyle = args.liststyle
| |
− | local count = args[1]
| |
− | local width = args.colwidth
| |
− | local group = args.group or config.default_group
| |
− | if ( nil == tonumber(count) and nil == width ) then
| |
− | width = count
| |
− | count = nil
| |
− | end
| |
− | if ( nil == liststyle ) then
| |
− | if ( "upper-alpha" == group or "lower-alpha" == group or "upper-roman" == group or "lower-roman" == group or "upper-greek" == group or "lower-greek" == group ) then
| |
− | liststyle = group
| |
− | else
| |
− | liststyle = config.default_liststyle
| |
− | end
| |
− | end
| |
− | local params = {}
| |
− | params.class = "reflist"
| |
− | params.style = z.wikitext.liststyle(liststyle)
| |
− | if ( nil ~= count ) then
| |
− | params.class = params.class .. " references-column-count references-column-count-" .. count
| |
− | params.style = params.style .. " " .. z.wikitext.columncountstyle(count)
| |
− | end
| |
− | if ( nil ~= width ) then
| |
− | params.class = params.class .. " references-column-width"
| |
− | params.style = params.style .. " " .. z.wikitext.columnwidthstyle(width)
| |
− | end
| |
− | local references = createTag({name="references",contents=contents,params={group=group}}, frame)
| |
− | return createTag({name="div",contents=references,params=params})
| |
− | end
| |
| | | |
| function refbegin0(frame, config, args) | | function refbegin0(frame, config, args) |