Difference between revisions of "Template:notice"

(Initial Version)
 
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{|class='notice' bgcolor='gold' style='border-style:solid;border-width:1px;-moz-border-radius:3px;border-radius:3px;' align='center' width='80%'
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:
+
|width='1'| [[Image:{{{icon|O.png}}}]]
 
+
|textalign='right'|{{{1}}}
{{{notice|Your disclaimer text.}}}
+
|width='1'|&nbsp;
 
+
|}<br></includeonly><noinclude>
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>.
+
{{documentation}}
 +
[[Category:Templates]]
  
 +
== Other Languages ==
 +
{{i18n|Template:notice}}
 
</noinclude>
 
</noinclude>
 
 
{|bgcolor='gold' style='border-style:solid;border-width:1px;-moz-border-radius:3px;border-radius:3px;' align='center' width='80%'
 
|width='1'| {{{icon|[[Image:O.png]]}}}
 
|textalign='right'|{{{1}}}
 
|width='1'|&nbsp;
 
|}
 
<includeonly>
 
</includeonly>
 

Latest revision as of 14:22, 13 November 2019

[edit] [purge] Template documentation

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, just specify the image name, like your-image.png. so if you wanted to use, say Image:Resource-HamsterBall.png as the icon, you would use {{notice|Your disclaimer text.|icon=Resource-HamsterBall.png}}

Resource-HamsterBall.png Your disclaimer text.  

Other Languages