Module:Infobox: Difference between revisions
m adjust width of navlink table middle row |
ArrowHead294 (talk | contribs) m Aren't «height», «width», etc. deprecated as standalone attributes? I recall that it is preferred to put them in a «style». |
||
| Line 16: | Line 16: | ||
header = header | header = header | ||
.. "\n" | .. "\n" | ||
.. '{| | .. '{| style="width: 100%;"\n' | ||
.. '|-\n' | .. '|-\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[1] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[1] .. '\n' | ||
.. '| | .. '| style="width: 50%;" | ' .. title .. '\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[2] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[2] .. '\n' | ||
.. '|}\n' | .. '|}\n' | ||
| Line 25: | Line 25: | ||
header = header | header = header | ||
.. "\n" | .. "\n" | ||
.. '{| | .. '{| style="width: 100%;"\n' | ||
.. '|-\n' | .. '|-\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[1] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[1] .. '\n' | ||
.. '| | .. '| style="font-size: 0.75em; width: 50%;" | ' .. adjacent_links[2] .. '\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[3] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[3] .. '\n' | ||
.. '|-\n' | .. '|-\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[4] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[4] .. '\n' | ||
.. '| | .. '| style="width: 50%;" | ' .. title .. '\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[5] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[5] .. '\n' | ||
.. '|-\n' | .. '|-\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[6] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[6] .. '\n' | ||
.. '| | .. '| style="font-size: 0.75em; width: 50%;" | ' .. adjacent_links[7] .. '\n' | ||
.. '| style="font-size: 0.75em;" | ' .. adjacent_links[8] .. '\n' | .. '| style="font-size: 0.75em;" | ' .. adjacent_links[8] .. '\n' | ||
.. '|}\n' | .. '|}\n' | ||
| Line 90: | Line 90: | ||
-- Infobox table, starting with table | -- Infobox table, starting with table | ||
.. '{| | .. '{| style="border-collapse: collapse; width: 100%;"\n' | ||
.. '|+ style="font-size: 105%; font-weight: bold; text-align: center;" | ' .. p.infobox_header(title, adjacent_links) .. '\n' | .. '|+ style="font-size: 105%; font-weight: bold; text-align: center;" | ' .. p.infobox_header(title, adjacent_links) .. '\n' | ||