Template:Legend-table
Usage
{{Legend-table |lang= |title= |1= |2= |notes= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
lang | language | Language of the legend | empty | required |
title | title | A title for the legend | empty | optional |
1 | color #1 | Color of the first line of the legend | empty | required |
2 | legend #1 | Legend for the first line | empty | required |
3 | color #2 | Color of the second line of the legend | empty | optional |
4 | legend #2 | Legend for the second line | empty | optional |
| 6, 8, 10, ... for legends | more parameters: 5, 7, 9, ... for colors,optional | ||
notes | footnotes | Optional footnotes (use the <sup>1</sup> format[both there and at the legend section]) | empty | optional |
ttip | tooltip | specify "yes" for colors tooltipping | empty | optional |
align | title align | alignement of the title text | center | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Displays an unlimited number of [[:Template:Legend|Legend]]s<table class="plainlinks ombox mbox-small ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Lua-logo-nolabel.svg|30px|alt=Lua logo|link=wikipedia:Wikipedia:Lua]]</td><td class="mbox-text">Uses [[wikipedia:Wikipedia:Lua|Lua]]: <div><ul><li>[[:Module:Iteration]]</li></ul></div></td></tr></table>[[Category:Lua-based iteration templates]]
|
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: no user group specified
Example
{{Legend-table|lang=en|title=This is an optional title|align=left |#000000|Kosovo |#0052ff|States which formally recognise Kosovo as independent.<sup>1</sup> |#5fadff|States which have stated they intend to recognise formally Kosovo as independent. |#cdcd9c|States with undecided, unclear or ambiguous positions. |#E5A238|States which have expressed disagreement with unilateral moves or expressed wish for further negotiations. |#FF4500|States which have stated they will not recognise Kosovo as independent. |#a3a3a3|States with no reported position at present. |notes=<sup>1</sup>This is an optional area for footnotes. }}
renders as:
See also
- See for example File:Kosovo relations.svg
- Template:Legend-shell (same as this template, but allows use of columns and other manual formatting)
- Template:Legint table of Legend inlines
- Template:Legtab Legend table, uses
- Template:ColorString General
colorbox
template, for such legends and much more
Localization
This template is not intended to be localized.