Template:Color box index: Difference between revisions

From dfe-wiki
Created page with "<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> == Usage == <pre> {{Color box index|text=Text}} OR {{Color box index|text=Text|color..."
 
No edit summary
Line 3: Line 3:
<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 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">
</span class="legend nowrap" style="page-break-inside:avoid;break-inside:avoid-column">
</includeonly>
</includeonly><noinclude>
 
<noinclude>
== Usage ==
== Usage ==
<pre>
<pre>

Revision as of 22:33, 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