Template:BadgeBox/fixed: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(flex instead of fixed layout table for nicer vertical align, max line length for widescreen readability)
m (parent template always passes left, changing default value to auto to match /auto)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div role="figure" aria-labelledby="badgebox-{{anchorencode:{{{badge}}}}}" style="display: flex; margin: 0.5em; border: 1px solid #AAAAFF; padding: 0 1em; gap: 1em; max-width: 70ch; background-color: #F4F4FF; align-items: center;">
<div role="figure" aria-labelledby="badgebox-{{anchorencode:{{{badge}}}}}" style="display: flex; margin: 0.5em; border: 1px solid #AAAAFF; padding: 0 1em; max-width: 70ch; gap: 1em; background-color: #F4F4FF; align-items: flex-start;">
<div style="flex: 0 0 {{{left|100}}}px; text-align: center;">{{{image}}}</div>
<div style="flex: 0 0 {{{left|auto}}}px; margin: 1.25em 0; text-align: center;">{{{image}}}</div>
<div>
<div>
<div id="badgebox-{{anchorencode:{{{badge}}}}}" style="font-weight: bold; margin: 1em 0;">[[{{{badge}}} Badge {{#if:{{{which|}}}|({{{which}}})|}}|{{{badge}}}]]</div>
<div id="badgebox-{{anchorencode:{{{badge}}}}}" style="font-weight: bold; margin: 1em 0;">[[{{{badge}}} Badge {{#if:{{{which|}}}|({{{which}}})|}}|{{{badge}}}]]</div>

Latest revision as of 01:23, 25 March 2022

{{{image}}}
[[{{{badge}}} Badge |{{{badge}}}]]

{{{desc}}}