Template:Userinfo: Difference between revisions

From FasciPedia
Jump to navigation Jump to search
No edit summary
Tag: Reverted
m (Text replacement - "{{Documentation}}" to "{{Doc}}")
ย 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox userinfo | name = Your User Name | image = Example.jpg | caption = Placeholder image | date joined = 28 September 2017 | first template = [[Template:Infobox city|Infobox city]] | favorite template = [[Template:Infobox user|Infobox user]] | user rights = user | status = active | birth name = Your Real Name | birthday = 10 July | western zodiac = Cancer | eastern zodiac = Boar | element = Water | location = Out of nowhere | occupation = What you do off wiki | user header = Other things | label 1 = I edit | user 1 = barefoot | label 2 = OS | user 2 = Debian | label 3 = DE | user 3 = KDE | label 4 = Browser | user 4 = Firefox-esr | label 5 = Text editor | user 5 = Geany | label 6 = | user 6 = | label 7 = | user 7 = | label 8 = | user 8 = | label 9 = | user 9 = | label 10 = | user 10 = }}
{|style="background: #{{#switch:{{{border|{{{background|}}} }}}
{|style="background: #{{#switch:{{{border|{{{background|}}} }}}
ย ย  | redย  ย  ย  = EF2929
ย ย  | redย  ย  ย  = EF2929
Line 22: Line 17:
|-
|-
{{#if:{{{name|}}}|! colspan="2" style="font-size:130%;" {{!}} '''{{{name}}}'''
{{#if:{{{name|}}}|! colspan="2" style="font-size:130%;" {{!}} '''{{{name}}}'''
{{!}}-}}<br>{{#if:{{{image|}}}|style="width:60px" {{!}} {{{image}}}
{{!}}-}}
|{{#if:{{{image|}}}|style="width:60px" {{!}} {{{image}}}
{{!}}|{{#if:{{{image_name|}}}| style="width:{{{image_size|50px}}}" {{!}} [[Image:{{{image_name}}}{{!}}{{{image_size|50px}}}]]
{{!}}|{{#if:{{{image_name|}}}| style="width:{{{image_size|50px}}}" {{!}} [[Image:{{{image_name}}}{{!}}{{{image_size|50px}}}]]
{{!}}|}} }}<span style="font-size:{{{text_size|95%}}}">{{#if:{{{type|}}}|{{{type}}}<span style="font-size:smaller">
{{!}}|}} }}<span style="font-size:{{{text_size|95%}}}">{{#if:{{{type|}}}|{{{type}}}<span style="font-size:smaller">
{{{info|}}}</span>|{{{text}}}{{#if:{{{info|}}}|<span style="font-size:smaller">
{{{info|}}}</span>|{{{text}}}{{#if:{{{info|}}}|<span style="font-size:smaller">
{{{info|}}}</span>|}}</span>}}
{{{info|}}}</span>|}}</span>}}
|}<noinclude>{{Documentation}}
|}<noinclude>{{Doc}}
</noinclude>
</noinclude>

Latest revision as of 21:16, 28 February 2024

{{{text}}}

[edit] [purge] Documentation

Empty syntax

Either use these parameters:

{{Userinfo
| background=
| name=
| text=
| info=
| image_name=
}}

or use Userinfo's parameters:

{{Userinfo
| image =
| border = 
| type =
| info =
}}

Description and usage

This is a iser information template to be used on user pages. It is an alternative to the traditional ambox style. Unlike the commonly used ambox template, it does not rely on css.

Named parameters

Content

|image_name=
image for use on the left (optional) - Example:Wiki.png
|text=
body of the template
|info=
list of extra info (optional)
|name=
Large bold name at the top of the template (optional)
|background=
background color (defaults to blue) - takes the following color names as well as hexadecimal colors
red
EF2929 (serious issue)
orange
F57900 (important issue)
yellow
FCE94F (mild issue)
green
73D216 (something good)
purple
CABEED
blue
D8E9FC
grey
eee

Style

The following parameters may be added if you wish to use something other than the defaults

|text_color=
takes hexadecimal colors (000 for black, fff for white) - Black by default, white if the background is red
|width=
defaults to 90%
|image_size=
defaults to 50px

Examples

Default

{{Userinfo
| text = I am text
| info = I am info
}}
I am text

I am info

Red + image

{{Userinfo
| image = [[Image:Example.jpg|50px]]
| background = red
| text = I am text
| info =
* I am info
| style = border:10px black solid;
}}
File:Example.jpg I am text
  • I am info

Ambox_2 parameters

{{Userinfo
| image_name = Example.jpg
| image_size = 25px
| background = red
| name = John Doe
| text = I am text
| info = I am info
| text_color = blue
| width = 50%
}}
John Doe
File:Example.jpg I am text

I am info

Other colors

Yellow

I am text
  • I am info

Green

I am text
  • I am info

Purple

I am text
  • I am info

Blue

I am text
  • I am info

Orange

I am text
  • I am info

Gray

I am text
  • I am info