Template:Custominfobox/doc: Difference between revisions
(→date) |
No edit summary |
||
Line 115: | Line 115: | ||
;Images available on Custominfobox | ;Images available on Custominfobox | ||
<pre> | <pre> | ||
| serious | | serious = [[Image:Stop hand nuvola.svg|40px]] | ||
| content | | content = [[Image:Emblem-important.svg|40px]] | ||
| style | | style = [[Image:Broom icon.svg|40px]] | ||
| merge | | merge = [[Image:Merge-split-transwiki default.svg]] | ||
| move | | move = [[Image:Ambox_move.png|40px]] | ||
| blank | | blank = [[Image:Spacer.gif]] | ||
| warning | | warning = [[File:Ambox warning orange.svg|40px]] | ||
| delete | | delete = [[File:Ambox warning red.svg|40px]] | ||
| speedy | | speedy = [[File:Ambox warning red.svg|40px]] | ||
| protection = [[Image:Ambox_protection.png|40px]] | | protection = [[Image:Ambox_protection.png|40px]] | ||
| notice | | notice = [[Image:Info non-talk.png|40px]] | ||
| #default = {{{image|[[Image:Info non-talk.png|40px]]}}} | | #default = {{{image|[[Image:Info non-talk.png|40px]]}}} | ||
</pre> | </pre> | ||
Line 132: | Line 132: | ||
{{Custominfobox | {{Custominfobox | ||
| image = [[Image:Broom icon.svg|40px]] | | image = [[Image:Broom icon.svg|40px]] | ||
| text = This is <code><nowiki>| image = [[Image:Broom icon.svg|40px]]</nowiki></code> | | text = This is <code><nowiki>| image = [[Image:Broom icon.svg|40px]]</nowiki></code> | ||
}} | }} | ||
{{Custominfobox | {{Custominfobox | ||
| image = style | | image = style | ||
| text = This is <code><nowiki>| image = style</nowiki></code> | | text = This is <code><nowiki>| image = style</nowiki></code> | ||
}} | }} | ||
Line 158: | Line 158: | ||
{{Custominfobox | {{Custominfobox | ||
| image = none | | image = none | ||
| text = This is <code><nowiki>image = none</nowiki></code> | | text = This is <code><nowiki>image = none</nowiki></code> | ||
}} | }} | ||
Line 165: | Line 165: | ||
{{Custominfobox | {{Custominfobox | ||
| image = | | image = | ||
| text = This is a infobox with out image. <code><nowiki>image = </nowiki></code> | | text = This is a infobox with out image. <code><nowiki>image = </nowiki></code> | ||
}} | }} | ||
Line 173: | Line 173: | ||
{{Customeinfobox | {{Customeinfobox | ||
| imageright = [[Image:Emblem-important.svg|40px]] | | imageright = [[Image:Emblem-important.svg|40px]] | ||
| text = This is | imageright = [[Image:Emblem-important.svg|40px]] | | text = This is | imageright = [[Image:Emblem-important.svg|40px]] | ||
}} | }} | ||
</pre> | </pre> | ||
Line 180: | Line 180: | ||
{{Custominfobox | {{Custominfobox | ||
| imageright = [[Image:Emblem-important.svg|40px]] | | imageright = [[Image:Emblem-important.svg|40px]] | ||
| text = This is <code><nowiki>| imageright = [[Image:Emblem-important.svg|40px]]</nowiki></code> | | text = This is <code><nowiki>| imageright = [[Image:Emblem-important.svg|40px]]</nowiki></code> | ||
}} | }} | ||
Line 203: | Line 203: | ||
=== ''date'' === | === ''date'' === | ||
Either one of these <code><nowiki>| date =</nowiki></code> parameters will display date. | Either one of these <code><nowiki>| date =</nowiki></code> parameters which will display date. | ||
<pre> | <pre> | ||
{{Custominfobox | {{Custominfobox | ||
| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | ||
| date | | date = Nov 22, 2019 | ||
}} | }} | ||
</pre> | </pre> | ||
Line 215: | Line 215: | ||
| text = This is <code><nowiki>| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}</nowiki></code> | | text = This is <code><nowiki>| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}</nowiki></code> | ||
}} | }} | ||
{{Custominfobox | {{Custominfobox | ||
| date = Nov 22, 2019 | | date = Nov 22, 2019 | ||
| text = This is <code><nowiki>| date = Nov 22, 2019</nowiki></code> | | text = This is <code><nowiki>| date = Nov 22, 2019</nowiki></code> | ||
}} | }} | ||
Revision as of 00:45, 23 November 2019
Common parameters
The box below shows the most common parameters that are accepted by {{Custominfobox}}
template. The purpose of each is described below.
{{Custominfobox | type = serious/content/style/merge/move/blank/warning/delete/speedy/protection/notice by default | stylebox = border: 2px solid #B66D31; border-radius: 15px; background-color: #f28500; | borderwidth = 1px; | borderstyle = solid/dashed/any border-style value; | borderradius = 15px/10px/5px; | bordercolor = #B66D31;/orange; | boxcolor = #f28500/orange; | image = none/blank/[[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | text = The message body text | message = warning/expand/attention | detail = with: my details | signature = Your Name | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
default template
Default Mirage template {{Customeinfobox}}
- results in
This section needs an article. |
type
The | type =
parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.
type=speedy – Speedy deletion issues, such as patent nonsense and vandalism. |
type=delete – Deletion issues, such as article for deletion and proposed deletion.. |
type=warning – Warn about some issues on the page. |
type=serious – Stop hand. Preventing from doing a specific action.. |
type=content – Content issues, such as POV and globalize. |
type=style – Style issues, such as cleanup and underlinked. |
type=blank – Plain text without image. |
type=notice – Article notices. |
type=move – Merge, split and transwiki proposals, such as split and copy to Wiktionary. |
type=merge – Merge, split and transwiki proposals. |
type=protection – Protection notices, such as pp-vandalism and pp-protected. |
If no type parameter is given the template defaults to |type=notice
.
style
You can customize a infobox style by adding CSS3 to parameters below.
Using |stylebox =
parameter you can add any CSS style to this {{Custominfobox}}
. For an example, |stylebox = border: 2px solid #B66D31; border-radius: 15px; background-color: #f28500;
Also you can change {{Custominfobox}}
style by using parametrs below.
{{Custominfobox | borderwidth = 2px; | borderstyle = solid; | borderradius = 10px; | bordercolor = #B8E0FF; | boxcolor = #E7F5FF; | text = This is a custom info box style }}
- results in
This is a custom info box style. |
image
You can choose a specific image to use for the template by using the image parameter.
| image = none/blank/[[Image:Some image.svg|40px]]
- Images available on Custominfobox
| serious = [[Image:Stop hand nuvola.svg|40px]] | content = [[Image:Emblem-important.svg|40px]] | style = [[Image:Broom icon.svg|40px]] | merge = [[Image:Merge-split-transwiki default.svg]] | move = [[Image:Ambox_move.png|40px]] | blank = [[Image:Spacer.gif]] | warning = [[File:Ambox warning orange.svg|40px]] | delete = [[File:Ambox warning red.svg|40px]] | speedy = [[File:Ambox warning red.svg|40px]] | protection = [[Image:Ambox_protection.png|40px]] | notice = [[Image:Info non-talk.png|40px]] | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
- results in
This is | image = [[Image:Broom icon.svg|40px]] . |
This is | image = style . |
- No parameter = means that no image parameter is given and template uses a default image. In this case
|type = notice
.
{{Custominfobox | text = Template uses a default image. }}
- results in
Template uses a default image.. |
- An image = usual width of an image is 40px - 50px.
- none = means that no image is used.
image = none
- results in
This is image = none . |
- blank = means that no image is used but an empty area the same size as a default image is used, which means that text in the message box gets aligned well with other article message boxes.
image =
- results in
|
This is a infobox with out image. image = . |
imageright
To display image at the right parameter imageright can be used imageright = [[Image:Some image.svg|40px]]
{{Customeinfobox | imageright = [[Image:Emblem-important.svg|40px]] | text = This is | imageright = [[Image:Emblem-important.svg|40px]] }}
- results in
This is | imageright = [[Image:Emblem-important.svg|40px]] . |
message
- text
- detail
To add your specific detail message, you have to call parameter
|detail=
Type {{Custominfobox|detail=the information on this page is inaccurate}}
This code will add period at the end of your message. {{#ifeq:{{{punctuation|{{{period|}}}}}}|no||.}}
- results in
This section needs an article with: the information on this page is inaccurate. (May 2019) |
signature
To add your name you have to use signature=
parameter.
Type {{Custominfobox|signature=Tatiana}}
- results in
This section needs an article with: my details. Tatiana |
date
Either one of these | date =
parameters which will display date.
{{Custominfobox | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | date = Nov 22, 2019 }}
- results in
This is | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} . (July 2024) |
This is | date = Nov 22, 2019 . (Nov 22, 2019) |