Changes

Jump to: navigation, search

Template:Notice/doc

2,006 bytes added, 08:11, 29 April 2016
m
Switching to sections to aid modifications, and fixing a small bug
{{SPW|is not on|name=Notice}}
<includeonly>
[[Category:Wikia Help templates]]
</includeonly><noinclude>
[[Category:Template documentation]]
</noinclude>
<dl>
==<dt>Description:</dt>==
<dd>A simple notice box.</dd>
==<dt>Dependencies:</dt>==
<dd>
*Uses [[:File:Gtk-ok.png]] as default image.
**{{t|t}} = To show clickable template mentions.
**{{t|para}} = To show parameter usage.
**{{t|-}} and {{t|Lorem ipsum}} = To format the output of the samples.
</dd>
==<dt>Syntax:</dt>==
<dd>Type <code>{{t|Notice|parameters}}</code> somewhere.</dd>
 ===<dt>Parameters:</dt>===
<dd>
*<i>Recommended</i>: {{para|type}}
</dd>
==<dt>Sample output:</dt>==<dd><dl>===Sample:1===<codedt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em;"><nowiki>{{Notice|type=Notice box|info=Does not use the {{t|Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}</nowiki></dt><dd>gives...</dd><dd style="border:2px solid teal; border-radius:1em;">{{Notice|type=Notice box|info=Does not use the {{t|Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}</dd>===Sample:2===<dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em;"><nowiki>{{Notice|styleWidth=50%|type=Notice box|info={{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}} }}</nowiki></dt><dd>gives...</dd><dd style="border:2px solid teal; border-radius:1em;">{{Notice|styleWidth=50%|type=Notice box|info={{Lorem ipsum|1|&ldquo;|&rdquo;}} }}</dd>===Sample:3===<dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em;"><nowiki>{{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}}</nowiki><br/code><nowiki>{{Notice|float=N|type=Notice box|info={{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}} }}</nowiki><br/><nowiki>{{Lorem ipsum|2|&amp;ldquo;|&amp;rdquo;}}{{-}}</nowiki></dt><dd>gives...</dd><dd style="border:2px solid teal; border-radius:1em;">{{Lorem ipsum|1|&ldquo;|&rdquo;}}{{Notice|float=N|type=Notice box|info={{Lorem ipsum|1|&ldquo;|&rdquo;}} }}{{Lorem ipsum|2|&ldquo;|&rdquo;}}{{-}}</dd>===Sample:4===<dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em;"><nowiki>{{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}}</nowiki><br/><nowiki>{{Notice|float=Left|type=Notice box|info={{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}} }}</nowiki><br/><nowiki>{{Lorem ipsum|2|&amp;ldquo;|&amp;rdquo;}}{{-}}</nowiki></dt>
<dd>gives...</dd>
<ddstyle="border:2px solid teal; border-radius:1em;">{{Lorem ipsum|1|&ldquo;|&rdquo;}}{{Notice|float=Left|type=Notice box|info=Does not use the {{tLorem ipsum|Ambox1|&ldquo;|&rdquo;}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}{{Lorem ipsum|2|&ldquo;|&rdquo;}}{{-}}</dd>===Sample:5===<hr/dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em;"><ddnowiki>{{Lorem ipsum|1|&amp;ldquo;|&amp;rdquo;}}</nowiki><codebr/><nowiki>{{Notice|styleWidthfloat=50%Right|type=Notice box|info=Does not use the {{tLorem ipsum|Ambox1|&amp;ldquo;|&amp;rdquo;}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}</nowiki><br/><nowiki>{{Lorem ipsum|2|&amp;ldquo;|&amp;rdquo;}}{{-}}</codenowiki></dddt>
<dd>gives...</dd>
<dd style="border:2px solid teal; border-radius:1em;">{{Lorem ipsum|1|&ldquo;|&rdquo;}}
{{Notice|float=Right|type=Notice box|info={{Lorem ipsum|1|&ldquo;|&rdquo;}} }}
{{Lorem ipsum|2|&ldquo;|&rdquo;}}{{-}}</dd>
 
</dl></dd>
 
==<dt>See also</dt>==
<dd>
{{Notice|styleWidth=50%|type=Notice box|info=Does not use the *{{t|Ambox}} template and could be considered a simpler alternative, since it doesn't have a CSS dependency.}}
</dd>
<dt>See also:</dt>
<dd>
*{{t|Ambox}}<includeonly>
</dd>
</dl>
[[Category:Wikia Help templates]]
</includeonly><noinclude>
[[Category:Template documentation]]
</noinclude>
1,071
edits

Navigation menu