Template:Userinfo/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Empty syntax== Either use Ambox_2's parameters: <pre> {{Ambox by background color | background= | title= | text= | info= | image_name= }} </pre> or use Ambox by color's parameters: <pre> {{ambox by color | image = | border = | type = | info = }} </pre> ==Description and usage== This is a meta-template used to create article management templates. It is an alternative to the traditional ambox style. Unlike the commonly used...") |
No edit summary |
||
Line 2: | Line 2: | ||
Either use Ambox_2's parameters: | Either use Ambox_2's parameters: | ||
<pre> | <pre> | ||
{{ | {{Userinfo | ||
| background= | | background= | ||
| title= | | title= | ||
Line 10: | Line 10: | ||
}} | }} | ||
</pre> | </pre> | ||
or use [[Template: | or use [[Template:Userinfo|Userinfo]]'s parameters: | ||
<pre> | <pre> | ||
{{ | {{Userinfo | ||
| image = | | image = | ||
| border = | | border = | ||
Line 21: | Line 21: | ||
==Description and usage== | ==Description and usage== | ||
This is a meta-template used to create article management templates. It is an alternative to the [[Template:Ambox|traditional ambox style]]. Unlike the commonly used ambox template, it does not rely on css. | This is a meta-template used to create article management templates. It is an alternative to the [[Template:Ambox|traditional ambox style]]. Unlike the commonly used ambox template, it does not rely on css. | ||
==Named parameters== | ==Named parameters== | ||
Line 30: | Line 28: | ||
; |text=: body of the template | ; |text=: body of the template | ||
; |info=: list of extra info (optional) | ; |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 | ; |background=: background color (defaults to blue) - takes the following color names as well as hexadecimal colors | ||
:; red : EF2929 (serious issue) | :; red : EF2929 (serious issue) | ||
Line 49: | Line 47: | ||
=== Default === | === Default === | ||
<pre> | <pre> | ||
{{ | {{Userinfo | ||
| text = I am text | | text = I am text | ||
| info = I am info | | info = I am info | ||
Line 55: | Line 53: | ||
</pre> | </pre> | ||
{{ | {{Userinfo | ||
| text = I am text | | text = I am text | ||
| info = I am info | | info = I am info | ||
Line 62: | Line 60: | ||
=== Red + image === | === Red + image === | ||
<pre> | <pre> | ||
{{ | {{Userinfo | ||
| image = [[Image:Example.jpg|50px]] | | image = [[Image:Example.jpg|50px]] | ||
| background = red | | background = red | ||
Line 72: | Line 70: | ||
</pre> | </pre> | ||
{{ | {{Userinfo | ||
| image = [[Image:Example.jpg|50px]] | | image = [[Image:Example.jpg|50px]] | ||
| border = red | | border = red | ||
Line 83: | Line 81: | ||
=== Ambox_2 parameters === | === Ambox_2 parameters === | ||
<pre> | <pre> | ||
{{ | {{Userinfo | ||
| image_name = Example.jpg | | image_name = Example.jpg | ||
| image_size = 25px | | image_size = 25px | ||
| background = red | | background = red | ||
| | | name = John Doe | ||
| text = I am text | | text = I am text | ||
| info = I am info | | info = I am info | ||
Line 95: | Line 93: | ||
</pre> | </pre> | ||
{{ | {{Userinfo | ||
| image_name = Example.jpg | | image_name = Example.jpg | ||
| image_size = 25px | | image_size = 25px | ||
| background = red | | background = red | ||
| | | name = John Doe | ||
| text = I am text | | text = I am text | ||
| info = I am info | | info = I am info |
Revision as of 21:32, 5 May 2022
Empty syntax
Either use Ambox_2's parameters:
{{Userinfo | background= | title= | text= | info= | image_name= }}
or use Userinfo's parameters:
{{Userinfo | image = | border = | type = | info = }}
Description and usage
This is a meta-template used to create article management templates. 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
|
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
|
Green
I am text
|
Purple
I am text
|
Blue
I am text
|
Orange
I am text
|
Gray
I am text
|