m (Protected "Template:Example" [edit=sysop:move=sysop])
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>
 +
<div style="font-style:italic;text-align:center;padding:5px;clear:both;background-color:#d3c6ff;border:1px dotted #44339B">
 +
{{{Text|}}}
 +
<div style="border:1px solid #44339B; width:80%;margin:5px;background-color:#fff;margin:auto">
 +
[[Image:{{{Image|}}}]]
 +
</div>
 +
 
 +
</div>
 +
</includeonly><noinclude>
 
This is a template for printing CP Examples.
 
This is a template for printing CP Examples.
 
<pre>
 
<pre>
Line 5: Line 13:
 
|Image=
 
|Image=
 
|Text=
 
|Text=
 +
}
 +
</pre>
 +
 +
 +
====Example of usage====
 +
<pre>
 +
{Example
 +
|Image=SituationExampleDiagram.jpg
 +
|Text=Content of the Text field
 
}
 
}
 
</pre>
 
</pre>
Line 12: Line 29:
 
<div style="font-style:italic;text-align:center;padding:5px;clear:both;background-color:#d3c6ff;border:1px dotted #44339B">
 
<div style="font-style:italic;text-align:center;padding:5px;clear:both;background-color:#d3c6ff;border:1px dotted #44339B">
 
Content of the Text field
 
Content of the Text field
<div style="border:1px solid #44339B; width:80%;background-color:#fff;">
+
<div style="border:1px solid #44339B; width:80%;background-color:#fff;margin:5px;">
 
[[Image:SituationExampleDiagram.jpg]]
 
[[Image:SituationExampleDiagram.jpg]]
 
</div>
 
</div>
Line 19: Line 36:
  
 
{{Info tip
 
{{Info tip
|'''Note''': the Image value is the name of the file <u>without</u> namespace!}}
+
|'''Note''': the Image value is the name of the file <u>without</u> namespace:
 +
}}
 
</noinclude>
 
</noinclude>
<includeonly>
 
<div style="font-style:italic;text-align:center;padding:5px;clear:both;background-color:#d3c6ff;border:1px dotted #44339B">
 
{{{Text|}}}
 
<div style="border:1px solid #44339B; width:80%;background-color:#fff;">
 
[[Image:{{{Image|}}}]]
 
</div>
 
 
</div>
 
</includeonly>
 

Latest revision as of 13:05, 2 May 2008

This is a template for printing CP Examples.

{Example
|Image=
|Text=
}


Example of usage

{Example
|Image=SituationExampleDiagram.jpg
|Text=Content of the Text field
}

The result is

Content of the Text field

SituationExampleDiagram.jpg


Info tip.gif Note: the Image value is the name of the file without namespace:
The page [[Bootstrap:Footer]] was not found.