Difference between revisions of "Template:Box1"

Jump to: navigation, search
(typo)
m
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
<table><tr><th>{{{2}}}</th></tr><tr><td>{{{1}}}</td></tr></table>
 
<table><tr><th>{{{2}}}</th></tr><tr><td>{{{1}}}</td></tr></table>
 
<div class="clearfix"></div>
 
<div class="clearfix"></div>
</div>
+
</div><noinclude>
<noinclude>
+
 
----
 
----
 
Use this template for content that needs to be specially emphasized. Syntax: {{Input|1=<nowiki>{{Box1|2=Title|3=Image|4=color|1=text}}</nowiki>}}
 
Use this template for content that needs to be specially emphasized. Syntax: {{Input|1=<nowiki>{{Box1|2=Title|3=Image|4=color|1=text}}</nowiki>}}
{{Box1|2=Title|3=Image|1=text}}
 
  
 
The template takes four arguments:
 
The template takes four arguments:
Line 19: Line 17:
 
#* ''alert-success'' gives green
 
#* ''alert-success'' gives green
 
#* ''alert-error'' gives red
 
#* ''alert-error'' gives red
 +
 +
Example: {{Input|1=<nowiki>{{Box1|2=Example|3=[[Image:Dialog-information.png|left|40px|link=]]|1=This is an example box}}</nowiki>}}
 +
{{Box1|2=Example|3=[[Image:Dialog-information.png|left|40px|link=]]|1=This is an example box}}
  
 
Please avoid using this template directly in pages. If you need something that doesn't already exist, consider making a new template based on this template. That way it will be much easier to maintain TechBase, and the risk of introducing unintended effects on your page is reduced considerably.
 
Please avoid using this template directly in pages. If you need something that doesn't already exist, consider making a new template based on this template. That way it will be much easier to maintain TechBase, and the risk of introducing unintended effects on your page is reduced considerably.

Latest revision as of 21:12, 28 April 2013

{{{3}}}
 
{{{2}}}
{{{1}}}

Use this template for content that needs to be specially emphasized. Syntax:
{{Box1|2=Title|3=Image|4=color|1=text}}

The template takes four arguments:

  1. The text of the main body of the box
  2. The title of the box
  3. An image file to be displayed in the top left of the box - the image size should be 40 x 40
  4. The background color (optional): possible values
    • default is yellow
    • alert-info gives blue - use with care; it doesn't work well with links
    • alert-success gives green
    • alert-error gives red
Example:
{{Box1|2=Example|3=[[Image:Dialog-information.png|left|40px|link=]]|1=This is an example box}}
Dialog-information.png
 
Example
This is an example box

Please avoid using this template directly in pages. If you need something that doesn't already exist, consider making a new template based on this template. That way it will be much easier to maintain TechBase, and the risk of introducing unintended effects on your page is reduced considerably.

Existing templates based on this template: Template:Info, Template:Note, Template:Tip, Template:Warning, Template:Remember.


This page was last modified on 28 April 2013, at 21:12. This page has been accessed 1,758 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal