Difference between revisions of "Template:InfoBox"

From Casio Universal Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div id="TemplateInfoBox" >
+
<div id="TemplateInfoBox" {{#if:{{{float|}}}|style="float:{{{float}}}"}}>
 
<div {{#if:{{{TitleStyle|}}}| style="{{{TitleStyle}}}"}}>{{{title|{{PAGENAME}}}}}</div>
 
<div {{#if:{{{TitleStyle|}}}| style="{{{TitleStyle}}}"}}>{{{title|{{PAGENAME}}}}}</div>
 
<table {{#if:{{{TableStyle|}}}| style="{{{TableStyle}}}"}}><!--
 
<table {{#if:{{{TableStyle|}}}| style="{{{TableStyle}}}"}}><!--
Line 227: Line 227:
 
<pre>{{InfoBox}}</pre>
 
<pre>{{InfoBox}}</pre>
  
Result: <div style="width:300px;">{{InfoBox}}</div>
+
Result: {{InfoBox|float=left}}
</noinclude>
+
 
 
=== Image ===
 
=== Image ===
 
----
 
----
Line 238: Line 238:
 
}}
 
}}
 
</pre>
 
</pre>
result:<div style="width:300px;">{{InfoBox|image=Template_InfoBox_ExampleImage.jpg|caption=The men in this picture are strange.}}</div>
+
result:{{InfoBox|image=Template_InfoBox_ExampleImage.jpg|caption=The men in this picture are strange.|float=left}}
  
 
=== Title ===
 
=== Title ===
 
----
 
----
 
By default this template takes the page title as the title, but you can change it.
 
By default this template takes the page title as the title, but you can change it.
 +
</noinclude>

Revision as of 07:05, May 27, 2012


InfoBox
Template InfoBox ExampleImage.jpg
This is a caption
labelData
Date of creation26.05.12

The InfoBox lets you create a table to display the general technical information about the subject of the page, as on the right.

InfoBox Dedicated

This type of InfsoBox is dedicated to a theme. If you find the name of your page in these subjects prefer this type of InfsoBo rather than personalized. list of InfoBox Dedicated

Personalized InfoBox

Minimal call


You do not need to specify parameters, but it has no interest because only the title and an early picture appears :

{{InfoBox}}

Result:

InfoBox


Image


It is highly recommended if possible to add an image. If it is more than 200px wide, it will be reduced to this size. You must add a caption.

{{InfoBox
|image=Template_InfoBox_ExampleImage.jpg
|caption=The men in this picture are strange.
}}

result:

InfoBox
Template InfoBox ExampleImage.jpg
The men in this picture are strange.


Title


By default this template takes the page title as the title, but you can change it.