Template:Userbox

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
METhis user raises awareness of
Myalgic Encephal­omyel­itis.
template icon Template documentation[view] [edit] [history] [purge]

How to use[edit source]

Just add {{Userbox}} to your user page to display this.

Examples[edit source]

{{Userbox researcher}}

Academic researcher.svg
This user is a
researcher
or
academic.



{{Userbox scientist}}

Chemistry.svg
This user is a
scientist.



{{Userbox fibro}}
Purple ribbon fibromyalgia.svg
This user has
Fibromyalgia.



{{Userbox zebra}}
Paint art.png
This user makes posters, graphs and pictures.



{{Userbox language|language=Danish}}
Translate logo.svg
This user speaks
Danish.


{{Userbox Nederlands}}
NLThis user speaks
Dutch.


{{Userbox Nederlands/nl}}
NLDeze gebruiker spreekt
nederlands.
(This user speaks Dutch.)


{{Userbox deutsch}}
Germany flag.svg.png
This user speaks
German.


German flag / German

{{Userbox deutsch/de}}
German flag
Dieser Benutzer spricht
deutsch.
(This user speaks German.)

Austria flag / German

{{Userbox deutsch/de|id=[[File:Austria_flag.svg.png|45px|center]] }}
Austria flag.svg.png
Dieser Benutzer spricht
deutsch.
(This user speaks German.)


{{Userbox health}}
Healthcare 1.png
This person is a qualified
health care­ professional.



{{Userbox knowledge|[[Mast cell activation syndrome|Mast Cell Activation Syndrome]]}}
Book stack color.png
This user is knowledgeable about
Mast Cell Activation Syndrome



{{Userbox art}}
Paint art.png
This user makes posters, graphs and pictures.



{{Userbox art PD}}
PD-icon.svg
This user's own art uses a public domain license.



Create a gap after userboxes:

{{clear}}


Userboxes available[edit source]


Request a userbox[edit source]

Visit the talk page

Examples to customize[edit source]

Code Result
{{userbox}}
METhis user raises awareness of
Myalgic Encephal­omyel­itis.
{{userbox
| border-c      = #333333
| id            = [[File:Microscope_science.png|40px|center]]
| id-c          = #ffffff
| info          = This user is a  '''scientist'''.
| info-c        = #222222
| info-s        = 10
| info-fc       = #ffffff
| info-lh       = 1.25
}}
Microscope science.png
This user is a scientist.
{{userbox
| border-c      = #333333
| id            = [[File:Academic_researcher.svg|70px|center]]
| id-c          = #ffffff
| info          = This user is a<br><span style="font-size:110%;word-wrap:pre">'''researcher or academic'''.</span>
| info-c        = #222222
| info-fc       = #ffffff
| info-lh       = 1.25
| info-s        = 10
}}
Academic researcher.svg
This user is a
researcher or academic.
{{userbox
| border-c      = purple
| id            = [[File:purple_ribbon_fibromyalgia.svg|40px|center]]
| id-c          = #ffffff
| info-s = 12
| info          = This user has<br >[[Fibromyalgia]].
| info-c        = #ffeeff
| id-a = center
| info-a = center
}}
Purple ribbon fibromyalgia.svg
This user has
Fibromyalgia.
{{userbox
| border-c      = #ff0000
| id            = [[File:Healthcare_1.png|55px|center]]
| id-c          = #ffffff
| info          = This person is a qualified<br >'''health care­ professional.'''
| border-s = 2
}}
Healthcare 1.png
This person is a qualified
health care­ professional.
{{userbox
| id            = [[File:Blue_ribbon_ME.svg|40px|center]]
| id-c          = #ffffff
| info          = This person lives with<br >[[Myalgic encephalomyelitis|Myalgic Encephalo­myelitis]].
| info-c        = #f6f6f6
}}
Blue ribbon ME.svg
This person lives with
Myalgic Encephalo­myelitis.
{{userbox
| border-c      = #aaaaaa
| id            = [[File:Brain_mind_bright.jpg|50px|center]]
| id-c          = #000000
| info          = This user supports<br >'''[[Mental health|Mental health]]'''<br >awareness.
| info-c        = #f6f6f6
}}
Brain mind bright.jpg
This user supports
Mental health
awareness.
{{userbox
| id            = [[File:Book_stack_color.png|40px|center]]
| id-c = #ffffff
| info          = This user is knowledgeable about<br >'''[[Multiple chemical sensitivity|Multiple chemical sensitivity]]'''
}}
Book stack color.png
This user is knowledgeable about
Multiple chemical sensitivity
{{userbox
| id            = [[File:Blue_ribbon_ME.svg|40px|center]]
| id-c = #ffffff 
| info          = This user fundraises for ­research ­into<br >[[Myalgic encephalomyelitis |Myalgic Encephalo­myelitis]].
}}
Blue ribbon ME.svg
This user fundraises ­for ­research into
Myalgic Encephalo­myelitis.
{{userbox
| border-c      = #333333
| id            = [[File:Chemistry.svg|45px|center ]]
| id-c          = #ffffff
| info          = This user is a ­<span style="font-size:125%">scientist</span>.
| info-c        = #222222
| info-s        = 10
| info-fc       = #ffffff
| info-lh       = 1.35
}}
Chemistry.svg
This user is a ­scientist.
{{userbox
| id            = [[File:Zebra_rare_disease.jpg|60px|center]]
| id-c          = #ffffff
| info          = This user has a<br><span style="font-size:125%">'''rare disease'''</span>.
| info-c         = #fefefe
| info-fc        = #222222
| border-c       = #000000
| border-s       = 2 
}}
Zebra rare disease.jpg
This user has a
rare disease.
{{userbox
| id            = CFS
| info          = This user has<br ><span style="font-size:125%">'''[[Chronic fatigue syndrome|Chronic ­Fatigue ­Syndrome]]'''</span>.
| id-a = center
}}

Line breaks[edit source]

Add invisible <code >­</code > in places where you would prefer a line break, but only if necessary.

Usage[edit source]

{{userbox
| bodyclass  = <!--Adds an HTML class to the entire template's HTML table, to for styling, etc.-->
| border-c   = <!--border color (default=id-c)-->
| border-s   = <!--border width in px (default=1, other widths may make userbox difficult to stack)-->
| float      = <!--left|right|none (default=left)-->
| id         = <!--image or text (images should not exceed 90x45px)-->
| id-a      = <!--horizontal alignment left/center/right/justify (default=center)-->
| id-c      = <!--background color-->
| id-fc     = <!--font color (default=white)-->
| id-h      = <!--box height in px, default=45-->
| id-lh     = <!--line height, default=1.25em-->
| id-op     = <!--other CSS parameters-->
| id-p      = <!--id cell padding (default=auto 1px auto 1px)-->
| id-s      = <!--text size in points (default=14)-->
| id-w      = <!--id box width in px (default=45)-->
| info-class  = <!--Adds HTML classto "info" table-row, for styling, etc.-->
| info       = <!--info text or image-->
| info-a     = <!--info horizontal alignment left/center/right/justify (default=left)-->
| info-c     = <!--info background color-->
| info-fc    = <!--info font color-->
| info-lh    = <!--info line height (default=1.25em)-->
| info-op    = <!--info other CSS parameters-->
| info-p     = <!--info padding (default=auto 1px auto 1px)-->
| info-s     = <!--info text size in points (default=8)-->
| nocat      = <!--block page category declarations; (default=false)-->
| usercategory  = <!--user category (optional, unlinked and without the "Category:" part)-->
| usercategory2 = 
| usercategory3 = 
| usercategory4 = 
| usercategory5 =
}}
  • All parameters are optional
  • Images should normally be scaled to x45px or less.

Most HTML-based tables use only a handful of these attributes. The following subset can be used to quickly convert an HTML userbox into the format used here:

{{userbox
| border-c      = 
| id            = 
| id-c          = 
| id-fc         = 
| id-s          = 
| info          = 
| info-c        = 
| info-fc       = 
| info-lh       = 
| info-s        = 
}}


See also[edit source]