Difference between revisions of "Template:Legend4"
Jump to navigation
Jump to search
imported>Windroff m |
imported>Nihiltres (Imported improvements from Template:Legend) |
||
Line 1: | Line 1: | ||
− | <includeonly><table class="legend" cellspacing="0"><tr><td style="vertical-align:text-top;"><span class="legend-color" style=" | + | <includeonly><!-- |
− | {{Documentation}} | + | --><templatestyles src="Legend/styles.css" /><!-- |
− | </noinclude> | + | --><table class="legend" cellspacing="0"><!-- |
+ | --><tr><!-- | ||
+ | --><td style="vertical-align:text-top;"><!-- | ||
+ | --><span class="legend-color" style="<!-- | ||
+ | -->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!-- | ||
+ | -->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!-- | ||
+ | -->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | ||
+ | -->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!-- | ||
+ | -->"><!-- | ||
+ | -->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }}</span><!-- | ||
+ | --></td><td>{{{2|}}}</td><!-- | ||
+ | --></tr></table><!-- | ||
+ | --></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 04:10, 9 September 2020
Script error: No such module "Uses TemplateStyles". A version of {{Legend}} that uses indented block formatting via formatting the legend as a small table.
Usage
{{Legend4|#ff0000|Example}}
→Example {{Legend4|#0000ff|Foobar|text=Ex|border=1px dashed red}}
→Ex Foobar
See also
- {{Legend}}
- {{Legend0}}
- {{Legend2}}
- {{Legend3}}
- {{Leftlegend}}
- {{Legend-line}}
- {{Legend inline}}
The above documentation is transcluded from Template:Legend4/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |