Template:ColsStart: Difference between revisions

From The Fifth City Wiki
m Hannah moved page Template:Cols to Template:ColsStart without leaving a redirect: Splitting templates to avoid pipe usage
Only include starting portion
Line 1: Line 1:
<div style = "display: flex;"><!--
<div style = "display: flex;">
-->{{#if:{{{col1|}}}
     <div
        |<div
         {{#if:{{{width}}}|
            {{#if:{{{width1|}}}|
             style = "flex-basis: {{{width}}};"
                style = "flex-basis: {{{width1}}};"
         }}
            }}
     >
        >
{{{col1}}}
        </div>|
    }}<!--
-->{{#if:{{{col2|}}}
        |<div
            {{#if:{{{width2|}}}|
                style = "flex-basis: {{{width2}}};"
            }}
        >
{{{col2}}}
        </div>|
     }}<!--
-->{{#if:{{{col3|}}}
        |<div
            {{#if:{{{width3|}}}|
                style = "flex-basis: {{{width3}}};"
            }}
         >
{{{col3}}}
        </div>|
    }}<!--
-->{{#if:{{{col4|}}}
        |<div
             {{#if:{{{width4|}}}|
                style = "flex-basis: {{{width4}}};"
            }}
         >
{{{col4}}}
        </div>|
    }}
     </div>
</div>

Revision as of 22:50, 21 June 2025