Template:Msgbox/doc: Difference between revisions

From TerraFirmaCraft Plus Wiki
Jump to navigation Jump to search
SpAnser (talk | contribs)
m 1 revision
 
Kittychanley (talk | contribs)
mNo edit summary
 
Line 45: Line 45:
| text = It has a discuss link, some custom CSS and a custom image
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| discuss = 1
| image = Bot.png
| image =  
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}
}}
Line 51: Line 51:


Will result in:
Will result in:
{{msgbox| bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link, some custom CSS and a custom image | discuss = 1 | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; | image = Bot.png}}
{{msgbox| bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link, some custom CSS and a custom image | discuss = 1 | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; | image = }}


A custom image size can also be specified with "imagewidth", for example: <code>imagewidth = 50px</code>
A custom image size can also be specified with "imagewidth", for example: <code>imagewidth = 50px</code>
Line 58: Line 58:
<pre style="width: 680px;">{{msgbox
<pre style="width: 680px;">{{msgbox
| mini = 1
| mini = 1
| image = Bot.png
| image =  
| bgcol = #eef
| bgcol = #eef
| linecol = #ddf
| linecol = #ddf
Line 65: Line 65:
}}</pre>
}}</pre>


Will result in: {{msgbox| mini = 1 | bgcol = #eef | linecol = #ddf | text = This is a mini message box, it is using similar settings as the box used in the advanced example above. | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; | image = Bot.png}}
Will result in: {{msgbox| mini = 1 | bgcol = #eef | linecol = #ddf | text = This is a mini message box, it is using similar settings as the box used in the advanced example above. | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888; | image = }}
This can also have a custom image size.
This can also have a custom image size.
{{doc/end}}<noinclude>
{{doc/end}}<noinclude>
[[fr:Modèle:Msgbox/doc]]
[[fr:Modèle:Msgbox/doc]]
</noinclude>
</noinclude>

Latest revision as of 04:43, 9 June 2015

Basic usage

{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}

Will result in:

This is a normal message box
With helpful and descriptive subtext

Mini usage

{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}

Will result in:

This is a mini message box with an information icon using Template:CommentSprite

Advanced usage

{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link and some custom CSS
| discuss = 1
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message box Discuss
It has a discuss link and some custom CSS
{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image = 
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message box Discuss
It has a discuss link, some custom CSS and a custom image

A custom image size can also be specified with "imagewidth", for example: imagewidth = 50px

Advanced Mini usage

{{msgbox
| mini = 1
| image = 
| bgcol = #eef
| linecol = #ddf
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}

Will result in:

This is a mini message box, it is using similar settings as the box used in the advanced example above.

This can also have a custom image size.

fr:Modèle:Msgbox/doc