Difference between revisions of "Template:Item responsive"

From SystersWiki
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
|2=
 
|2=
 
|Cols=2-10 (defaults to 1-11)
 
|Cols=2-10 (defaults to 1-11)
|ClassCol1=default: text-bold
+
|ClassCol1=default: font-weight-bold
 
}}
 
}}
 
</pre>
 
</pre>
Line 13: Line 13:
 
|Cols=6-6
 
|Cols=6-6
 
}}
 
}}
 
<div class="font-weight-bold">sdfsdf</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>

Latest revision as of 12:33, 24 March 2020

{{Item responsive
|1=
|2=
|Cols=2-10 (defaults to 1-11)
|ClassCol1=default: font-weight-bold
}}
col 1
col 2