Template:Miragebox/doc: Difference between revisions

From GlyGen Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| image     = none/blank/[[Image:Some image.svg|40px]]
| image       = none/blank/[[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| header     = Mirage headline
| header     = Mirage headline
| text       = This is your custom text
| text       = This is your custom text
| signature = Your signature
| signature   = Your signature
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
}}
}}
</pre>
</pre>
Line 23: Line 23:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
}}
}}
Line 29: Line 29:
:results in  
:results in  
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
}}
}}
Line 37: Line 37:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| 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
| 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  
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| 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
| text       = This is your custom text. This template will automatically add comma at the end of your last sentence
}}
}}


Line 57: Line 57:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| 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
| text       = This is your custom text
}}
}}
</pre>
</pre>
:results in  
:results in  
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| 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
| text       = This is your custom text
}}
}}


Line 80: Line 80:
:results in
:results in
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| image = none
| image       = none
| header = Mirage headline
| header     = Mirage headline
| text = This is your custom text
| text       = This is your custom text
}}
}}


Line 90: Line 90:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| image =  
| image       =  
| header = Mirage headline
| header     = Mirage headline
| text = This is your custom text
| text       = This is your custom text
}}
}}
</pre>
</pre>
:results in
:results in
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| image =  
| image       =  
| header = Mirage headline
| header     = Mirage headline
| text = This is your custom text
| text       = This is your custom text
}}
}}


Line 110: Line 110:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| imageright = [[File:Glycoprotein.png|50px]]
| imageright = [[File:Glycoprotein.png|50px]]
| header = Mirage headline
| header     = Mirage headline
| text = This is your custom text
| text       = This is your custom text
}}
}}
</pre>
</pre>
Line 120: Line 120:
:results in
:results in
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| imageright = [[File:Glycoprotein.png|50px]]
| imageright = [[File:Glycoprotein.png|50px]]
| header = Mirage headline
| header     = Mirage headline
| text = This is your custom text
| text       = This is your custom text
}}
}}


Line 130: Line 130:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| header     = Mirage headline
| header     = Mirage headline
| text       = This is your custom text
| text       = This is your custom text
| signature = Your signature
| signature   = Your signature
}}
}}
</pre>
</pre>
:results in
:results in
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| header     = Mirage headline
| header     = Mirage headline
| text       = This is your custom text
| text       = This is your custom text
| signature = Me
| signature   = Me
}}
}}


Line 149: Line 149:
<pre>
<pre>
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| header     = Mirage headline
| header     = Mirage headline
| text       = This is your custom text
| text       = This is your custom text
| signature = Your signature
| signature   = Your signature
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
}}
}}
</pre>
</pre>
:results in
:results in
{{Miragebox
{{Miragebox
| boxcolor = #F79646;  
| boxcolor   = #F79646;  
| bordercolor = #B66D31;
| bordercolor = #B66D31;
| header     = Mirage headline
| header     = Mirage headline
| text       = This is your custom text
| text       = This is your custom text
| signature = Tatiana
| signature   = Tatiana
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
| date       = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
}}
}}
[[Category:Glygen templates]]

Latest revision as of 20:44, 4 December 2019

Common parameters

The box below shows the most common parameters that are accepted by {{Mirage}} template. The purpose of each is described below.

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| 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 {{Miragebox}}

results in

Use CSS3 to customize the style of this template.

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
}}
results in

message

Add your custom message using parameters header and detail.

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| header      = Mirage headline
| text        = This is your custom text. This template will automatically add comma at the end of your last sentence
}}
results in

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]]

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| image       = [[Image:Info non-talk.png|40px]]
| header      = Mirage headline
| text        = This is your custom text
}}
results in
  • 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
  • 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 =
{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| image       = 
| header      = Mirage headline
| text        = This is your custom text
}}
results in

imageright

To display image at the right parameter imageright can be used imageright = [[Image:Some image.svg|40px]]

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| imageright  = [[File:Glycoprotein.png|50px]]
| header      = Mirage headline
| text        = This is your custom text
}}
results in

signature

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| header      = Mirage headline
| text        = This is your custom text
| signature   = Your signature
}}
results in

date

{{Miragebox
| boxcolor    = #F79646; 
| bordercolor = #B66D31;
| header      = Mirage headline
| text        = This is your custom text
| signature   = Your signature
| date        = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
}}
results in