Difference between revisions of "Template:Userbox"
Jump to navigation
Jump to search
m |
(+Usage) |
||
Line 4: | Line 4: | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
{{Usage|1= This template is for use when creating new userbox templates. It helps keep all userboxes consistent in both style and size. This template should not be substituted. | |||
===Example=== | |||
'''<nowiki>{{</nowiki>userbox<br />{{!}}id= <nowiki>[[</nowiki>Image:MedalOfMerit.jpg{{!}}20px{{!}}Medal of Merit]]<br />{{!}}id-bg-col= #fff<br />{{!}}info= <nowiki>'''</nowiki>Medal of Merit<nowiki>'''</nowiki>: This user has done tremendous service to [[CWCki]] and deserves recognition as such.<nowiki>}}</nowiki>''' | |||
== Parameters == | Produces: | ||
{{userbox | |||
|id= [[Image:MedalOfMerit.jpg|20px|Medal of Merit]] | |||
|id-bg-col= #fff | |||
|info= '''Medal of Merit''': This user has done tremendous service to CWCki and deserves recognition as such.}} | |||
=== Parameters === | |||
* '''id''' - the stuff that appears in the left box. | * '''id''' - the stuff that appears in the left box. | ||
* '''info''' - the stuff that appears in the right box. | * '''info''' - the stuff that appears in the right box. | ||
Line 21: | Line 29: | ||
** info-col | ** info-col | ||
** info-size | ** info-size | ||
}} | |||
<!-- In case anyone asks: Hand-made by wwwwwolf in imitation of Wikipedia userboxes without actually looking at the code too much, just getting the box pixel sizes. Released to public domain. --> | <!-- In case anyone asks: Hand-made by wwwwwolf in imitation of Wikipedia userboxes without actually looking at the code too much, just getting the box pixel sizes. Released to public domain. --> | ||
</noinclude> | </noinclude> |
Revision as of 14:56, 29 May 2010
ID | Box text |
Usage
These usage notes will not be included in articles bearing this template.
This template is for use when creating new userbox templates. It helps keep all userboxes consistent in both style and size. This template should not be substituted.
Example
{{userbox
|id= [[Image:MedalOfMerit.jpg|20px|Medal of Merit]]
|id-bg-col= #fff
|info= '''Medal of Merit''': This user has done tremendous service to CWCki and deserves recognition as such.}}
Produces:
Medal of Merit: This user has done tremendous service to CWCki and deserves recognition as such. |
Parameters
- id - the stuff that appears in the left box.
- info - the stuff that appears in the right box.
- Box colours:
- box-border-col
- box-bg-col
- Left side colours and sizes:
- id-border-col
- id-bg-col
- id-col
- id-size
- Right side colours and sizes:
- info-border-col
- info-bg-col
- info-col
- info-size