Difference between revisions of "Template:Legend4/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Uses TemplateStyles|Template:Legend/styles.css|noprotcat=yes}}
 +
A version of {{tl|Legend}} that uses indented block formatting via formatting the legend as a small table.
  
 
== Usage ==
 
== Usage ==
A version of {{tl|Legend}} that uses indented block formatting.
+
* {{tlc|Legend4|#ff0000|Example}} → {{Legend4|#ff0000|Example}}
 +
* {{tlc|Legend4|#0000ff|Foobar|text{{=}}Ex|border{{=}}1px dashed red}} → {{Legend4|#0000ff|Foobar|text=Ex|border=1px dashed red}}
  
<!-- {{Legend4}}: -->
+
== See also ==
{{Markup
 
| colheaderstyle = text-align:left; font-weight:normal
 
| col1 = '''Legend4'''
 
| <nowiki>
 
{{legend4|black|Africa}}
 
{{legend4|green|Americas}}
 
{{legend4|blue|Oceania}}
 
{{legend4|#ffa|Europe|outline=silver}}
 
{{legend4|#ff2800|Asia}}
 
</nowiki>
 
|
 
{{legend4|black|Africa}}
 
{{legend4|green|Americas}}
 
{{legend4|blue|Oceania}}
 
{{legend4|#ffa|Europe|outline=silver}}
 
{{legend4|#ff2800|Asia}}
 
}}
 
 
 
<!-- {{Legend}}: -->
 
{{Markup
 
| colheaderstyle = text-align:left; font-weight:normal
 
| col1 = '''Legend'''
 
| <nowiki>
 
{{legend|black|Africa}}
 
{{legend|green|Americas}}
 
{{legend|blue|Oceania}}
 
{{legend|#ffa|Europe|outline=silver}}
 
{{legend|#ff2800|Asia}}
 
</nowiki>
 
|
 
{{legend|black|Africa}}
 
{{legend|green|Americas}}
 
{{legend|blue|Oceania}}
 
{{legend|#ffa|Europe|outline=silver}}
 
{{legend|#ff2800|Asia}}
 
}}
 
 
 
=== See also ===
 
 
* {{tl|Legend}}
 
* {{tl|Legend}}
 
* {{tl|Legend0}}
 
* {{tl|Legend0}}
Line 52: Line 17:
 
* {{tl|Legend inline}}
 
* {{tl|Legend inline}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Legend templates]]
 
[[Category:Legend templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 03:22, 23 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}}
  • {{Legend4|#0000ff|Foobar|text=Ex|border=1px dashed red}}

See also