Cambios

Saltar a: navegación, buscar

Plantilla:Msgbox/doc

2325 bytes añadidos, 11:14 8 jul 2014
Página creada con «{{doc/start}} {{Protected|template|talkpage=Template talk:Msgbox}} === Basic usage === <pre style="width: 360px;"> {{msgbox | title = This is a normal message box | text = ...»
{{doc/start}}
{{Protected|template|talkpage=Template talk:Msgbox}}
=== Basic usage ===
<pre style="width: 360px;">
{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
</pre>

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

=== Mini usage ===
<pre style="width: 740px;">
{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}
</pre>

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

=== Advanced usage ===
<pre style="width: 400px;">
{{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 = box-shadow: 0px 0px 6px #888;
}}
</pre>

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

<pre style="width: 525px;">
{{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 = Bot.png
| css = box-shadow: 0px 0px 6px #888;
}}
</pre>

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 = box-shadow: 0px 0px 6px #888 | image = Bot.png}}

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

=== Advanced Mini usage ===
<pre style="width: 895px;">{{msgbox
| mini = 1
| image = Bot.png
| bgcol = #eef
| linecol = #ddf
| css = 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.
}}</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 = box-shadow: 0px 0px 6px #888;| image = Bot.png}}
This can also have a custom image size.
{{doc/end}}<noinclude>
[[fr:Modèle:Msgbox/doc]]
</noinclude>
2712
ediciones

Menú de navegación