Difference between revisions of "Template:GradedNoticeBar"

From Maths
Jump to: navigation, search
(Initial attempt)
 
m (Minor fix)
Line 1: Line 1:
<div><!--  
+
<includeonly><div><!--  
 
   --><div style="width:80%;margin-left:auto;margin-right:auto;border:0.3em solid #FFEB8E;padding:0.2em;overflow:auto;background-color:#FFF9E3;"><!--
 
   --><div style="width:80%;margin-left:auto;margin-right:auto;border:0.3em solid #FFEB8E;padding:0.2em;overflow:auto;background-color:#FFF9E3;"><!--
 
       -->{{#if:{{{grade|}}}|<!--
 
       -->{{#if:{{{grade|}}}|<!--
         --><div style="border:0.2em solid #0D6ABE;background-color:#E0EEF7;float:right;min-width:20%;padding-left:0.2em;padding-right:0.2em;font-weight:bold;"><!--
+
         --><div style="border:0.2em solid #0D6ABE;background-color:#E0EEF7;float:right;min-width:20%;padding-left:0.2em;padding-right:0.2em;font-weight:bold;text-align:center;"><!--
 
             -->{{{grade|}}}<!--
 
             -->{{{grade|}}}<!--
 
         --></div><!--
 
         --></div><!--
 
       -->|}}<!--
 
       -->|}}<!--
 
-->{{#if:{{{title|{{{1|}}}}}}|<!--
 
-->{{#if:{{{title|{{{1|}}}}}}|<!--
   --><span style="text-decoration:underline;font-weight:bold;"><!--
+
   --><span style="text-decoration:underline;font-weight:bold;margin-left:0.2em;"><!--
 
       -->{{{title|{{{1|}}}}}}<!--
 
       -->{{{title|{{{1|}}}}}}<!--
 
   --></span><!--
 
   --></span><!--
Line 15: Line 15:
 
--></div>
 
--></div>
 
</div>
 
</div>
</div><noinclude>
+
</div></includeonly><noinclude>
 
{{:Template:GradedNoticeBar/Documentation}}
 
{{:Template:GradedNoticeBar/Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:23, 10 May 2016

Using the template

{{GradedNoticeBar|title=Testing notice bar|content|Blah blah blah<br/>blah blah * A * B * C And so forth|grade=Grade A Theorem}} generates:

Grade A Theorem
Testing notice bar
Blah blah blah
blah blah
  • A
  • B
  • C
And so forth