Template:Legend-shell
Jump to navigation
Jump to search
This documentation is transcluded from Template:Legend-shell/doc.
Purpose
[edit]- Similar to Template:Legend-table, but allows flexibility in the formatting of the legend (including using {{Cols}} to make columns in legends). Adapted from Template:Legend-table.
Example usage
[edit]Example usage, from File:World homosexuality laws.svg:
{{legend-shell|lang=en|title=Laws regarding same-sex sexuality
|{{legend|#808080|No information}}{{Cols|
'''Homosexuality legal'''
{{legend|#025|Same-sex marriage<sup>1</sup>}}
{{legend|#06F|Other type of partnership (or unregistered cohabitation)<sup>1</sup>}}
{{legend|#7FBCFF|Foreign same-sex marriages recognized<sup>1</sup>}}
{{legend|#CCC|No recognition of same-sex couples}}
|
'''Homosexuality illegal'''
{{Legtab
|#f9dc36|Minimal penalty
|#ec8028|Large penalty
|#e73e21|Life in prison
|#8c210f|Death penalty}}
}}
<sup>1</sup>May include recent laws or court decisions which have created legal recognition of same-sex relationships, but which have not entered into effect yet
}}
gives:
No information
1May include recent laws or court decisions which have created legal recognition of same-sex relationships, but which have not entered into effect yet |