Difference between revisions of "Template:Ribbon"

From Geohashing
imported>Relet
m
imported>Relet
(Ok, it works. Here's the documentation.)
Line 1: Line 1:
<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
+
<includeonly><table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
 
<tr>
 
<tr>
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: {{{color}}}; border-collapse: separate;"><div>[[Image:{{{icon}}}|44px]]</div></td>
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: {{{color}}}; border-collapse: separate;"><div>[[Image:{{{icon}}}|44px]]</div></td>
Line 6: Line 6:
 
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
 
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
 
</tr>
 
</tr>
</table>[[Category:{{{category}}}]]<noinclude>
+
</table>[[Category:{{{category}}}]]</includeonly><noinclude>
Parameters:
+
This template displays a generic ribbon, which can be customized using the following parameters. It can be used to simplify existing ribbon pages, or to create new ribbons more easily.
*icon  
+
 
*color= border colour, corporate identity
+
*icon = ''The icon image to display in the ribbon.''
*user= user (name or "this user")
+
*color = ''The border colour of the ribbon.''
*achievement=achievement or consolation prize name
+
*user = ''The user name (or "This user") to be displayed in the ribbon.''
*action ("by reaching ...")
+
*achievement = ''Achievement or consolation prize name.''
*category
+
*action = ''A free form description of the achieved feature. "reaching the x,y hash..."''
----
+
*category = ''The category name where users having gained this achievement will be put.''
optional:
+
Optional Parameters:
*image = photographic proof
+
*image = ''The usual photographic proof''
 +
 
 +
 
 +
'''Example'''
 +
<pre><nowiki>{{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
 +
}}</nowiki></pre>
 +
will display as:
 +
{{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 = 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 -->
 +
}}

Revision as of 17:47, 13 February 2009

This template displays a generic ribbon, which can be customized using the following parameters. It can be used to simplify existing ribbon pages, or to create new ribbons more easily.

  • icon = The icon image to display in the ribbon.
  • color = The border colour of the ribbon.
  • user = The user name (or "This user") to be displayed in the ribbon.
  • achievement = Achievement or consolation prize name.
  • action = A free form description of the achieved feature. "reaching the x,y hash..."
  • category = The category name where users having gained this achievement will be put.

Optional Parameters:

  • image = The usual photographic proof


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
}}

will display as:

Landgeohash.png
Mr. Stickman earned the Lost in Thought Achievement
by hurting himself while concentrating on the display of his GPS.