Template:Info: Difference between revisions

From KDE TechBase
(typo)
m (Update from userbase)
 
Line 1: Line 1:
{{Box1|2={{{2|Information}}}|3=[[Image:Dialog-information.png|left|40px|link=]]|4=alert-success|1={{{1}}} }}
{{Box|2={{#if: {{{2|}}} | {{{2}}} | Information }}
<noinclude>
|3=[[Image:Dialog-information.png|left|40px|link=]]
This template displays an info box in the page. Syntax: <code><nowiki>{{Info|2=title|1=text}}</nowiki></code>
|1={{{1}}}
# The body of the box
|4=alert-info
# (optional) the title of the box - Translators: Consider creating a translated version of this template instead of using this parameter every time.
}}<noinclude>
----
Displays an information box. Parameters
# Text of the main body
# (optional) Title of the box (default: Information)


Example: {{Input|1=<nowiki>{{Info|1=This is an info box.}}</nowiki>}}
Example: <nowiki>{{Info|This is an info box}}</nowiki> gives
{{Info|1=This is an info box.}}
 
{{Info|This is an info box}}
 
Code:<br /><br />
<nowiki>{{Box|2={{#if: {{{2|}}} | {{{2}}} | Information }}</nowiki><br />
<nowiki>|3=[[Image:Dialog-information.png|left|40px|link=]]</nowiki><br />
<nowiki>|1={{{1}}}</nowiki><br />
<nowiki>|4=alert-success</nowiki><br />
<nowiki>}}</nowiki><br />


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Latest revision as of 21:30, 9 August 2019

Information
{{{1}}}

Displays an information box. Parameters

  1. Text of the main body
  2. (optional) Title of the box (default: Information)

Example: {{Info|This is an info box}} gives

Information
This is an info box


Code:

{{Box|2={{#if: {{{2|}}} | {{{2}}} | Information }}
|3=[[Image:Dialog-information.png|left|40px|link=]]
|1={{{1}}}
|4=alert-success
}}