Difference between revisions of "Template:Imbox"

From Shmups Wiki -- The Digital Library of Shooting Games
Jump to navigation Jump to search
(Created page with "<!-- TODO: finish this template and write usage docs --> <div style="border: solid #8888AA 3px; background-color: #F7F8FF; padding: 5px; width: 80%; margin: auto;"> {| cellpad...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- TODO: finish this template and write usage docs -->
 
 
<div style="border: solid #8888AA 3px; background-color: #F7F8FF; padding: 5px; width: 80%; margin: auto;">
 
<div style="border: solid #8888AA 3px; background-color: #F7F8FF; padding: 5px; width: 80%; margin: auto;">
 
{| cellpadding="5"
 
{| cellpadding="5"
| [[File:{{{image|}}}|x40px]]
+
| [[File:{{{image}}}|x40px]]
| {{{message-text|}}}
+
| {{{message-text}}}{{#if: {{{additional-text|}}} |<br/><br/>{{{additional-text}}}}}
 
 
{{{additional-text|}}}
 
 
|}
 
|}
 
</div>
 
</div>
 +
<noinclude>{{clear}}{{doc}}</noinclude>

Latest revision as of 18:01, 6 December 2020

[[File:{{{image}}}|x40px]] {{{message-text}}}


Display an image message box.

Usage

{{imbox
| image = image.png
| message-text = This is my fancy message box.
| additional-text = This is some more text that I wanted included. # optional
}}

Required Arguments

image

File name of an image or icon that exists on Shmups Wiki, excluding the File: prefix. This image will be limited to a height of 40 pixels.

message-text

This is the body of your message. Standard wiki markup is allowed.

Optional Arguments

additional-text

This is an optional second body of text that one might wish to include in the message box. Standard wiki markup is allowed.

Example

Let's use Template:CC-BY-SA-4.0 as an example for how to use imbox.

text:

{{imbox
| image = sitemeta-cc-by-sa.png
| message-text = This work is licensed under a [https://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International License].
}}

renders: