Difference between revisions of "Template:notice"

m (forgot to move the 'noinclude' tags back into place after testing)
m (actually made the example work this time.)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template can be used to highlight notes, disclaimers, gotchas, and similar such things in a page. to use it, simply type <tt><nowiki>{{{notice|Your disclaimer text.}}}</nowiki></tt>, which will result in:
+
This template can be used to highlight notes, disclaimers, gotchas, and similar such things in a page. to use it, simply type <tt><nowiki>{{notice|Your disclaimer text.}}</nowiki></tt>, which will result in:
  
{{{notice|Your disclaimer text.}}}
+
{{notice|Your disclaimer text.}}
  
 
This template has one optional Parameter, <tt>icon</tt>, if set, its contents will replace the default O-face icon. if you wish to remove the icon, set it to <tt>&amp;nbsp;</tt>. if you wish to set it to a different image, remember to refer to it in the wiki style <tt><nowiki>[[image:your-image.png]]</nowiki></tt>.
 
This template has one optional Parameter, <tt>icon</tt>, if set, its contents will replace the default O-face icon. if you wish to remove the icon, set it to <tt>&amp;nbsp;</tt>. if you wish to set it to a different image, remember to refer to it in the wiki style <tt><nowiki>[[image:your-image.png]]</nowiki></tt>.
 +
so if you wantted to use, say [[:Image:Resource-HamsterBall.png]] as the icon, you would use <tt><nowiki>{{notice|Your disclaimer text.|icon=[[Image:Resource-HamsterBall.png]]}}</nowiki></tt>
 +
 +
{{notice|Your disclaimer text.|icon=[[Image:Resource-HamsterBall.png]]}}
  
 
</noinclude>
 
</noinclude>

Revision as of 01:15, 12 September 2010

This template can be used to highlight notes, disclaimers, gotchas, and similar such things in a page. to use it, simply type {{notice|Your disclaimer text.}}, which will result in:

O.png Your disclaimer text.  


This template has one optional Parameter, icon, if set, its contents will replace the default O-face icon. if you wish to remove the icon, set it to &nbsp;. if you wish to set it to a different image, remember to refer to it in the wiki style [[image:your-image.png]]. so if you wantted to use, say Image:Resource-HamsterBall.png as the icon, you would use {{notice|Your disclaimer text.|icon=[[Image:Resource-HamsterBall.png]]}}

[[Image:Resource-HamsterBall.png]] Your disclaimer text.