Template:Columns: Difference between revisions

From OpenTreeID Help
Imported from the SquidWeb wiki
 
OpenTreeID version: ot- styles and OpenTreeID examples
 
Line 1: Line 1:
<div class="sq-cols"><div class="sq-cols__aside">{{{aside|}}}</div><div class="sq-cols__main">{{{main|}}}</div></div><noinclude>
<div class="ot-cols"><div class="ot-cols__aside">{{{aside|}}}</div><div class="ot-cols__main">{{{main|}}}</div></div><noinclude>
Two columns: a [[Template:Figure]] on the left (''aside'', 455px) and running text or a table on the right (''main''). Stacks on narrow screens.
Two columns: a [[Template:Figure]] on the left (''aside'', 455px) and running text or a table on the right (''main''). Stacks on narrow screens.


<pre>{{Columns
<pre>{{Columns
|aside={{Figure|file=Crew-optimizer-c04-constraints.jpg|caption=Constraints}}
|aside={{Figure|file=OTID-Projects-02-members-tab.png|caption=The Members tab}}
|main=
|main=
{{!}} class="wikitable sq-table"
{{!}} class="wikitable ot-table"
...
...
{{!}}}
{{!}}}
}}</pre>
}}</pre>
Pipes inside the parameters must be written as <code><nowiki>{{!}}</nowiki></code>; HTML tables (<code>&lt;table class="sq-table"&gt;</code>) avoid that.
Pipes inside the parameters must be written as <code><nowiki>{{!}}</nowiki></code>; HTML tables (<code>&lt;table class="ot-table"&gt;</code>) avoid that.
{| class="wikitable"
{| class="wikitable"
! Parameter !! Meaning
! Parameter !! Meaning

Latest revision as of 12:24, 23 October 2026

Two columns: a Template:Figure on the left (aside, 455px) and running text or a table on the right (main). Stacks on narrow screens.

{{Columns
|aside={{Figure|file=OTID-Projects-02-members-tab.png|caption=The Members tab}}
|main=
{{!}} class="wikitable ot-table"
...
{{!}}}
}}

Pipes inside the parameters must be written as {{!}}; HTML tables (<table class="ot-table">) avoid that.

Parameter Meaning
aside Left column, normally one Figure.
main Right column.