Template:TableWrap/SingleCell: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Some website told me this might do something)
(Set row/cell heights to 100%)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{cell}}} mod {{{width}}} = 1|{{!}}-
<includeonly>{{#ifexpr: {{{cell}}} mod {{{width}}} = 1|<tr style="height:100%">}}
}}
<td style="padding:0px;height:100%;width:calc(100% / {{width}})">{{{1}}}<nowiki/></includeonly><noinclude>
|{{{1}}}<nowiki/></includeonly><noinclude>
Decides whether to insert a row break before this table cell.
Decides whether to insert a row break before this table cell.


{|
<table class="wikitable" style="width:100%;table-layout:fixed">
{{{{FULLPAGENAME}}|cell=1|width=2|1}}
{{{{FULLPAGENAME}}|cell=1|width=3|1}}
{{{{FULLPAGENAME}}|cell=2|width=2|2}}
{{{{FULLPAGENAME}}|cell=2|width=3|2}}
{{{{FULLPAGENAME}}|cell=3|width=2|3}}
{{{{FULLPAGENAME}}|cell=3|width=3|3}}
{{{{FULLPAGENAME}}|cell=4|width=2|}}
{{{{FULLPAGENAME}}|cell=4|width=3|4}}
|}</noinclude>
{{{{FULLPAGENAME}}|cell=5|width=3|extra long 5}}
{{{{FULLPAGENAME}}|cell=6|width=3|6}}
{{{{FULLPAGENAME}}|cell=7|width=3|7}}
{{{{FULLPAGENAME}}|cell=8|width=3|8}}
</table></noinclude>

Latest revision as of 05:51, 16 February 2023

Decides whether to insert a row break before this table cell.

1 2 3
4 extra long 5 6
7 8