Template:Color box index: Difference between revisions

From dfe-wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><span class="legend nowrap" style="page-break-inside:avoid;break-inside:avoid-column"><span style="display:inline-block;min-width:1.25em;height:1.25em;line-height:1.25;margin:1px 0;border:1px solid black;background-color:{{{color|grey}}}"></span> {{{text}}}</span class="legend nowrap" style="page-break-inside:avoid;break-inside:avoid-column"></includeonly><noinclude>
<includeonly>
<span class="legend nowrap" style="page-break-inside:avoid;break-inside:avoid-column"><span class="legend-color" style="display:inline-block;min-width:1.25em;height:1.25em;line-height:1.25;margin:1px 0;border:1px solid black;background-color:{{{color|grey}}}"> </span> {{{text}}}</span>
</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>

Revision as of 22:43, 1 November 2024

Usage

{{Color box index|text=Text}}
OR
{{Color box index|text=Text|color=Color}}

Examples

{{Color box index|text=Text}}

  Text

{{Color box index|text=Text but green|color=green}}

  Text but green