Difference between revisions of "Template:Example"

From EVE University Wiki
Jump to: navigation, search
(Made it slightly darker, and removed the superfluous italics formatting)
(Documentation)
Line 1: Line 1:
 
{{Color box|color=#404050|border=#9999AA|{{{1|An example!}}} }}
 
{{Color box|color=#404050|border=#9999AA|{{{1|An example!}}} }}
<noinclude>[[Category:Template]]</noinclude>
+
<noinclude>
 +
== Documentation ==
 +
As the name suggests, this template produces a colored box, which is used when you want to give an example on a page. You can use common wiki-formatting (eg bold, links) if you wish.
 +
 
 +
If the text you would like to use include an equals sign (=), you need to explicitly declare your text as a numbered parameter (i.e. put <code>1=</code> before your example text), otherwise the template will display nothing.
 +
 
 +
=== Examples ===
 +
 
 +
<code><nowiki>{{example|An example to '''illustrate''' my article with a link to the [[Venture]]}}</nowiki></code> gives:
 +
{{example|An example to '''illustrate''' my article with a link to the [[Venture]]}}
 +
 
 +
<code><nowiki>{{example|How not to put the formula 2+2=4 into an example.}}</nowiki></code> gives:
 +
{{example|How not to put the formula 2+2=4 into an example}}
 +
 
 +
<code><nowiki>{{example|1=How to put the formula 2+2=4 into an example.}}</nowiki></code> gives:
 +
{{example|1=How to put the formula 2+2=4 into an example}}
 +
 
 +
[[Category:Template]]</noinclude>

Revision as of 10:56, 4 April 2014

An example!

Documentation

As the name suggests, this template produces a colored box, which is used when you want to give an example on a page. You can use common wiki-formatting (eg bold, links) if you wish.

If the text you would like to use include an equals sign (=), you need to explicitly declare your text as a numbered parameter (i.e. put 1= before your example text), otherwise the template will display nothing.

Examples

{{example|An example to '''illustrate''' my article with a link to the [[Venture]]}} gives:

An example to illustrate my article with a link to the Venture


{{example|How not to put the formula 2+2=4 into an example.}} gives:

An example!


{{example|1=How to put the formula 2+2=4 into an example.}} gives:

How to put the formula 2+2=4 into an example