Difference between revisions of "Template:Ribbon2"
From Geohashing
(still looking for a width that works properly) |
(frack it, invisible flexbox) |
||
Line 1: | Line 1: | ||
<!-- this css MUST NOT have any variables in it - someday, it'll be moved to [[MediaWiki:Common.css]] --> | <!-- this css MUST NOT have any variables in it - someday, it'll be moved to [[MediaWiki:Common.css]] --> | ||
{{#css: | {{#css: | ||
+ | .ribbon2-wrapper { | ||
+ | display: flex; | ||
+ | } | ||
+ | |||
.ribbon2 { | .ribbon2 { | ||
padding: 5px; | padding: 5px; | ||
Line 47: | Line 51: | ||
− | }}<div class="ribbon2" style="border-left-color:{{{color|#e8bf28}}}" data-ribbon2-theme="{{#var:ribbontheme|default}}"> | + | }}<div class="ribbon2-wrapper"> |
+ | <div class="ribbon2" style="border-left-color:{{{color|#e8bf28}}}" data-ribbon2-theme="{{#var:ribbontheme|default}}"> | ||
<div class="ribbon2-icon">{{{iconcode|[[File:{{{icon|Landgeohash.png}}}|70px]]}}}</div> | <div class="ribbon2-icon">{{{iconcode|[[File:{{{icon|Landgeohash.png}}}|70px]]}}}</div> | ||
<div class="ribbon2-achievement">{{{achievement}}}</div> | <div class="ribbon2-achievement">{{{achievement}}}</div> | ||
<div class="ribbon2-action">{{{action}}}</div> | <div class="ribbon2-action">{{{action}}}</div> | ||
<div class="ribbon2-image">{{#if:{{{image|}}}|[[Image:{{{image}}}|50px]]}}</div> | <div class="ribbon2-image">{{#if:{{{image|}}}|[[Image:{{{image}}}|50px]]}}</div> | ||
+ | </div> | ||
</div><noinclude> | </div><noinclude> | ||
== Tests == | == Tests == | ||
[[File:Frozen.png|right|220px]] | [[File:Frozen.png|right|220px]] | ||
+ | asdfasdf | ||
{{Ribbon2|action={{Lipsum}}|image=2020-02-08_43_-79_SIGSTKFLT-stupidgrin.jpg}} | {{Ribbon2|action={{Lipsum}}|image=2020-02-08_43_-79_SIGSTKFLT-stupidgrin.jpg}} | ||
{{Dark Ages|latitude=51|longitude=-1|date=2019-11-29|name=[[User:DanQ|DanQ]]|image=Vlcsnap-2019-11-29-15h55m24s199.jpg}} | {{Dark Ages|latitude=51|longitude=-1|date=2019-11-29|name=[[User:DanQ|DanQ]]|image=Vlcsnap-2019-11-29-15h55m24s199.jpg}} |
Revision as of 02:09, 18 November 2024
{{{achievement}}}
{{{action}}}
Tests
asdfasdf
{{{achievement}}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
DanQ earned the Dark Ages achievement
|
SIGSTKFLT earned the Frozen Geohash Achievement
|
{{{achievement}}}
{{{action}}}
Mini
{{{achievement}}}
{{{action}}}
{{{achievement}}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Micro
foo
{{{action}}}
TODO
Handle long actions in mini and micro themesSplit themes into their own templates?Make the {{{image}}} parameter work