Mudanças entre as edições de "Predefinição:Infobox"

De Micropedia
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
--
+
<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:{{#if:{{{subbox|}}}|100%;border:0|22em}}; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
-- This module implements {{Infobox}}
+
Caption
--
+
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; text-color: red; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}}
 
+
<!--
local p = {}
+
Header
 
+
-->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!--
local navbar = require('Module:Navbar')._navbar
+
  Subheader 1
 
+
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader|{{{subheader1|}}}}}}</td></tr>}}<!--
local args = {}
+
Subheader 2
local origArgs
+
-->{{#if:{{{subheader2|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader2}}}</td></tr>}}<!--
local root
+
Image 1
 
+
-->{{#if:{{{image|{{{image1|}}}}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image|{{{image1|}}}}}} {{#if:{{{caption|{{{caption1|}}}}}}|<br />
local function notempty( s ) return s and s:match( '%S' ) end
+
<span style="{{{captionstyle|}}}">{{{caption|{{{caption1|}}}}}}</span> }}</td></tr>}}<!--
 
+
Image 2
local function fixChildBoxes(sval, tt)
+
-->{{#if:{{{image2|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image2}}} {{#if:{{{caption2|}}}|<br />
if notempty(sval) then
+
<span style="{{{captionstyle|}}}">{{{caption2}}}</span> }}</td></tr>}}<!--
local marker = '<span class=special_infobox_marker>'
+
-->{{Infobox/row
local s = sval
+
|header = {{{header1|}}}  |headerstyle = {{{headerstyle|}}}
s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1')
+
|label = {{{label1|}}}  |labelstyle  = {{{labelstyle|}}}
s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker)
+
|data  = {{{data1|}}}    |datastyle  = {{{datastyle|}}}
if s:match(marker) then
+
|class = {{{class1|}}}
s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '')
+
}} {{Infobox/row
s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1')
+
|header = {{{header2|}}}  |headerstyle = {{{headerstyle|}}}
s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1')
+
|label  = {{{label2|}}}  |labelstyle  = {{{labelstyle|}}}
s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1')
+
|data   = {{{data2|}}}    |datastyle  = {{{datastyle|}}}
s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1')
+
|class  = {{{class2|}}}
s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
+
}} {{Infobox/row
s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
+
|header = {{{header3|}}}  |headerstyle = {{{headerstyle|}}}
s = mw.ustring.gsub(s,  marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1')
+
|label  = {{{label3|}}}  |labelstyle  = {{{labelstyle|}}}
s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1')
+
|data  = {{{data3|}}}    |datastyle  = {{{datastyle|}}}
end
+
|class  = {{{class3|}}}
if s:match(marker) then
+
}} {{Infobox/row
local subcells = mw.text.split(s, marker)
+
|header = {{{header4|}}}  |headerstyle = {{{headerstyle|}}}
s = ''
+
|label  = {{{label4|}}}  |labelstyle  = {{{labelstyle|}}}
for k = 1, #subcells do
+
|data  = {{{data4|}}}    |datastyle  = {{{datastyle|}}}
if k == 1 then
+
|class  = {{{class4|}}}
s = s .. subcells[k] .. '</' .. tt .. '></tr>'
+
}} {{Infobox/row
elseif k == #subcells then
+
|header = {{{header5|}}}  |headerstyle = {{{headerstyle|}}}
local rowstyle = ' style="display:none"'
+
|label  = {{{label5|}}}  |labelstyle  = {{{labelstyle|}}}
if notempty(subcells[k]) then rowstyle = '' end
+
|data  = {{{data5|}}}    |datastyle  = {{{datastyle|}}}
s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k]
+
|class  = {{{class5|}}}
elseif notempty(subcells[k]) then
+
}} {{Infobox/row
if (k % 2) == 0 then
+
|header = {{{header6|}}}  |headerstyle = {{{headerstyle|}}}
s = s .. subcells[k]
+
|label  = {{{label6|}}}  |labelstyle  = {{{labelstyle|}}}
else
+
|data  = {{{data6|}}}    |datastyle  = {{{datastyle|}}}
s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>'
+
|class  = {{{class6|}}}
end
+
}} {{Infobox/row
end
+
|header = {{{header7|}}}  |headerstyle = {{{headerstyle|}}}
end
+
|label  = {{{label7|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data7|}}}    |datastyle  = {{{datastyle|}}}
-- the next two lines add a newline at the end of lists for the PHP parser
+
|class = {{{class7|}}}
-- https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
+
}} {{Infobox/row
-- remove when [[:phab:T191516]] is fixed or OBE
+
|header = {{{header8|}}}  |headerstyle = {{{headerstyle|}}}
s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n')
+
|label  = {{{label8|}}}  |labelstyle  = {{{labelstyle|}}}
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
+
|data   = {{{data8|}}}    |datastyle  = {{{datastyle|}}}
s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1')
+
|class = {{{class8|}}}
s = mw.ustring.gsub(s, '^(%{%|)', '\n%1')
+
}} {{Infobox/row
return s
+
|header = {{{header9|}}}  |headerstyle = {{{headerstyle|}}}
else
+
|label = {{{label9|}}}  |labelstyle  = {{{labelstyle|}}}
return sval
+
|data   = {{{data9|}}}    |datastyle   = {{{datastyle|}}}
end
+
|class = {{{class9|}}}
end
+
}} {{Infobox/row
 
+
|header = {{{header10|}}}  |headerstyle = {{{headerstyle|}}}
local function union(t1, t2)
+
|label  = {{{label10|}}}  |labelstyle  = {{{labelstyle|}}}
    -- Returns the union of the values of two tables, as a sequence.
+
|data  = {{{data10|}}}    |datastyle  = {{{datastyle|}}}
    local vals = {}
+
|class  = {{{class10|}}}
    for k, v in pairs(t1) do
+
}} {{Infobox/row
        vals[v] = true
+
|header = {{{header11|}}}  |headerstyle = {{{headerstyle|}}}
    end
+
|label  = {{{label11|}}}  |labelstyle  = {{{labelstyle|}}}
    for k, v in pairs(t2) do
+
|data  = {{{data11|}}}   |datastyle  = {{{datastyle|}}}
        vals[v] = true
+
|class  = {{{class11|}}}
    end
+
}} {{Infobox/row
    local ret = {}
+
|header = {{{header12|}}}  |headerstyle = {{{headerstyle|}}}
    for k, v in pairs(vals) do
+
|label  = {{{label12|}}}  |labelstyle  = {{{labelstyle|}}}
        table.insert(ret, k)
+
|data   = {{{data12|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class12|}}}
    return ret
+
}} {{Infobox/row
end
+
|header = {{{header13|}}}  |headerstyle = {{{headerstyle|}}}
 
+
|label  = {{{label13|}}}  |labelstyle  = {{{labelstyle|}}}
local function getArgNums(prefix)
+
|data  = {{{data13|}}}    |datastyle  = {{{datastyle|}}}
    -- Returns a table containing the numbers of the arguments that exist
+
|class  = {{{class13|}}}
    -- for the specified prefix. For example, if the prefix was 'data', and
+
}} {{Infobox/row
    -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}.
+
|header = {{{header14|}}}  |headerstyle = {{{headerstyle|}}}
    local nums = {}
+
|label  = {{{label14|}}}  |labelstyle  = {{{labelstyle|}}}
    for k, v in pairs(args) do
+
|data  = {{{data14|}}}    |datastyle  = {{{datastyle|}}}
        local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$')
+
|class  = {{{class14|}}}
        if num then table.insert(nums, tonumber(num)) end
+
}} {{Infobox/row
    end
+
|header = {{{header15|}}}  |headerstyle = {{{headerstyle|}}}
    table.sort(nums)
+
  |label  = {{{label15|}}}  |labelstyle  = {{{labelstyle|}}}
    return nums
+
|data  = {{{data15|}}}    |datastyle  = {{{datastyle|}}}
end
+
|class  = {{{class15|}}}
 
+
}} {{Infobox/row
local function addRow(rowArgs)
+
|header = {{{header16|}}}  |headerstyle = {{{headerstyle|}}}
    -- Adds a row to the infobox, with either a header cell
+
|label  = {{{label16|}}}  |labelstyle  = {{{labelstyle|}}}
    -- or a label/data cell combination.
+
|data  = {{{data16|}}}    |datastyle  = {{{datastyle|}}}
    if rowArgs.header then
+
|class  = {{{class16|}}}
        root
+
}} {{Infobox/row
            :tag('tr')
+
|header = {{{header17|}}}  |headerstyle = {{{headerstyle|}}}
                :addClass(rowArgs.rowclass)
+
|label  = {{{label17|}}}  |labelstyle  = {{{labelstyle|}}}
                :cssText(rowArgs.rowstyle)
+
|data  = {{{data17|}}}    |datastyle  = {{{datastyle|}}}
                :attr('id', rowArgs.rowid)
+
|class  = {{{class17|}}}
                :tag('th')
+
}} {{Infobox/row
                    :attr('colspan', 2)
+
|header = {{{header18|}}}  |headerstyle = {{{headerstyle|}}}
                    :attr('id', rowArgs.headerid)
+
|label  = {{{label18|}}}  |labelstyle  = {{{labelstyle|}}}
                    :addClass(rowArgs.class)
+
|data  = {{{data18|}}}    |datastyle  = {{{datastyle|}}}
                    :addClass(args.headerclass)
+
|class  = {{{class18|}}}
                    :css('text-align', 'center')
+
}} {{Infobox/row
                    :cssText(args.headerstyle)
+
|header = {{{header19|}}}  |headerstyle = {{{headerstyle|}}}
                    :cssText(rowArgs.rowcellstyle)
+
|label  = {{{label19|}}}  |labelstyle  = {{{labelstyle|}}}
                    :wikitext(fixChildBoxes(rowArgs.header, 'th'))
+
|data  = {{{data19|}}}    |datastyle  = {{{datastyle|}}}
    elseif rowArgs.data then
+
|class  = {{{class19|}}}
        local row = root:tag('tr')
+
}} {{Infobox/row
        row:addClass(rowArgs.rowclass)
+
|header = {{{header20|}}} |headerstyle = {{{headerstyle|}}}
        row:cssText(rowArgs.rowstyle)
+
|label  = {{{label20|}}}   |labelstyle  = {{{labelstyle|}}}
        row:attr('id', rowArgs.rowid)
+
|data  = {{{data20|}}}    |datastyle  = {{{datastyle|}}}
        if rowArgs.label then
+
|class = {{{class20|}}}
            row
+
}} {{Infobox/row
                :tag('th')
+
|header = {{{header21|}}}  |headerstyle = {{{headerstyle|}}}
                    :attr('scope', 'row')
+
|label  = {{{label21|}}}  |labelstyle = {{{labelstyle|}}}
                    :attr('id', rowArgs.labelid)
+
|data  = {{{data21|}}}    |datastyle  = {{{datastyle|}}}
                    :cssText(args.labelstyle)
+
  |class = {{{class21|}}}
                    :cssText(rowArgs.rowcellstyle)
+
}} {{Infobox/row
                    :wikitext(rowArgs.label)
+
|header = {{{header22|}}}  |headerstyle = {{{headerstyle|}}}
                    :done()
+
|label  = {{{label22|}}}  |labelstyle  = {{{labelstyle|}}}
        end
+
|data  = {{{data22|}}}    |datastyle  = {{{datastyle|}}}
       
+
|class  = {{{class22|}}}
        local dataCell = row:tag('td')
+
}} {{Infobox/row
        if not rowArgs.label then
+
|header = {{{header23|}}}  |headerstyle = {{{headerstyle|}}}
            dataCell
+
|label  = {{{label23|}}}  |labelstyle  = {{{labelstyle|}}}
                :attr('colspan', 2)
+
|data  = {{{data23|}}}    |datastyle  = {{{datastyle|}}}
                :css('text-align', 'center')
+
|class  = {{{class23|}}}
        end
+
}} {{Infobox/row
        dataCell
+
|header = {{{header24|}}}  |headerstyle = {{{headerstyle|}}}
            :attr('id', rowArgs.dataid)
+
|label  = {{{label24|}}}  |labelstyle  = {{{labelstyle|}}}
            :addClass(rowArgs.class)
+
|data  = {{{data24|}}}    |datastyle  = {{{datastyle|}}}
            :cssText(rowArgs.datastyle)
+
|class  = {{{class24|}}}
            :cssText(rowArgs.rowcellstyle)
+
}} {{Infobox/row
            :wikitext(fixChildBoxes(rowArgs.data, 'td'))
+
|header = {{{header25|}}}  |headerstyle = {{{headerstyle|}}}
    end
+
|label  = {{{label25|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data25|}}}    |datastyle  = {{{datastyle|}}}
 
+
|class  = {{{class25|}}}
local function renderTitle()
+
}} {{Infobox/row
    if not args.title then return end
+
|header = {{{header26|}}}  |headerstyle = {{{headerstyle|}}}
 
+
|label  = {{{label26|}}}  |labelstyle  = {{{labelstyle|}}}
    root
+
|data  = {{{data26|}}}    |datastyle  = {{{datastyle|}}}
        :tag('caption')
+
|class  = {{{class26|}}}
            :addClass(args.titleclass)
+
}} {{Infobox/row
            :cssText(args.titlestyle)
+
|header = {{{header27|}}}  |headerstyle = {{{headerstyle|}}}
            :wikitext(args.title)
+
|label  = {{{label27|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data27|}}}    |datastyle  = {{{datastyle|}}}
 
+
|class  = {{{class27|}}}
local function renderAboveRow()
+
}} {{Infobox/row
    if not args.above then return end
+
|header = {{{header28|}}}  |headerstyle = {{{headerstyle|}}}
   
+
|label  = {{{label28|}}}  |labelstyle  = {{{labelstyle|}}}
    root
+
|data  = {{{data28|}}}    |datastyle  = {{{datastyle|}}}
        :tag('tr')
+
|class  = {{{class28|}}}
            :tag('th')
+
}} {{Infobox/row
                :attr('colspan', 2)
+
|header = {{{header29|}}}  |headerstyle = {{{headerstyle|}}}
                :addClass(args.aboveclass)
+
|label  = {{{label29|}}}  |labelstyle  = {{{labelstyle|}}}
                :css('text-align', 'center')
+
|data  = {{{data29|}}}    |datastyle  = {{{datastyle|}}}
                :css('font-size', '125%')
+
|class  = {{{class29|}}}
                :css('font-weight', 'bold')
+
}} {{Infobox/row
                :cssText(args.abovestyle)
+
|header = {{{header30|}}}  |headerstyle = {{{headerstyle|}}}
                :wikitext(fixChildBoxes(args.above,'th'))
+
|label  = {{{label30|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data30|}}}    |datastyle  = {{{datastyle|}}}
 
+
|class  = {{{class30|}}}
local function renderBelowRow()
+
}} {{Infobox/row
    if not args.below then return end
+
|header = {{{header31|}}}  |headerstyle = {{{headerstyle|}}}
   
+
|label  = {{{label31|}}}  |labelstyle  = {{{labelstyle|}}}
    root
+
|data  = {{{data31|}}}    |datastyle  = {{{datastyle|}}}
        :tag('tr')
+
|class  = {{{class31|}}}
            :tag('td')
+
}} {{Infobox/row
                :attr('colspan', '2')
+
|header = {{{header32|}}}  |headerstyle = {{{headerstyle|}}}
                :addClass(args.belowclass)
+
|label  = {{{label32|}}}  |labelstyle  = {{{labelstyle|}}}
                :css('text-align', 'center')
+
|data  = {{{data32|}}}    |datastyle  = {{{datastyle|}}}
                :cssText(args.belowstyle)
+
|class  = {{{class32|}}}
                :wikitext(fixChildBoxes(args.below,'td'))
+
}} {{Infobox/row
end
+
|header = {{{header33|}}}  |headerstyle = {{{headerstyle|}}}
 
+
|label  = {{{label33|}}}  |labelstyle  = {{{labelstyle|}}}
local function renderSubheaders()
+
|data  = {{{data33|}}}    |datastyle  = {{{datastyle|}}}
    if args.subheader then
+
|class  = {{{class33|}}}
        args.subheader1 = args.subheader
+
}} {{Infobox/row
    end
+
|header = {{{header34|}}}  |headerstyle = {{{headerstyle|}}}
    if args.subheaderrowclass then
+
|label  = {{{label34|}}}  |labelstyle  = {{{labelstyle|}}}
        args.subheaderrowclass1 = args.subheaderrowclass
+
|data  = {{{data34|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class34|}}}
    local subheadernums = getArgNums('subheader')
+
}} {{Infobox/row
    for k, num in ipairs(subheadernums) do
+
|header = {{{header35|}}}  |headerstyle = {{{headerstyle|}}}
        addRow({
+
|label  = {{{label35|}}}  |labelstyle  = {{{labelstyle|}}}
            data = args['subheader' .. tostring(num)],
+
|data  = {{{data35|}}}    |datastyle  = {{{datastyle|}}}
            datastyle = args.subheaderstyle,
+
|class  = {{{class35|}}}
            rowcellstyle = args['subheaderstyle' .. tostring(num)],
+
}} {{Infobox/row
            class = args.subheaderclass,
+
|header = {{{header36|}}}  |headerstyle = {{{headerstyle|}}}
            rowclass = args['subheaderrowclass' .. tostring(num)]
+
|label  = {{{label36|}}}  |labelstyle  = {{{labelstyle|}}}
        })
+
|data  = {{{data36|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class36|}}}
end
+
}} {{Infobox/row
 
+
|header = {{{header37|}}}  |headerstyle = {{{headerstyle|}}}
local function renderImages()
+
|label  = {{{label37|}}}  |labelstyle  = {{{labelstyle|}}}
    if args.image then
+
|data  = {{{data37|}}}    |datastyle  = {{{datastyle|}}}
        args.image1 = args.image
+
|class  = {{{class37|}}}
    end
+
}} {{Infobox/row
    if args.caption then
+
|header = {{{header38|}}}  |headerstyle = {{{headerstyle|}}}
        args.caption1 = args.caption
+
|label  = {{{label38|}}}  |labelstyle  = {{{labelstyle|}}}
    end
+
|data  = {{{data38|}}}    |datastyle  = {{{datastyle|}}}
    local imagenums = getArgNums('image')
+
|class  = {{{class38|}}}
    for k, num in ipairs(imagenums) do
+
}} {{Infobox/row
        local caption = args['caption' .. tostring(num)]
+
|header = {{{header39|}}}  |headerstyle = {{{headerstyle|}}}
        local data = mw.html.create():wikitext(args['image' .. tostring(num)])
+
|label  = {{{label39|}}}  |labelstyle  = {{{labelstyle|}}}
        if caption then
+
|data  = {{{data39|}}}    |datastyle  = {{{datastyle|}}}
            data
+
|class  = {{{class39|}}}
                :tag('div')
+
}} {{Infobox/row
                    :cssText(args.captionstyle)
+
|header = {{{header40|}}}  |headerstyle = {{{headerstyle|}}}
                    :wikitext(caption)
+
|label  = {{{label40|}}}  |labelstyle  = {{{labelstyle|}}}
        end
+
|data  = {{{data40|}}}    |datastyle  = {{{datastyle|}}}
        addRow({
+
|class  = {{{class40|}}}
            data = tostring(data),
+
}} {{Infobox/row
            datastyle = args.imagestyle,
+
|header = {{{header41|}}}  |headerstyle = {{{headerstyle|}}}
            class = args.imageclass,
+
|label  = {{{label41|}}}  |labelstyle  = {{{labelstyle|}}}
            rowclass = args['imagerowclass' .. tostring(num)]
+
|data  = {{{data41|}}}    |datastyle  = {{{datastyle|}}}
        })
+
|class  = {{{class41|}}}
    end
+
}} {{Infobox/row
end
+
|header = {{{header42|}}}  |headerstyle = {{{headerstyle|}}}
 
+
|label  = {{{label42|}}}  |labelstyle  = {{{labelstyle|}}}
local function renderRows()
+
|data  = {{{data42|}}}    |datastyle  = {{{datastyle|}}}
    -- Gets the union of the header and data argument numbers,
+
|class  = {{{class42|}}}
    -- and renders them all in order using addRow.
+
}} {{Infobox/row
    local rownums = union(getArgNums('header'), getArgNums('data'))
+
|header = {{{header43|}}}  |headerstyle = {{{headerstyle|}}}
    table.sort(rownums)
+
|label  = {{{label43|}}}  |labelstyle  = {{{labelstyle|}}}
    for k, num in ipairs(rownums) do
+
|data  = {{{data43|}}}    |datastyle  = {{{datastyle|}}}
        addRow({
+
|class  = {{{class43|}}}
            header = args['header' .. tostring(num)],
+
}} {{Infobox/row
            label = args['label' .. tostring(num)],
+
|header = {{{header44|}}}  |headerstyle = {{{headerstyle|}}}
            data = args['data' .. tostring(num)],
+
|label  = {{{label44|}}}  |labelstyle  = {{{labelstyle|}}}
            datastyle = args.datastyle,
+
|data  = {{{data44|}}}    |datastyle  = {{{datastyle|}}}
            class = args['class' .. tostring(num)],
+
|class  = {{{class44|}}}
            rowclass = args['rowclass' .. tostring(num)],
+
}} {{Infobox/row
            rowstyle = args['rowstyle' .. tostring(num)],
+
|header = {{{header45|}}}  |headerstyle = {{{headerstyle|}}}
            rowcellstyle = args['rowcellstyle' .. tostring(num)],
+
|label  = {{{label45|}}}  |labelstyle  = {{{labelstyle|}}}
            dataid = args['dataid' .. tostring(num)],
+
|data  = {{{data45|}}}    |datastyle  = {{{datastyle|}}}
            labelid = args['labelid' .. tostring(num)],
+
|class  = {{{class45|}}}
            headerid = args['headerid' .. tostring(num)],
+
}} {{Infobox/row
            rowid = args['rowid' .. tostring(num)]
+
|header = {{{header46|}}}  |headerstyle = {{{headerstyle|}}}
        })
+
|label  = {{{label46|}}}  |labelstyle  = {{{labelstyle|}}}
    end
+
|data  = {{{data46|}}}    |datastyle  = {{{datastyle|}}}
end
+
|class  = {{{class46|}}}
 
+
}} {{Infobox/row
local function renderNavBar()
+
|header = {{{header47|}}}  |headerstyle = {{{headerstyle|}}}
    if not args.name then return end
+
|label  = {{{label47|}}}  |labelstyle  = {{{labelstyle|}}}
   
+
|data  = {{{data47|}}}    |datastyle  = {{{datastyle|}}}
    root
+
|class  = {{{class47|}}}
        :tag('tr')
+
}} {{Infobox/row
            :tag('td')
+
|header = {{{header48|}}}  |headerstyle = {{{headerstyle|}}}
                :attr('colspan', '2')
+
|label  = {{{label48|}}}  |labelstyle  = {{{labelstyle|}}}
                :css('text-align', 'right')
+
|data  = {{{data48|}}}    |datastyle  = {{{datastyle|}}}
                :wikitext(navbar{
+
|class  = {{{class48|}}}
                    args.name,
+
}} {{Infobox/row
                    mini = 1,
+
|header = {{{header49|}}}  |headerstyle = {{{headerstyle|}}}
                })
+
|label  = {{{label49|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data49|}}}    |datastyle  = {{{datastyle|}}}
 
+
|class  = {{{class49|}}}
local function renderItalicTitle()
+
}} {{Infobox/row
    local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
+
|header = {{{header50|}}}  |headerstyle = {{{headerstyle|}}}
    if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
+
|label  = {{{label50|}}}  |labelstyle  = {{{labelstyle|}}}
        root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
+
|data  = {{{data50|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class50|}}}
end
+
}} {{Infobox/row
 
+
|header = {{{header51|}}}  |headerstyle = {{{headerstyle|}}}
local function renderTrackingCategories()
+
|label  = {{{label51|}}}  |labelstyle  = {{{labelstyle|}}}
    if args.decat ~= 'yes' then
+
|data  = {{{data51|}}}    |datastyle  = {{{datastyle|}}}
    if args.child == 'yes' then
+
|class  = {{{class51|}}}
        if args.title then
+
}} {{Infobox/row
            root:wikitext('[[Category:Pages which use embedded infobox templates with the title parameter]]')
+
|header = {{{header52|}}}  |headerstyle = {{{headerstyle|}}}
        end
+
|label  = {{{label52|}}}  |labelstyle  = {{{labelstyle|}}}
        elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
+
|data  = {{{data52|}}}    |datastyle  = {{{datastyle|}}}
            root:wikitext('[[Category:Articles which use infobox templates with no data rows]]')
+
|class  = {{{class52|}}}
        end
+
}} {{Infobox/row
    end
+
|header = {{{header53|}}}  |headerstyle = {{{headerstyle|}}}
end
+
|label  = {{{label53|}}}  |labelstyle  = {{{labelstyle|}}}
 
+
|data  = {{{data53|}}}    |datastyle  = {{{datastyle|}}}
local function _infobox()
+
|class  = {{{class53|}}}
    -- Specify the overall layout of the infobox, with special settings
+
}} {{Infobox/row
    -- if the infobox is used as a 'child' inside another infobox.
+
|header = {{{header54|}}}  |headerstyle = {{{headerstyle|}}}
    if args.child ~= 'yes' then
+
|label  = {{{label54|}}}  |labelstyle  = {{{labelstyle|}}}
        root = mw.html.create('table')
+
|data  = {{{data54|}}}    |datastyle  = {{{datastyle|}}}
       
+
|class  = {{{class54|}}}
        root
+
}} {{Infobox/row
            :addClass((args.subbox ~= 'yes') and 'infobox' or nil)
+
|header = {{{header55|}}}  |headerstyle = {{{headerstyle|}}}
            :addClass(args.bodyclass)
+
|label  = {{{label55|}}}  |labelstyle  = {{{labelstyle|}}}
           
+
|data  = {{{data55|}}}    |datastyle  = {{{datastyle|}}}
            if args.subbox == 'yes' then
+
|class  = {{{class55|}}}
                root
+
}} {{Infobox/row
                    :css('padding', '0')
+
|header = {{{header56|}}}  |headerstyle = {{{headerstyle|}}}
                    :css('border', 'none')
+
|label  = {{{label56|}}}  |labelstyle  = {{{labelstyle|}}}
                    :css('margin', '-3px')
+
|data  = {{{data56|}}}    |datastyle  = {{{datastyle|}}}
                    :css('width', 'auto')
+
|class  = {{{class56|}}}
                    :css('min-width', '100%')
+
}} {{Infobox/row
                    :css('font-size', '100%')
+
|header = {{{header57|}}}  |headerstyle = {{{headerstyle|}}}
                    :css('clear', 'none')
+
|label  = {{{label57|}}}  |labelstyle  = {{{labelstyle|}}}
                    :css('float', 'none')
+
|data  = {{{data57|}}}    |datastyle  = {{{datastyle|}}}
                    :css('background-color', 'transparent')
+
|class  = {{{class57|}}}
            else
+
}} {{Infobox/row
                root
+
|header = {{{header58|}}}  |headerstyle = {{{headerstyle|}}}
                    :css('width', '22em')
+
|label  = {{{label58|}}}  |labelstyle  = {{{labelstyle|}}}
            end
+
|data  = {{{data58|}}}    |datastyle  = {{{datastyle|}}}
        root
+
|class  = {{{class58|}}}
            :cssText(args.bodystyle)
+
}} {{Infobox/row
   
+
|header = {{{header59|}}}  |headerstyle = {{{headerstyle|}}}
        renderTitle()
+
|label  = {{{label59|}}}  |labelstyle  = {{{labelstyle|}}}
        renderAboveRow()
+
|data  = {{{data59|}}}    |datastyle  = {{{datastyle|}}}
    else
+
|class  = {{{class59|}}}
        root = mw.html.create()
+
}} {{Infobox/row
       
+
|header = {{{header60|}}}  |headerstyle = {{{headerstyle|}}}
        root
+
|label  = {{{label60|}}}  |labelstyle  = {{{labelstyle|}}}
            :wikitext(args.title)
+
|data  = {{{data60|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class60|}}}
 
+
}} {{Infobox/row
    renderSubheaders()
+
|header = {{{header61|}}}  |headerstyle = {{{headerstyle|}}}
    renderImages()
+
|label  = {{{label61|}}}  |labelstyle  = {{{labelstyle|}}}
    renderRows()
+
|data  = {{{data61|}}}    |datastyle  = {{{datastyle|}}}
    renderBelowRow()  
+
|class  = {{{class61|}}}
    renderNavBar()
+
}} {{Infobox/row
    renderItalicTitle()
+
|header = {{{header62|}}}  |headerstyle = {{{headerstyle|}}}
    renderTrackingCategories()
+
|label  = {{{label62|}}}  |labelstyle  = {{{labelstyle|}}}
   
+
|data  = {{{data62|}}}    |datastyle  = {{{datastyle|}}}
    return tostring(root)
+
|class  = {{{class62|}}}
end
+
}} {{Infobox/row
 
+
|header = {{{header63|}}}  |headerstyle = {{{headerstyle|}}}
local function preprocessSingleArg(argName)
+
|label  = {{{label63|}}}  |labelstyle  = {{{labelstyle|}}}
    -- If the argument exists and isn't blank, add it to the argument table.
+
|data  = {{{data63|}}}    |datastyle  = {{{datastyle|}}}
    -- Blank arguments are treated as nil to match the behaviour of ParserFunctions.
+
|class  = {{{class63|}}}
    if origArgs[argName] and origArgs[argName] ~= '' then
+
}} {{Infobox/row
        args[argName] = origArgs[argName]
+
|header = {{{header64|}}}  |headerstyle = {{{headerstyle|}}}
    end
+
|label  = {{{label64|}}}  |labelstyle  = {{{labelstyle|}}}
end
+
|data  = {{{data64|}}}    |datastyle  = {{{datastyle|}}}
 
+
|class  = {{{class64|}}}
local function preprocessArgs(prefixTable, step)
+
}} {{Infobox/row
    -- Assign the parameters with the given prefixes to the args table, in order, in batches
+
|header = {{{header65|}}}  |headerstyle = {{{headerstyle|}}}
    -- of the step size specified. This is to prevent references etc. from appearing in the
+
|label  = {{{label65|}}}  |labelstyle  = {{{labelstyle|}}}
    -- wrong order. The prefixTable should be an array containing tables, each of which has
+
|data  = {{{data65|}}}    |datastyle  = {{{datastyle|}}}
    -- two possible fields, a "prefix" string and a "depend" table. The function always parses
+
|class  = {{{class65|}}}
    -- parameters containing the "prefix" string, but only parses parameters in the "depend"
+
}} {{Infobox/row
    -- table if the prefix parameter is present and non-blank.
+
|header = {{{header66|}}}  |headerstyle = {{{headerstyle|}}}
    if type(prefixTable) ~= 'table' then
+
|label  = {{{label66|}}}  |labelstyle  = {{{labelstyle|}}}
        error("Non-table value detected for the prefix table", 2)
+
|data  = {{{data66|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class66|}}}
    if type(step) ~= 'number' then
+
}} {{Infobox/row
        error("Invalid step value detected", 2)
+
|header = {{{header67|}}}  |headerstyle = {{{headerstyle|}}}
    end
+
|label  = {{{label67|}}}  |labelstyle  = {{{labelstyle|}}}
   
+
|data  = {{{data67|}}}    |datastyle  = {{{datastyle|}}}
    -- Get arguments without a number suffix, and check for bad input.
+
|class  = {{{class67|}}}
    for i,v in ipairs(prefixTable) do
+
}} {{Infobox/row
        if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then
+
|header = {{{header68|}}}  |headerstyle = {{{headerstyle|}}}
            error('Invalid input detected to preprocessArgs prefix table', 2)
+
|label  = {{{label68|}}}  |labelstyle  = {{{labelstyle|}}}
        end
+
|data  = {{{data68|}}}    |datastyle  = {{{datastyle|}}}
        preprocessSingleArg(v.prefix)
+
|class  = {{{class68|}}}
        -- Only parse the depend parameter if the prefix parameter is present and not blank.
+
}} {{Infobox/row
        if args[v.prefix] and v.depend then
+
|header = {{{header69|}}}  |headerstyle = {{{headerstyle|}}}
            for j, dependValue in ipairs(v.depend) do
+
|label  = {{{label69|}}}  |labelstyle  = {{{labelstyle|}}}
                if type(dependValue) ~= 'string' then
+
|data  = {{{data69|}}}    |datastyle  = {{{datastyle|}}}
                    error('Invalid "depend" parameter value detected in preprocessArgs')
+
|class  = {{{class69|}}}
                end
+
}} {{Infobox/row
                preprocessSingleArg(dependValue)
+
|header = {{{header70|}}}  |headerstyle = {{{headerstyle|}}}
            end
+
|label  = {{{label70|}}}  |labelstyle  = {{{labelstyle|}}}
        end
+
|data  = {{{data70|}}}    |datastyle  = {{{datastyle|}}}
    end
+
|class  = {{{class70|}}}
 
+
}} {{Infobox/row
    -- Get arguments with number suffixes.
+
|header = {{{header71|}}}  |headerstyle = {{{headerstyle|}}}
    local a = 1 -- Counter variable.
+
|label  = {{{label71|}}}  |labelstyle  = {{{labelstyle|}}}
    local moreArgumentsExist = true
+
|data  = {{{data71|}}}    |datastyle  = {{{datastyle|}}}
    while moreArgumentsExist == true do
+
|class  = {{{class71|}}}
        moreArgumentsExist = false
+
}} {{Infobox/row
        for i = a, a + step - 1 do
+
|header = {{{header72|}}}  |headerstyle = {{{headerstyle|}}}
            for j,v in ipairs(prefixTable) do
+
|label  = {{{label72|}}}  |labelstyle  = {{{labelstyle|}}}
                local prefixArgName = v.prefix .. tostring(i)
+
|data  = {{{data72|}}}    |datastyle  = {{{datastyle|}}}
                if origArgs[prefixArgName] then
+
|class  = {{{class72|}}}
                    moreArgumentsExist = true -- Do another loop if any arguments are found, even blank ones.
+
}} {{Infobox/row
                    preprocessSingleArg(prefixArgName)
+
|header = {{{header73|}}}  |headerstyle = {{{headerstyle|}}}
                end
+
|label  = {{{label73|}}}  |labelstyle  = {{{labelstyle|}}}
                -- Process the depend table if the prefix argument is present and not blank, or
+
|data  = {{{data73|}}}    |datastyle  = {{{datastyle|}}}
                -- we are processing "prefix1" and "prefix" is present and not blank, and
+
|class  = {{{class73|}}}
                -- if the depend table is present.
+
}} {{Infobox/row
                if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then
+
|header = {{{header74|}}}  |headerstyle = {{{headerstyle|}}}
                    for j,dependValue in ipairs(v.depend) do
+
|label  = {{{label74|}}}  |labelstyle  = {{{labelstyle|}}}
                        local dependArgName = dependValue .. tostring(i)
+
|data  = {{{data74|}}}    |datastyle  = {{{datastyle|}}}
                        preprocessSingleArg(dependArgName)
+
|class  = {{{class74|}}}
                    end
+
}} {{Infobox/row
                end
+
|header = {{{header75|}}}  |headerstyle = {{{headerstyle|}}}
            end
+
|label  = {{{label75|}}}  |labelstyle  = {{{labelstyle|}}}
        end
+
|data  = {{{data75|}}}    |datastyle  = {{{datastyle|}}}
        a = a + step
+
|class  = {{{class75|}}}
    end
+
}} {{Infobox/row
end
+
|header = {{{header76|}}}  |headerstyle = {{{headerstyle|}}}
+
|label  = {{{label76|}}}  |labelstyle  = {{{labelstyle|}}}
function p.infobox(frame)
+
|data  = {{{data76|}}}    |datastyle  = {{{datastyle|}}}
    -- If called via #invoke, use the args passed into the invoking template.
+
|class  = {{{class76|}}}
    -- Otherwise, for testing purposes, assume args are being passed directly in.
+
}} {{Infobox/row
    if frame == mw.getCurrentFrame() then
+
|header = {{{header77|}}}  |headerstyle = {{{headerstyle|}}}
        origArgs = frame:getParent().args
+
|label  = {{{label77|}}}  |labelstyle  = {{{labelstyle|}}}
    else
+
|data  = {{{data77|}}}    |datastyle  = {{{datastyle|}}}
        origArgs = frame
+
|class  = {{{class77|}}}
    end
+
}} {{Infobox/row
   
+
|header = {{{header78|}}}  |headerstyle = {{{headerstyle|}}}
    -- Parse the data parameters in the same order that the old {{infobox}} did, so that
+
|label  = {{{label78|}}}  |labelstyle  = {{{labelstyle|}}}
    -- references etc. will display in the expected places. Parameters that depend on
+
|data  = {{{data78|}}}    |datastyle  = {{{datastyle|}}}
    -- another parameter are only processed if that parameter is present, to avoid
+
|class  = {{{class78|}}}
    -- phantom references appearing in article reference lists.
+
}} {{Infobox/row
    preprocessSingleArg('child')
+
|header = {{{header79|}}}  |headerstyle = {{{headerstyle|}}}
    preprocessSingleArg('bodyclass')
+
|label  = {{{label79|}}}  |labelstyle  = {{{labelstyle|}}}
    preprocessSingleArg('subbox')
+
|data  = {{{data79|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('bodystyle')
+
|class  = {{{class79|}}}
    preprocessSingleArg('title')
+
}} {{Infobox/row
    preprocessSingleArg('titleclass')
+
|header = {{{header80|}}}  |headerstyle = {{{headerstyle|}}}
    preprocessSingleArg('titlestyle')
+
|label  = {{{label80|}}}  |labelstyle  = {{{labelstyle|}}}
    preprocessSingleArg('above')
+
|data  = {{{data80|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('aboveclass')
+
|class  = {{{class80|}}}
    preprocessSingleArg('abovestyle')
+
}} {{Infobox/row
    preprocessArgs({
+
|header = {{{header81|}}}  |headerstyle = {{{headerstyle|}}}
        {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}}
+
|label  = {{{label81|}}}  |labelstyle  = {{{labelstyle|}}}
    }, 10)
+
|data  = {{{data81|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('subheaderstyle')
+
|class  = {{{class81|}}}
    preprocessSingleArg('subheaderclass')
+
}}{{Infobox/row
    preprocessArgs({
+
|header = {{{header82|}}}  |headerstyle = {{{headerstyle|}}}
        {prefix = 'image', depend = {'caption', 'imagerowclass'}}
+
|label  = {{{label82|}}}  |labelstyle  = {{{labelstyle|}}}
    }, 10)
+
|data  = {{{data82|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('captionstyle')
+
|class  = {{{class82|}}}
    preprocessSingleArg('imagestyle')
+
}}{{Infobox/row
    preprocessSingleArg('imageclass')
+
|header = {{{header83|}}}  |headerstyle = {{{headerstyle|}}}
    preprocessArgs({
+
|label  = {{{label83|}}}  |labelstyle  = {{{labelstyle|}}}
        {prefix = 'header'},
+
|data  = {{{data83|}}}    |datastyle  = {{{datastyle|}}}
        {prefix = 'data', depend = {'label'}},
+
|class  = {{{class83|}}}
        {prefix = 'rowclass'},
+
}}{{Infobox/row
        {prefix = 'rowstyle'},
+
|header = {{{header84|}}}  |headerstyle = {{{headerstyle|}}}
        {prefix = 'rowcellstyle'},
+
|label  = {{{label84|}}}  |labelstyle  = {{{labelstyle|}}}
        {prefix = 'class'},
+
|data  = {{{data84|}}}    |datastyle  = {{{datastyle|}}}
        {prefix = 'dataid'},
+
|class  = {{{class84|}}}
        {prefix = 'labelid'},
+
}}{{Infobox/row
        {prefix = 'headerid'},
+
|header = {{{header85|}}}  |headerstyle = {{{headerstyle|}}}
        {prefix = 'rowid'}
+
|label  = {{{label85|}}}  |labelstyle  = {{{labelstyle|}}}
    }, 50)
+
|data  = {{{data85|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('headerclass')
+
|class  = {{{class85|}}}
    preprocessSingleArg('headerstyle')
+
}}{{Infobox/row
    preprocessSingleArg('labelstyle')
+
|header = {{{header86|}}}  |headerstyle = {{{headerstyle|}}}
    preprocessSingleArg('datastyle')
+
|label  = {{{label86|}}}  |labelstyle  = {{{labelstyle|}}}
    preprocessSingleArg('below')
+
|data  = {{{data86|}}}    |datastyle  = {{{datastyle|}}}
    preprocessSingleArg('belowclass')
+
|class  = {{{class86|}}}
    preprocessSingleArg('belowstyle')
+
}}{{Infobox/row
    preprocessSingleArg('name')
+
|header = {{{header87|}}}  |headerstyle = {{{headerstyle|}}}
    args['italic title'] = origArgs['italic title'] -- different behaviour if blank or absent
+
|label  = {{{label87|}}}  |labelstyle  = {{{labelstyle|}}}
    preprocessSingleArg('decat')
+
|data  = {{{data87|}}}    |datastyle  = {{{datastyle|}}}
   
+
|class  = {{{class87|}}}
    return _infobox()
+
}}{{Infobox/row
end
+
|header = {{{header88|}}}  |headerstyle = {{{headerstyle|}}}
   
+
|label  = {{{label88|}}}  |labelstyle  = {{{labelstyle|}}}
return p
+
|data  = {{{data88|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class88|}}}
 +
}}{{Infobox/row
 +
|header = {{{header89|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label89|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data89|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class89|}}}
 +
}}{{Infobox/row
 +
|header = {{{header90|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label90|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data90|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class90|}}}
 +
}}{{Infobox/row
 +
|header = {{{header91|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label91|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data91|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class91|}}}
 +
}}{{Infobox/row
 +
|header = {{{header92|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label92|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data92|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class92|}}}
 +
}}{{Infobox/row
 +
|header = {{{header93|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label93|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data93|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class93|}}}
 +
}}{{Infobox/row
 +
|header = {{{header94|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label94|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data94|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class94|}}}
 +
}}{{Infobox/row
 +
|header = {{{header95|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label95|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data95|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class95|}}}
 +
}}{{Infobox/row
 +
|header = {{{header96|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label96|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data96|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class96|}}}
 +
}}{{Infobox/row
 +
|header = {{{header97|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label97|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data97|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class97|}}}
 +
}}{{Infobox/row
 +
|header = {{{header98|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label98|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data98|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class98|}}}
 +
}}{{Infobox/row
 +
|header = {{{header99|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label99|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data99|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class99|}}}
 +
}}{{Infobox/row
 +
|header = {{{header100|}}}  |headerstyle = {{{headerstyle|}}}
 +
|label  = {{{label100|}}}  |labelstyle  = {{{labelstyle|}}}
 +
|data  = {{{data100|}}}    |datastyle  = {{{datastyle|}}}
 +
|class  = {{{class100|}}} }}
 +
<!--
 +
Below
 +
-->{{#if:{{{below|}}}|<tr><td colspan="2" style="text-align:center; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}<!--
 +
Navbar
 +
-->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{navbar|{{{name}}}|noedit={{{noedit|0}}}}}</td></tr>}}
 +
</table><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Edição das 18h55min de 26 de janeiro de 2020