Difference between revisions of "Template:Example/doc"

From EVE University Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{main|Template:Example}}</noinclude> 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 ...")
 
m
Line 19: Line 19:
 
*<code>{{t|color box}}</code>, the general template for creating coloured boxes with text in them.
 
*<code>{{t|color box}}</code>, the general template for creating coloured boxes with text in them.
  
<includeonly>[[Category:Template]]</includeonly>
+
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 21:14, 18 March 2021

Main article: Template:Example

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. The formatting of this template is kept subtle on purpose, so as not to interfere too much with the general flow of a page (if you want a stronger emphasis for your text, you can use {{note box}} or even {{important note box}}).

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.

See also