Actions

Template

Difference between revisions of "Notice box"

From InfoTechPedia

(first save)
 
(information as title)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="panel radius notice-{{#switch:{{{type|}}}
+
<includeonly><div class="panel radius notice-{{#switch:{{{type|}}}
 
     | hint  = hint
 
     | hint  = hint
 
     | see-also = see-also
 
     | see-also = see-also
 
     | warning = warning
 
     | warning = warning
 +
    | info = info
 
     | blank = blank
 
     | blank = blank
 
     |#default  = note
 
     |#default  = note
}}"><div class="notice-icon">{{#switch:{{{image|{{{type|}}}}}}
+
}}">
     | hint  = {{icon|lightbulb-o|2x}}
+
<div class="row">
     | see-also = {{icon|lightbulb-o|2x}}
+
<div class="large-1 columns center notice-icon">{{#switch:{{{image|{{{type|}}}}}}
     | warning = {{icon|lightbulb-o|2x}}
+
     | hint  = {{icon|lightbulb-o|4x|3=#f9f9f9}}
 +
     | see-also = {{icon|eye|4x|3=#191970}}
 +
    | warning = {{icon|exclamation-triangle|4x|3=#ffffff}}
 +
     | info = {{icon|info-circle|4x|3=#191970}}
 
     | blank = <!--blank-->
 
     | blank = <!--blank-->
     |#default  = {{icon|lightbulb-o|2x}}
+
     |#default  = {{icon|sticky-note-o|4x}}
}}</div><div class="notice-text-main"><div class="notice-title">{{{subject|{{#switch:{{{type|}}}
+
}}
 +
</div>
 +
<div class="large-11 columns left notice-text-main">
 +
<div class="notice-title">{{{subject|{{#switch:{{{type|}}}
 
   | hint  = {{{title|A Hint}}}
 
   | hint  = {{{title|A Hint}}}
 
   | see-also  = {{{title|See Also}}}
 
   | see-also  = {{{title|See Also}}}
 
   | warning = {{{title|Warning}}}
 
   | warning = {{{title|Warning}}}
 +
  | info = {{{title|Information}}}
 
   | none    = <!-- none -->
 
   | none    = <!-- none -->
 
   | #default = {{{title|Note}}}
 
   | #default = {{{title|Note}}}
}}}}}</div><p class="notice" style="font-size:.9em;">{{{text}}}</p></div></div>
+
}}}}}
 +
</div>
 +
<div class="notice">{{{text}}}</div>
 +
</div>
 +
</div>
 +
</div></includeonly><noinclude>
 +
Notice boxes for wiki use. Do not link directly to this template. It is designed to as a sub template from the following templates.
 +
<pre>
 +
{{note|....
 +
{{warning|....
 +
{{hint|....
 +
{{see also|....
 +
</pre>
 +
Here is how they look when in use.
 +
 
 +
{{Note|This is a note box.}}
 +
{{Warning|This is a warning box!}}
 +
{{Hint|Need a hint, here is a hint box so here is a hint. To use these templates use the following code:
 +
<code><nowiki>{{note|some text|subject=Title Besides Note}}</nowiki></code>}}
 +
{{See also|Need to let someone know there is more to it? See also box.}}
 +
{{Notice|This is a notice.}}</noinclude>

Latest revision as of 17:52, 16 February 2018

Notice boxes for wiki use. Do not link directly to this template. It is designed to as a sub template from the following templates.

{{note|....
{{warning|....
{{hint|....
{{see also|....

Here is how they look when in use.

Note
This is a note box.
Warning
This is a warning box!
Hint
Need a hint, here is a hint box so here is a hint. To use these templates use the following code: {{note|some text|subject=Title Besides Note}}
See Also
Need to let someone know there is more to it? See also box.
Information
This is a notice.