Difference between revisions of "Template:Is"

From Data JW United
Jump to navigation Jump to search
Line 15: Line 15:
 
|}
 
|}
 
</noinclude>
 
</noinclude>
<includeonly><div style="display:flex">
+
<includeonly><div style="width:100%;display:flex">
 
{{#ifeq: {{{1}}} |0| <div style="flex:1;">{{{2}}}</div> | <div style="padding-left:{{#expr:{{{1}}} * 30 }}px;flex:1;">{{{2}}}</div> }}
 
{{#ifeq: {{{1}}} |0| <div style="flex:1;">{{{2}}}</div> | <div style="padding-left:{{#expr:{{{1}}} * 30 }}px;flex:1;">{{{2}}}</div> }}
 
<div style="display:flex;flex:1;justify-content:flex-end">{{{3}}}</div>
 
<div style="display:flex;flex:1;justify-content:flex-end">{{{3}}}</div>
 
</div></includeonly>
 
</div></includeonly>

Revision as of 05:50, 2 October 2020

Stands for item summary.

Code Example Result
{{raw:data:is|number|title|number}} {{raw:data:is|0|title|100}}</code>
title
100
{{raw:data:is|number|title|number}} {{raw:data:is|1|subtitle|101}}</code>
subtitle
101
{{raw:data:is|number|title|number}} {{raw:data:is|2|another subtitle|102}}</code>
another subtitle
102
{{raw:data:is|number|title|number}} {{raw:data:is|0|another title|103}}</code>
another title
103