Difference between revisions of "Template:Example"
From EVE University Wiki
(Documentation) |
m (Remove extra line break) |
||
Line 1: | Line 1: | ||
− | {{Color box|color=#404050|border=#9999AA|{{{1|An example!}}} }} | + | {{Color box|color=#404050|border=#9999AA|{{{1|An example!}}} }}<noinclude> |
− | <noinclude> | ||
== Documentation == | == 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. | 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. | ||
Line 8: | Line 7: | ||
=== Examples === | === Examples === | ||
− | <code><nowiki>{{example|An example to '''illustrate''' my article with a link to the [[Venture]]}}</nowiki></code> gives: | + | <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]]}} | + | {{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: | <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}} | + | {{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: | <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}} | + | {{example|1=How to put the formula 2+2=4 into an example.}} |
[[Category:Template]]</noinclude> | [[Category:Template]]</noinclude> |
Revision as of 12:35, 19 May 2014
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:
{{example|How not to put the formula 2+2=4 into an example.}}
gives:
{{example|1=How to put the formula 2+2=4 into an example.}}
gives: