Template:Infobox: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
m rem space
Datiswous (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<div style="padding: 0.4em; border: {{{border|2px dashed #402020}}}; background: {{{bg|#e0e0e0}}}; text-align: center; color: {{{fg|#000000}}}">
{{{text|Please set the text parameter.}}}
</div>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Line 13: Line 8:
  Message to displayed here.
  Message to displayed here.
  }}</nowiki>
  }}</nowiki>
=== Looks like this: ===
<div style="margin-top: 0em; margin-bottom: 0.4em; padding: 1em; border: {{{border|1px dashed #402020}}}; background: {{{bg|#e0e0e0}}}; text-align: {{{align|center}}}; color: {{{fg|#000000}}}">Message to displayed here.</div>


=== Parameters ===
=== Parameters ===
Line 44: Line 44:
| <nowiki>{{infobox|border=2px dashed red|text=Warning!}}</nowiki>
| <nowiki>{{infobox|border=2px dashed red|text=Warning!}}</nowiki>
| Optional. The border width, style and color.
| Optional. The border width, style and color.
|-
|align
| <nowiki>{{infobox|align=left|text=Warning!}}</nowiki>
| Optional. The text-alignment, e.g. left, right or center


|}
|}
</noinclude>
[[Category:Templates]]
</noinclude><includeonly><div style="margin-top: 0em; margin-bottom: 0.4em; padding: 1em; border: {{{border|1px dashed #402020}}}; background: {{{bg|#e0e0e0}}}; text-align: {{{align|center}}}; color: {{{fg|#000000}}}">{{{text|{{{1}}}|Please set the text parameter.}}}</div></includeonly>

Latest revision as of 12:31, 23 November 2022

Usage

Include this template at the top of some page like so:

 {{infobox|text=
 Message to displayed here.
 }}


Looks like this:

Message to displayed here.


Parameters

This template takes the following parameters:

Name Example Description
text {{infobox|text=This article needs cleaning up.}} Mandatory. The text to display.
bg {{infobox|bg=#404040|text=Warning!}} Optional. The background color.
fg {{infobox|fg=#ff3030|text=Warning!}} Optional. The foreground (or text) color.
border {{infobox|border=2px dashed red|text=Warning!}} Optional. The border width, style and color.
align {{infobox|align=left|text=Warning!}} Optional. The text-alignment, e.g. left, right or center