Template:Miragebox/doc: Difference between revisions
No edit summary |
|||
Line 8: | Line 8: | ||
| imageright = [[Image:Some image.svg|40px]] | | imageright = [[Image:Some image.svg|40px]] | ||
| header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
| signature = Your | | signature = Your signature | ||
| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | ||
}} | }} | ||
Line 22: | Line 22: | ||
<pre> | <pre> | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
}} | }} | ||
</pre> | </pre> | ||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
}} | }} | ||
Line 34: | Line 34: | ||
<pre> | <pre> | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text. This template will automatically add comma at the end of your last sentence | ||
}} | }} | ||
</pre> | </pre> | ||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text. This template will automatically add comma at the end of your last sentence | ||
}} | }} | ||
Line 52: | Line 52: | ||
<pre> | <pre> | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|image = [[Image:Info non-talk.png|40px]] | | image = [[Image:Info non-talk.png|40px]] | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
}} | }} | ||
</pre> | </pre> | ||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|image = [[Image:Info non-talk.png|40px]] | | image = [[Image:Info non-talk.png|40px]] | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
}} | }} | ||
Line 73: | Line 73: | ||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|image = none | | image = none | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
}} | }} | ||
*'''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. <code><nowiki>image = </nowiki></code> | *'''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. <code><nowiki>image = </nowiki></code> | ||
<pre> | |||
{{Mirage | |||
| style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | |||
| image = | |||
| header = Mirage headline | |||
| text = This is your custom text | |||
}} | |||
</pre> | |||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|image = | | image = | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
}} | }} | ||
Line 92: | Line 100: | ||
<pre> | <pre> | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
|imageright = [[File:Glycoprotein.png|50px]] | | imageright = [[File:Glycoprotein.png|50px]] | ||
|header = Mirage headline | | header = Mirage headline | ||
| | | text = This is your custom text | ||
}} | |||
</pre> | |||
:results in | |||
{{Mirage | |||
| style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | |||
| imageright = [[File:Glycoprotein.png|50px]] | |||
| header = Mirage headline | |||
| text = This is your custom text | |||
}} | |||
=== ''signature'' === | |||
<pre> | |||
{{Mirage | |||
| style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | |||
| header = Mirage headline | |||
| text = This is your custom text | |||
| signature = Your signature | |||
}} | }} | ||
</pre> | </pre> | ||
:results in | |||
{{Mirage | |||
| style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | |||
| header = Mirage headline | |||
| text = This is your custom text | |||
| signature = Me | |||
}} | |||
=== ''date'' === | |||
<pre> | |||
{{Mirage | |||
| style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | |||
| header = Mirage headline | |||
| text = This is your custom text | |||
| signature = Your signature | |||
| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | |||
}} | |||
</pre> | |||
:results in | :results in | ||
{{Mirage | {{Mirage | ||
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | ||
| header = Mirage headline | |||
|header = Mirage headline | | text = This is your custom text | ||
| | | signature = Me | ||
| date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | |||
}} | }} |
Revision as of 18:57, 21 November 2019
Common parameters
The box below shows the most common parameters that are accepted by {{Mirage}}
template. The purpose of each is described below.
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | image = none/blank/[[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | header = Mirage headline | text = This is your custom text | signature = Your signature | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
style
Default Mirage template {{Mirage}}
- results in
. |
Use CSS3 to customize the style of this template.
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; }}
- results in
. |
message
Add your custom message using parameters header and detail.
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | header = Mirage headline | text = This is your custom text. This template will automatically add comma at the end of your last sentence }}
- results in
Mirage headline This is your custom text. This template will automatically add comma at the end of your last sentence. |
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]]
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | image = [[Image:Info non-talk.png|40px]] | header = Mirage headline | text = This is your custom text }}
- results in
Mirage headline This is your custom text. |
- No parameter = means that no image parameter is given and the template uses a default Mirage image.
- An image = usual width of an image is 40px - 50px.
- none = means that no image is used.
image = none
- results in
Mirage headline This is your custom text. |
- 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 =
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | image = | header = Mirage headline | text = This is your custom text }}
- results in
|
Mirage headline This is your custom text. |
imageright
To display image at the right parameter imageright can be used imageright = [[Image:Some image.svg|40px]]
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | imageright = [[File:Glycoprotein.png|50px]] | header = Mirage headline | text = This is your custom text }}
- results in
Mirage headline This is your custom text. |
signature
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | header = Mirage headline | text = This is your custom text | signature = Your signature }}
- results in
Mirage headline This is your custom text. Me |
date
{{Mirage | style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px; | header = Mirage headline | text = This is your custom text | signature = Your signature | date = {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
- results in
Mirage headline This is your custom text. Me (July 2024) |