Template:TableWrap/SingleCell: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Use HTML markup instead of wiki markup)
(Set cell width to a fraction)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{cell}}} mod {{{width}}} = 1|<tr>}}
<includeonly>{{#ifexpr: {{{cell}}} mod {{{width}}} = 1|<tr>}}
<td>{{{1}}}<nowiki/></includeonly><noinclude>
<td width="calc(100% / {{width}})">{{{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">
<table class="wikitable" style="width:100%;table-layout:fixed">
{{{{FULLPAGENAME}}|cell=1|width=3|1}}
{{{{FULLPAGENAME}}|cell=1|width=3|1}}
{{{{FULLPAGENAME}}|cell=2|width=3|2}}
{{{{FULLPAGENAME}}|cell=2|width=3|2}}
{{{{FULLPAGENAME}}|cell=3|width=3|3}}
{{{{FULLPAGENAME}}|cell=3|width=3|3}}
{{{{FULLPAGENAME}}|cell=4|width=3|4}}
{{{{FULLPAGENAME}}|cell=4|width=3|4}}
{{{{FULLPAGENAME}}|cell=5|width=3|5}}
{{{{FULLPAGENAME}}|cell=5|width=3|extra long 5}}
{{{{FULLPAGENAME}}|cell=6|width=3|6}}
{{{{FULLPAGENAME}}|cell=6|width=3|6}}
{{{{FULLPAGENAME}}|cell=7|width=3|7}}
{{{{FULLPAGENAME}}|cell=7|width=3|7}}
{{{{FULLPAGENAME}}|cell=8|width=3|8}}
{{{{FULLPAGENAME}}|cell=8|width=3|8}}
</table></noinclude>
</table></noinclude>

Revision as of 05:34, 16 February 2023

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

1 2 3
4 extra long 5 6
7 8