Difference between revisions of "Template:Item responsive"

From SystersWiki
Line 14: Line 14:
 
}}
 
}}
  
<div class="font-weight-bold">sdfsdf</div>
+
<div class="font-weight-light">This is a test</div>
  
 
</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|}}} |font-weight-bold}} text-small">{{{1|}}}</div>
+
<div class="col-md-{{#var:col1}} {{#if:{{{ClassCol1|}}} |{{{ClassCol1|}}} |font-weight-bold}} font-weight-normal">{{{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:32, 24 March 2020

{{Item responsive
|1=
|2=
|Cols=2-10 (defaults to 1-11)
|ClassCol1=default: text-bold
}}
col 1
col 2
This is a test