Template:Color box index: Difference between revisions

From dfe-wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<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>
<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 ==
== Usage ==
<pre>
<pre>

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