Template talk:Ribbon

From Geohashing
Revision as of 11:43, 11 February 2020 by SIGSTKFLT (talk | contribs) (Change section header from "Multiplier" to "Redesign")

Width

I'd like to see a pixel width set on this template, so that achievements in a list all line up. They look odd at the moment. I propose 480px which seems to accommodate all normal usages. If no objections, I'll make the change this weekend. --Davidc 23:22, 13 August 2009 (UTC)

It might break a few layouts on the way, but I think it's a good idea. -- relet 23:28, 13 August 2009 (UTC)
Should be optional at best - I would like to keep my ribbons the way they are (all starting at the left, ending when they end, no blank space inside a box, ...) --lyx 23:37, 13 August 2009 (UTC)
Using relet's "ribbontheme" variable as an example, I have achieved it by a new optional page variable "ribbonwidth". --davidc 11:18, 15 March 2010 (UTC)


Really sorry about my edits - I think I have undone most, hopefully all of my mistakes. Too many tabs open with editing windows! Once again, very sorry!!! --ChromeCrusaders (talk) 19:32, 28 March 2015 (EDT)

Redesign

I propose: the ability to show how many times you've gotten an achievement with a new "multiplier" argument. Threw this together with DevTools: https://imgur.com/GnBCxco --SIGSTKFLT (talk) 06:38, 11 February 2020 (UTC)

+1, but we'd probably want to refactor ribbons _in general_ to make this viable. Would love to see a prototype template that we can vote on. Any takers? --DanQ (talk)
This isn't my first MediaWiki rodeo. *cracks knuckles* --SIGSTKFLT (talk) 10:56, 11 February 2020 (UTC)
Update: I need to edit MediaWiki:Common.css. I've designed a ribbon that I think will be amazing and extensible and succinct and all that jazz. Here's a sample:
<div class="xkcd-ribbon2 xkcd-ribbon2-{{#var:ribbontheme|default}}">
  <div class="xkcd-ribbon2-icon" style="border-left-color:{{{color|inherit}}}">[[File:{{{icon|Landgeohash.png}}}]]</div>
  <div class="xkcd-ribbon2-achv">{{{achievement}}}</div>
  <div class="xkcd-ribbon2-actn">{{{action}}}</div>
</div>

--SIGSTKFLT (talk) 11:42, 11 February 2020 (UTC)