Template:Miragebox/doc

From GlyGen Wiki
Revision as of 17:42, 21 November 2019 by Tvwillia (talk | contribs) (Created page with "== Common parameters == The box below shows the most common parameters that are accepted by <code><nowiki>{{Mirage}}</nowiki></code> template. The purpose of each is describe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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;
|header = Mirage headline
|detail = This is your custom text. This template will automatically add coma at the end of your last sentence
}}

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
|detail = This is your custom text. This template will automatically add coma 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]]

{{Mirage
|style = background-color: #F79646; border:2px solid #B66D31; border-radius: 15px;
|image = [[Image:Info non-talk.png|40px]]
|header = Mirage headline
|detail = This is your custom text. This template will automatically add coma at the end of your last sentence
}}
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 = blank
results in

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
|detail = This is your custom text. This template will automatically add coma at the end of your last sentence
}}
results in