Template:Infobox: Difference between revisions

From Spring
Jump to navigationJump to search
mNo edit summary
m updating... hope this works.
Line 1: Line 1:
<includeonly>
<includeonly>{|style="margin-top:15px; background:{{{color|rgba(200,200,255,0.5)}}}; border: 1px solid rgba(0,0,0,0.5); border-radius: 12px 12px 12px 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.5), inset 0 10px 8px rgba(255,255,255,0.3);" cellpadding="5"
{|style="margin-top:15px; background:{{{color|rgba(155,155,0,1.0)}}}; border: 1px solid rgba(0,0,0,0.5); border-radius: 12px 12px 12px 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.5), inset 0 10px 8px rgba(255,255,255,0.3);" |
! colspan="2" align="center"|{{{title|title}}}
|
|-
<center>'''{{{title|Title}}}'''</center>
|[[Image:{{{icon|172px-Symbol comment vote.svg.png}}}|{{{icon-size|24}}}px]]
{{{content|content}}}
|{{{body|body}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
A template for displaying helpful information in a separate box
A template for displaying information in a coloured box with optional icon


{{infobox}}</noinclude>
'''Usage:'''
<pre>{{infobox}}</pre>
result:
{{infobox}}
 
'''Usage:'''
<pre>{{infobox|title=My Info Box|body=chuck content here|color=rgb(0,0,0,1)|icon=Springlobby 64.png|icon-size=64}}</pre>
result:
{{infobox|title=My Info Box|body=chuck content here|color=rgba(0,0,0,1)|icon=Springlobby 64.png|icon-size=64}}

Revision as of 06:41, 13 December 2012

A template for displaying information in a coloured box with optional icon

Usage:

{{infobox}}

result:

title
body

Usage:

{{infobox|title=My Info Box|body=chuck content here|color=rgb(0,0,0,1)|icon=Springlobby 64.png|icon-size=64}}

result:

My Info Box
chuck content here