Template:Pill: Difference between revisions

From OpenTreeID Help
Imported from the SquidWeb wiki
 
OpenTreeID version: ot- styles and OpenTreeID examples
 
Line 1: Line 1:
<span class="sq-pill {{{class|}}}">{{{1|}}}</span><noinclude>
<span class="ot-pill {{{class|}}}">{{{1|}}}</span><noinclude>
Inline value pill for defaults and states. Grey by default; <code>class=sq-pill--on</code> for the teal "active" variant.
Inline value pill for defaults and states. Grey by default; <code>class=ot-pill--on</code> for the green "active" variant.


<pre>{{Pill|Off}} {{Pill|class=sq-pill--on|On}} {{Pill|11 h}}</pre>
<pre>{{Pill|Draft}} {{Pill|class=ot-pill--on|Released}} {{Pill|Owner}}</pre>
gives {{Pill|Off}} {{Pill|class=sq-pill--on|On}} {{Pill|11 h}}
gives {{Pill|Draft}} {{Pill|class=ot-pill--on|Released}} {{Pill|Owner}}
[[Category:Content block templates]]</noinclude>
[[Category:Content block templates]]</noinclude>

Latest revision as of 12:24, 23 October 2026

Inline value pill for defaults and states. Grey by default; class=ot-pill--on for the green "active" variant.

{{Pill|Draft}} {{Pill|class=ot-pill--on|Released}} {{Pill|Owner}}

gives Draft Released Owner