Difference between revisions of "Template:Ribbon"
From Geohashing
imported>Relet |
imported>Relet |
||
Line 33: | Line 33: | ||
*iconcode = ''replaces the whole display code for the icon image.'' | *iconcode = ''replaces the whole display code for the icon image.'' | ||
+ | == Themes == | ||
'''Example''' | '''Example''' | ||
<pre><nowiki>{{Ribbon | <pre><nowiki>{{Ribbon | ||
Line 41: | Line 42: | ||
|action = hurting himself while concentrating on the display of his GPS | |action = hurting himself while concentrating on the display of his GPS | ||
|category = Lost in Thought Achievement | |category = Lost in Thought Achievement | ||
+ | |expedition = [[2008-05-22 33 -44]] | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
− | will display as: | + | will display, depending on the theme you have selected, as: |
+ | === #default === | ||
{{Ribbon | {{Ribbon | ||
|icon = Landgeohash.png | |icon = Landgeohash.png | ||
Line 51: | Line 54: | ||
|category = Templates <!-- you may want to use a more sensible category here. But I'm not going to invent one that will mess up the existing list --> | |category = Templates <!-- you may want to use a more sensible category here. But I'm not going to invent one that will mess up the existing list --> | ||
}} | }} | ||
− | |||
− | |||
=== mini === | === mini === | ||
{{#vardefine:ribbontheme|mini}} | {{#vardefine:ribbontheme|mini}} |
Revision as of 15:42, 24 January 2010
This template displays a generic ribbon, which can be customized using the following parameters. It can be used to simplify existing ribbon pages, and to create new ribbons more easily. It also helps us to maintain a common layout for all ribbons.
- icon = The icon image to display in the ribbon.
- color = The border colour of the ribbon.
- achievement = Achievement or consolation prize name.
- action = A free form description of the achieved feature. "reaching the x,y hash..."
Optional marameters:
- user = The user name to be displayed in the ribbon. (Defaults to "This user". use {{{name|}}} as value to pass through the possibly blank name parameter as user name)
- category = The category name where users having gained this achievement will be put.
- image = The usual photographic proof (Note: you may want to use the value {{{image|}}} to pass through the possibly blank image parameter from your own ribbon template.)
- expedition = the expedition link, as used by the mini templates (e.g. "2008-05-22 33 -44")
Optional modifiers:
- Use the code
{{#vardefine:ribbontheme|mini}}
{{#vardefine:ribbontheme|micro}}
on any page to make all subsequent ribbons appear in the selected theme. Rarely used Parameters:
- customtitle = replaces the words 'earned the' in the title of the ribbon.
- bgcolor = replaces the background color of the ribbon.
- fontcolor = replaces the font color of the ribbon.
- iconcode = replaces the whole display code for the icon image.
Contents
Themes
Example
{{Ribbon |icon = Landgeohash.png |color = darkgreen |user = Mr. Stickman |achievement = [[Lost in Thought Achievement]] |action = hurting himself while concentrating on the display of his GPS |category = Lost in Thought Achievement |expedition = [[2008-05-22 33 -44]] }}
will display, depending on the theme you have selected, as:
#default
Mr. Stickman earned the Lost in Thought Achievement
|
mini
Lost in Thought Achievement by hurting himself while concentrating on the display of his GPS. |
micro
Lost in Thought Achievement: 2008-05-22 33 -44 |