Difference between revisions of "Template:Box1"

Jump to: navigation, search
(typo)
(added example)
Line 8: Line 8:
 
----
 
----
 
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 18:
 
#* ''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.

Revision as of 07:43, 27 August 2012

{{{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.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal
http://techbase.kde.org/index.php?title=Template:Box1&diff=prev&oldid=74944
techbase.kde.org
crawl=CC-MAIN-2014-15
34070
application/http; msgtype=response
sha1:JLFW74J7GPW5NIKE7O5U4527XJBMCZJD
<urn:uuid:d3824626-e10c-41f1-bd17-0ceb71ca18e4>
2014-04-18T14:10:16Z
199.83.128.99
sha1:GAORIYDRPYEACWOMLZXOX224C4JIVZFC
<urn:uuid:e52b1a57-7dd6-45b0-b4e5-906a27293479>
http://techbase.kde.org/index.php?title=Template:Box1&diff=prev&oldid=74944
length
response
<urn:uuid:1e53a602-9880-4c4d-8b3b-eb290a8d1b7f>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf