Difference between revisions of "Template:Is"

From Data JW United
Jump to navigation Jump to search
 
Line 16: Line 16:
 
</noinclude>
 
</noinclude>
 
<includeonly><div style="width:100%;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>{{{2}}}</div> | <div style="margin-left:{{#expr:{{{1}}} * 30 }}px;">{{{2}}}</div> }}
<div style="display:flex;flex:1;justify-content:flex-end">{{{3}}}</div>
+
<div style="flex:1;border:0;border-bottom: 2px #272727;border-style: dotted;margin-bottom: 6px;margin-left: 4px;    margin-right: 4px;"></div>
 +
<div style="display:flex;justify-content:flex-end;">{{{3}}}</div>
 
</div></includeonly>
 
</div></includeonly>

Latest revision as of 14:04, 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