Difference between revisions of "Template:InfoBox"

From Hackerspace ACKspace
Jump to: navigation, search
(Created page with "<noinclude> This is the "Infobox" template. It should be called in the following format: <pre> {{InfoBox |Type= |Image= |Title= |Text= |Float= |Width= }} </pre> Edit the page to ...")
 
(first switch statement (test))
Line 14: Line 14:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div style="border: 2px dashed #ccc; padding: 1em; text-align:center; background: ;width: {{{Width}}}; float: {{{Float}}}">
+
<div style="border: 2px
 +
{{#switch:
 +
  {{lc:
 +
    {{{Type|¬}}}
 +
  }}
 +
  |¬|no      = dashed #ccc
 +
  ||alert    = solid red
 +
}}
 +
 
 +
 
 +
 
 +
 
 +
 
 +
; padding: 1em; text-align:center; background: ;width: {{{Width}}}; float: {{{Float}}}">
 
   <div style="font-weight: bold">{{{Title|}}}</div>
 
   <div style="font-weight: bold">{{{Title|}}}</div>
 
   <div style="">{{{Text|}}}</div>
 
   <div style="">{{{Text|}}}</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 13:52, 4 September 2011

This is the "Infobox" template. It should be called in the following format:

{{InfoBox
|Type=
|Image=
|Title=
|Text=
|Float=
|Width=
}}

Edit the page to see the template text.