Difference between revisions of "Template:Ribbon2"

From Geohashing
(move .ribbon2-wrapper to Template:Ribbon2 so I don't have to repeat code.)
(that doesn't work (obvious in hindsight) so let's do this)
Line 81: Line 81:
 
}
 
}
  
}}<div class="ribbon2-wrapper" style="border-left-color:{{{color|#bada55}}};background:{{{background|white}}};color:{{{fontcolor|black}}}">
+
}}{{Ribbon2/{{#switch:{{#var:ribbontheme}}|mini=mini|micro=micro|#default=default}}
{{Ribbon2/{{#switch:{{#var:ribbontheme}}|mini=mini|micro=micro|#default=default}}
+
|style=border-left-color:{{{color|#bada55}}};background:{{{background|white}}};color:{{{fontcolor|black}}}
 
|color={{{color|#bada55}}}
 
|color={{{color|#bada55}}}
 
|icon={{{icon|landgeohash.png}}}
 
|icon={{{icon|landgeohash.png}}}
Line 91: Line 91:
 
|fontcolor={{{fontcolor|black}}}
 
|fontcolor={{{fontcolor|black}}}
 
|image={{{image|}}}
 
|image={{{image|}}}
}}</div><noinclude>
+
}}<noinclude>
  
 
== Tests ==
 
== Tests ==

Revision as of 21:39, 27 September 2020

Landgeohash.png
{{{achievement}}}
{{{action}}}

Tests

Landgeohash.png
{{{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.
2020-02-08 43 -79 SIGSTKFLT-stupidgrin.jpg


Landgeohash.png
{{{achievement}}}
{{{action}}}


Landgeohash.png
{{{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.


Landgeohash.png
foo:
bar

TODO

  • Handle long actions in mini and micro themes
  • Split themes into their own templates?