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=" | <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= | |aside={{Figure|file=OTID-Projects-02-members-tab.png|caption=The Members tab}} | ||
|main= | |main= | ||
{{!}} class="wikitable | {{!}} class="wikitable ot-table" | ||
... | ... | ||
{{!}}} | {{!}}} | ||
}}</pre> | }}</pre> | ||
Pipes inside the parameters must be written as <code><nowiki>{{!}}</nowiki></code>; HTML tables (<code><table class=" | Pipes inside the parameters must be written as <code><nowiki>{{!}}</nowiki></code>; HTML tables (<code><table class="ot-table"></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. |