Template:Notes: Difference between revisions

From Peters wiki
Jump to navigation Jump to search
Created page with "<noinclude> This is the "Notes" template. It should be called in the following format: <pre> {{Notes|Warning|Body Text}} {{Notes|Tip|Body Text}} {{Notes|Body Text}} </pre> Res..."
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
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;
Line 70: Line 70:
   border-radius: 20px;
   border-radius: 20px;
   font-weight:bold;   
   font-weight:bold;   
">[[File:note.svg|60px|left]]Note: {{{1}}}}}<nowiki/>
">[[File:note.svg|60px|left]]Notering: {{{1}}}}}<nowiki/>
</div>
</div>
</div>
</div>
</includeonly>
</includeonly>

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.