Difference between revisions of "Template:Item responsive"
From SystersWiki
Line 17: | Line 17: | ||
</noinclude><includeonly>{{#vardefine:cols|{{#if:{{{Cols|}}}|{{{Cols|}}}|2-10}} }}<div class="row row-formitemresponsive">{{#vardefine:col1|{{#explode:{{#var:cols}}|-}} }} {{#vardefine:col2|{{#explode:{{#var:cols}}|-|1}} }} | </noinclude><includeonly>{{#vardefine:cols|{{#if:{{{Cols|}}}|{{{Cols|}}}|2-10}} }}<div class="row row-formitemresponsive">{{#vardefine:col1|{{#explode:{{#var:cols}}|-}} }} {{#vardefine:col2|{{#explode:{{#var:cols}}|-|1}} }} | ||
− | <div class="col-md-{{#var:col1}} {{#if:{{{ClassCol1|}}} |{{{ClassCol1|}}} | | + | <div class="col-md-{{#var:col1}} {{#if:{{{ClassCol1|}}} |{{{ClassCol1|}}} |font-weight-bold}} text-small">{{{1|}}}</div> |
<div class="col-md-{{#var:col2}}">{{{2|}}}</div> | <div class="col-md-{{#var:col2}}">{{{2|}}}</div> | ||
</div></includeonly> | </div></includeonly> |
Revision as of 12:30, 24 March 2020
{{Item responsive |1= |2= |Cols=2-10 (defaults to 1-11) |ClassCol1=default: text-bold }}
col 1
col 2
sdfsdf