Difference between revisions of "Template:InfoBox"

From Hackerspace ACKspace
Jump to: navigation, search
(Undo revision 2437 by Eagle00789 (talk))
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Discuss" template.
+
This is the "Infobox" template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{discuss}}
+
{{InfoBox
 +
|Type={[normal]|alert|featured}
 +
|Image=
 +
|Title=
 +
|Text=
 +
|Float={left|right|[none]|inherit}
 +
|Clear={left|right|both|[none]|inherit}
 +
|Width=
 +
|Color=
 +
|Background=
 +
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
#[[Talk:{{PAGENAME}}|Overige items dumpen op deze discussiepagina]]
+
<div style="border:
 +
{{#switch:
 +
  {{lc:
 +
    {{{Type|¬}}}
 +
  }}
 +
  |¬|normal  = 2px dashed #ccc;
 +
  ||alert    = 2px solid red;
 +
  ||featured  = 3px dashed #99f;
 +
}}
 +
margin: 0.5em; padding: 1em; text-align:center; background: {{{Background}}}; color: {{{Color}}}; width: {{{Width}}}; float: {{{Float|inherit}}}; clear: {{{Clear|inherit}}};">
 +
  <div style="font-weight: bold">{{{Title|}}}</div>
 +
  <div style="">{{{Text|}}}</div>
 +
</div>
 
</includeonly>
 
</includeonly>

Revision as of 22:09, 9 June 2012

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

{{InfoBox
|Type={[normal]|alert|featured}
|Image=
|Title=
|Text=
|Float={left|right|[none]|inherit}
|Clear={left|right|both|[none]|inherit}
|Width=
|Color=
|Background=
}}

Edit the page to see the template text.