Difference between revisions of "Wiki.jonathancoulton.com:Userboxes"

From JoCopedia
Jump to navigation Jump to search
(moving up the bit about |})
(display title on fav song)
Line 17: Line 17:
 
<div class="babel"><div class="babelexample">{{Userbox:JoCo Fav}}</div> <nowiki>{{Userbox:JoCo Fav}}</nowiki></div>
 
<div class="babel"><div class="babelexample">{{Userbox:JoCo Fav}}</div> <nowiki>{{Userbox:JoCo Fav}}</nowiki></div>
  
<div class="babel"><div class="babelexample">{{Userbox:Fav Song}}</div> <nowiki>{{Userbox:Fav Song|</nowiki>''Your favorite song''<nowiki>}}</nowiki></div>
+
<div class="babel"><div class="babelexample">{{Userbox:Fav Song}}</div> <nowiki>{{Userbox:Fav Song|</nowiki>''Your favorite song''{{!}}''Display title'' [optional]<nowiki>}}</nowiki></div>
  
  

Revision as of 22:50, 12 November 2012

This page is currently under construction!

JoCopedia is currently in the process of incorporating userboxes as an added feature for customizing userpages. Some of the layout is borrowed graciously from TMBW.net. Sets of userboxes should have the userbox top as a heading. The templates are entered in the following order:

  • {{userbox top}}
  • userbox template(s) (as many as desired)
  • |}

Note that the closing statement (|}) is only entered once, after the entire string of userboxes. (See example below.)

Standard userboxes

The following userboxes can be entered using simple templates listed alongside the corresponding box. Text in italics should be replaced with the appropriate value. Links will be created automatically.

CTB This user has made the following contributions.
{{Userbox:Contributions}}
ADM This user is a JoCopedia administrator.
{{Userbox:Administrator}}
MOD This user is a JoCopedia moderator.
{{Userbox:Moderator}}
JC Jonathan Coulton is this user's favorite musician.
{{Userbox:JoCo Fav}}
FAV This user's favorite JoCo song is "{{{1}}}".
{{Userbox:Fav Song|Your favorite song|Display title [optional]}}


Custom userboxes

It is also possible to create your own userbox using the userbox template. More standard userboxes will be created in the future. You must fill in the values for each parameter, and enter the box as you would a standard userbox.

For example:

{{userbox top}}

{{Userbox
|border= #000

|boxtext= MAN
|boxtextcolor= #fff
|boxbackground= #000

|message= this is a userbox
|messagebackground= #fff
}}

{{Userbox
|border= #000

|boxtext= OH
|boxtextcolor= #fff
|boxbackground= #000

|message= this is another
|messagebackground= #fff
}}

|}
JoCopedia Userboxes
MAN this is a userbox
OH this is another

Would yield the set of userboxes appearing alongside this page. Colors can be entered as simple color names, hexadecimal values (# must be included), or RGB values. The contents of the box on the left can be three or fewer capital letters, four or fewer lowercase letters, or a 45-pixel wide image (please use externally hosted images for the time being).