Difference between revisions of "Template:Award"
Jump to navigation
Jump to search
(New page: <center><div class="boilerplate metadata" width=100%><table CELLPADDING=5 CELLSPACING=5 style="background-color: {{{bgcolor}}}; color: {{{textcolor}}}; border: 1px solid {{{bordercolor}}};...) |
m (Usage) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<center><div class="boilerplate metadata" width=100%><table CELLPADDING=5 CELLSPACING=5 style="background-color: {{{bgcolor}}}; color: {{{textcolor}}}; border: 1px solid {{{bordercolor}}}; width: {{{width}}};"><tr><td>{{{image}}}</td><td>'''<span style="color: {{{titlecolor|#000000}}};"> | <center><div class="boilerplate metadata" width=100%><table CELLPADDING=5 CELLSPACING=5 style="background-color: {{{bgcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; border: {{{bordersize|1px solid}}} {{{bordercolor|#000000}}}; width: {{{width|358}}};"><tr><td>[[Image:{{{image|delayclose.jpg}}}|{{{img_width|100}}}px]]</td><td>'''<span style="color: {{{titlecolor|#000000}}};">{{{title|Award}}}</span>''' | ||
{{{text}}} | {{{text|This is an award. Well done!}}} | ||
</td></tr></table></div></center> | </td></tr></table></div></center> | ||
<noinclude>[[Category: Awards]]</noinclude> | <noinclude>{{usage|1=This template is used to create awards, which can be given to worthy CWCki users. Using {{tl|Userbox}} may be more appropriate depending on exactly what the award is for. When creating a new award, be sure to include it in the [[:Category:Awards|awards category]]. | ||
===Parameters=== | |||
* '''title''' - The award title. Default: "Award" | |||
* '''text''' - The award text. Default: "This is an award. Well done!" | |||
* '''image''' - The image on the left of the box. Default: "delayclose.jpg" | |||
** '''img_width''' - The images desired width. Default: "100" | |||
* '''bordersize''' - Size for the box border. Default: "1px solid" | |||
* '''bordercolour''' - Colour for the box border. Default: "#000000" | |||
* '''bgcolor''' - Background colour of the box. Default: "#FFFFFF" | |||
* '''width''' - Width of the box. Default: "358" | |||
* '''textcolor''' - Text color for the box text. Default: "#000000" | |||
===Example=== | |||
{{Award| | |||
bordercolor=#000000| | |||
bgcolor=#FFFFFF| | |||
textcolor=#000000| | |||
titlecolor=#000000| | |||
image=delayclose.jpg| | |||
img_width=100| | |||
width=358px| | |||
title=Award| | |||
text=This is an award. Well done!}} | |||
Created using the following code: | |||
<pre>{{Award| | |||
bordercolor=#000000| | |||
bgcolor=#FFFFFF| | |||
textcolor=#000000| | |||
titlecolor=#000000| | |||
image=delayclose.jpg| | |||
img_width=100| | |||
width=358px| | |||
title=Award| | |||
text=This is an award. Well done!|}}</pre> | |||
===Positioning in a sidebar=== | |||
<div style="clear:right; float:right; width:220px;">{{Award| | |||
bordercolor=#000000| | |||
bgcolor=#FFFFFF| | |||
textcolor=#000000| | |||
titlecolor=#000000| | |||
image=delayclose.jpg| | |||
img_width=100| | |||
width=74| | |||
title=Award| | |||
text=This is an award. Well done!|}}</div> | |||
Created by using the following code: | |||
<pre><div style="clear:right; float:right; width:220px;">{{Award| | |||
bordercolor=#000000| | |||
bgcolor=#FFFFFF| | |||
textcolor=#000000| | |||
titlecolor=#000000| | |||
image=delayclose.jpg| | |||
img_width=100| | |||
width=74| | |||
title=Award| | |||
text=This is an award. Well done!|}}</div></pre> | |||
}} | |||
[[Category: Awards]]</noinclude> |
Latest revision as of 16:10, 2 June 2010
Usage
These usage notes will not be included in articles bearing this template.
This template is used to create awards, which can be given to worthy CWCki users. Using {{Userbox}} (Usage) may be more appropriate depending on exactly what the award is for. When creating a new award, be sure to include it in the awards category.
Parameters
- title - The award title. Default: "Award"
- text - The award text. Default: "This is an award. Well done!"
- image - The image on the left of the box. Default: "delayclose.jpg"
- img_width - The images desired width. Default: "100"
- bordersize - Size for the box border. Default: "1px solid"
- bordercolour - Colour for the box border. Default: "#000000"
- bgcolor - Background colour of the box. Default: "#FFFFFF"
- width - Width of the box. Default: "358"
- textcolor - Text color for the box text. Default: "#000000"
Example
Created using the following code:
{{Award| bordercolor=#000000| bgcolor=#FFFFFF| textcolor=#000000| titlecolor=#000000| image=delayclose.jpg| img_width=100| width=358px| title=Award| text=This is an award. Well done!|}}
Positioning in a sidebar
Created by using the following code:
<div style="clear:right; float:right; width:220px;">{{Award| bordercolor=#000000| bgcolor=#FFFFFF| textcolor=#000000| titlecolor=#000000| image=delayclose.jpg| img_width=100| width=74| title=Award| text=This is an award. Well done!|}}</div>