Difference between revisions of "Template:Div col"

From Superboss Games Wiki
Jump to navigation Jump to search
(Created page with "→‎{{pp|small=yes}}: .div-col { margin-top: 0.3em; column-width: 30em; } .div-col-rules { column-rule: 1px solid #aaa; } →‎Reset top margin for lists in div col: .di...")
 
 
Line 1: Line 1:
/* {{pp|small=yes}} */
+
<includeonly><templatestyles src="Div col/styles.css"/><!--
.div-col {
+
--><div class="div-col {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!--
margin-top: 0.3em;
+
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!--
column-width: 30em;
+
-->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!--
}
+
-->}}><!--
 
+
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!--
.div-col-rules {
+
--></includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using div col with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Div col]] with unknown parameter "_VALUE_"; use colwidth= to specify column size |ignoreblank=y | colwidth | content | gap | rules| style }}<noinclude>
column-rule: 1px solid #aaa;
+
{{Documentation}}
}
+
</noinclude>
 
 
/* Reset top margin for lists in div col */
 
.div-col dl,
 
.div-col ol,
 
.div-col ul {
 
margin-top: 0;
 
}
 
 
 
/* Avoid elements breaking between columns
 
  See also Template:No col break */
 
.div-col li,
 
.div-col dd {
 
page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
 
break-inside: avoid-column;
 
}
 

Latest revision as of 10:12, 15 February 2024

{{#invoke:Check for unknown parameters|check|unknown={{#switch:

 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}|preview=Page using Template:Div col with unknown parameter "_VALUE_"; use colwidth= to specify column size |ignoreblank=y | colwidth | content | gap | rules| style }} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}