Difference between revisions of "Template:Ribbon"

From Geohashing
(comment3, http://maineagentcareers.com/ pregnancy registry zoloft canada, http://noattrition.com/ buy reductil, http://n2-itall.com/ meridia with wellbutrin interactions, http://lionkillbjj.com/ 2003)
([Shmulik] De la grande babylon)
Line 1: Line 1:
comment3, http://maineagentcareers.com/ pregnancy registry zoloft canada, http://noattrition.com/ buy reductil, http://n2-itall.com/ meridia with wellbutrin interactions, http://lionkillbjj.com/ 2003 cyalis levitra market sales viagra, http://nzingaafrocentricgreetingcards.com/ phentermine 37.5 overnight delivery, http://aubreyallicock.com/ propecia, http://manchestershodokan.com/ zyprexa 5mg, http://freewowtips.com/ cheap actos, http://see-yosemite.com/ where buy acomplia, http://iowaagentcareers.com/ generic plavix, http://metrobrickrepair.com/ cigarettes buy online, http://juliencollotfoundation.org/ prevacid, http://fuocodipanna.com/ side effects of advair, http://couponistas.com/ levitra shemale yasmin lee,
+
<includeonly>{{#if:{{#var:smalltemplates|}}|<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; background-color:{{{bgcolor|white}}}; color: {{{fontcolor|black}}}; border-color: lightgray;"><tr><td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: {{{color}}}; border-collapse: separate;">{{{iconcode|[[Image:{{{icon}}}|22px]]}}}</td><td>'''{{{achievement}}}''' by {{{action}}}.</td></tr></table>|<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray; background-color:{{{bgcolor|white}}}; color: {{{fontcolor|black}}};">
 +
<tr>
 +
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: {{{color}}}; border-collapse: separate;"><div>{{{iconcode|[[Image:{{{icon}}}|44px]]}}}</div></td>
 +
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{user|}}}|{{{user}}}|This user}} {{{customtitle|earned the}}} {{{achievement}}}'''
 +
:by {{{action}}}.</td>
 +
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
 +
</tr>
 +
</table>}}{{#if:{{{category|}}}|[[Category:{{{category}}}]]|}}</includeonly><noinclude>
 +
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 <nowiki>{{{name|}}}</nowiki> 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 <nowiki>{{{image|}}}</nowiki> to pass through the possibly blank image parameter from your own ribbon template.)
 +
Optional modifiers:
 +
*Use the code <pre>{{#vardefine:smalltemplates|1}}</pre> on any page to make all subsequent ribbons appear more compact.
 +
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.''
 +
 
 +
'''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 -->
 +
}}
 +
or, with small templates:
 +
{{#vardefine:smalltemplates|1}}
 +
{{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 23:56, 19 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.)

Optional modifiers:

  • Use the code
    {{#vardefine:smalltemplates|1}}
    on any page to make all subsequent ribbons appear more compact.

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.

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.

or, with small templates:

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