Difference between revisions of "Template talk:Ribbon"

From Geohashing
(more text)
(propose a new intermediate template.)
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
:+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? --[[User:DanQ|DanQ]] ([[User talk:DanQ|talk]])
 
:+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? --[[User:DanQ|DanQ]] ([[User talk:DanQ|talk]])
 
::This isn't my first MediaWiki rodeo. *cracks knuckles* --[[User:SIGSTKFLT|SIGSTKFLT]] ([[User talk:SIGSTKFLT|talk]]) 10:56, 11 February 2020 (UTC)
 
::This isn't my first MediaWiki rodeo. *cracks knuckles* --[[User:SIGSTKFLT|SIGSTKFLT]] ([[User talk: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:
+
::{{Ribbon2|achievement=''This was a triumph...''|action=''I'm making a note here: HUGE SUCCESS''<br>--[[User:SIGSTKFLT|SIGSTKFLT]] ([[User talk:SIGSTKFLT|talk]]) 12:16, 11 February 2020 (UTC)}}
<pre>
+
:: I also propose adding a new "Achievement" template, and pass the job of adding the "{{{user}}} earned the {{{achievement}}} achievement" text to that. --[[User:SIGSTKFLT|SIGSTKFLT]] ([[User talk:SIGSTKFLT|talk]]) 10:58, 13 February 2020 (UTC)
<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>
 
</pre>
 
All the wordy and repetitive CSS is hidden away in Common.css; no longer wordy.
 
--[[User:SIGSTKFLT|SIGSTKFLT]] ([[User talk:SIGSTKFLT|talk]]) 11:42, 11 February 2020 (UTC)
 

Latest revision as of 10:59, 13 February 2020

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)
Landgeohash.png
This was a triumph...
I'm making a note here: HUGE SUCCESS
--SIGSTKFLT (talk) 12:16, 11 February 2020 (UTC)
I also propose adding a new "Achievement" template, and pass the job of adding the "{{{user}}} earned the {{{achievement}}} achievement" text to that. --SIGSTKFLT (talk) 10:58, 13 February 2020 (UTC)