Template:Paired list stack: Difference between revisions
Jump to navigation
Jump to search
added color attribute |
added label and label id parameters |
||
| Line 1: | Line 1: | ||
<includeonly><dl style="margin: 5px; border-top: 1px solid {{{border color|#c8ccd1}}}; border-left: 1px solid {{{border color|#c8ccd1}}}; border-right: 1px solid {{{border color|#c8ccd1}}}; border-radius: 3px; padding-bottom: 1px; overflow: hidden; text-align: center;"> | <includeonly>{{#if:{{{label|}}}|<div id="{{{label id|{{anchorencode:{{{label}}}}}}}}" style="text-align: center; font-weight: bold;">{{{label}}}</div>}}<dl {{#if:{{{label|}}}|aria-labelledby="{{{label id|{{anchorencode:{{{label}}}}}}}}"}} style="margin: 5px; border-top: 1px solid {{{border color|#c8ccd1}}}; border-left: 1px solid {{{border color|#c8ccd1}}}; border-right: 1px solid {{{border color|#c8ccd1}}}; border-radius: 3px; padding-bottom: 1px; overflow: hidden; text-align: center;"> | ||
<div style="display: flex; flex-wrap: wrap; border-bottom: 1px solid {{{border color|#c8ccd1}}};"> | <div style="display: flex; flex-wrap: wrap; border-bottom: 1px solid {{{border color|#c8ccd1}}};"> | ||
<dt style="flex: 1 0 15ch; margin: 0; padding: 2px; line-height: inherit; font-family: inherit; background-color: {{{key background color|#eaecf0}}}; color: {{{key color|black}}};">{{{key 1|}}} | <dt style="flex: 1 0 15ch; margin: 0; padding: 2px; line-height: inherit; font-family: inherit; background-color: {{{key background color|#eaecf0}}}; color: {{{key color|black}}};">{{{key 1|}}} | ||
Latest revision as of 13:12, 29 April 2025
Displays a stack containing key-value pairs.
Mimics a table layout, but rearranges itself to better fit on small viewports (mobile).
Example[edit source]
{{paired list stack
| key background color = lightblue
| border color = darkblue
| key 1 = 1986
| value 1 = Dragon Quest Suite
| key 2 = 1987
| value 2 = Dragon Quest II Suite<br>Dragon Quest in Concert (Family Classic Concert)
| key 3 = 1988
| value 3 = Dragon Quest III Symphonic Suite (NHK Symphony Orchestra)<br>Dragon Quest III Naoshi Kougami Vocal<br>Dragon Quest in Brass<br>March Dragon Quest III<br>Dragon Quest on Electone<br>Dragon Quest in Concert (Family Classic Concert 2)
}}
Appearance in narrow viewports: