Template:Notes: Difference between revisions

From Peters wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Notes|Warning|Body Text}}
{{Notes|Varning|Body Text}}
{{Notes|Tip|Body Text}}
{{Notes|Tips|Body Text}}
{{Notes|Body Text}}
{{Notes|Body Text}}
</pre>
</pre>
Result:
Result:
{{Notes|Warning|Body Text}}
{{Notes|Varning|Body Text}}
{{Notes|Tip|Body Text}}
{{Notes|Tips|Body Text}}
{{Notes|Body Text}}
{{Notes|Body Text}}


Line 16: Line 16:
</noinclude><includeonly>
</noinclude><includeonly>
<div style="min-height: 85px;">
<div style="min-height: 85px;">
{{#ifeq: {{{1|}}} | Warning |  
{{#ifeq: {{{1|}}} | Varning |  
<div style="background-color: #fdd;
<div style="background-color: #fdd;
   margin: auto;
   margin: auto;
Line 34: Line 34:
">[[File:Warning.svg|60px|left]]|
">[[File:Warning.svg|60px|left]]|
}}<nowiki/>
}}<nowiki/>
{{#ifeq: {{{1|}}} | Tip |  
{{#ifeq: {{{1|}}} | Tips |  
<div style="
<div style="
   background-color: #dfd;
   background-color: #dfd;

Latest revision as of 14:44, 25 April 2016

This is the "Notes" template. It should be called in the following format:

{{Notes|Varning|Body Text}}
{{Notes|Tips|Body Text}}
{{Notes|Body Text}}

Result:

Varning: Body Text


Tips: Body Text


Notering: Body Text


Edit the page to see the template text.