Template:Su: Difference between revisions

From Vigyanwiki
Template>Wikid77
(for IE6 & new browsers, shows super/subscript together by vertical <br>; +new fontsize=80%; removed "includeonly" tags; moved {documentation} to bottom; put many internal NOTES comments, etc.)
Template>Headbomb
(restore includeonly, indent code)
Line 1: Line 1:
{{#if:{{{p|<noinclude>x</noinclude>}}}|{{#if:{{{b|<noinclude>x</noinclude>}}}|<span style="{{#ifeq:{{{w|}}}|f|font-family:monospace;}}font-size:{{{fontsize|80%}}};line-height:1;margin-bottom:-0.1em;overflow:visible;text-align:{{#switch:{{{a|}}}|r=right|c=center|left}}"><span style="display:inline-block; vertical-align: -0.4em; line-height:1.3em; background:transparent;">{{{p|super}}}<br/>{{{b|sub}}}</span></span>|{{sup|{{{p|}}}}}}}|{{sub|{{{b|}}}}}}}<noinclude><!--
<includeonly>{{#if:{{{p|}}}
|{{#if:{{{b|}}}
  |<span style="{{#ifeq:{{{w|}}}|f|font-family:monospace;}}font-size:{{{fontsize|80%}}};line-height:1;margin-bottom:-0.1em;overflow:visible;text-align:{{#switch:{{{a|}}}|r=right|c=center|left}}"><!--
--><span style="display:inline-block; vertical-align: -0.4em; line-height:1.3em; background:transparent;">{{{p}}}<br/>{{{b}}}</span></span>
  |{{sup|{{{b}}}}}
  }}
|{{sub|{{{b}}}}}
}}</includeonly><noinclude><!--
--------------------------------------------------------------
--------------------------------------------------------------
--NOTES:
--NOTES:

Revision as of 15:15, 21 December 2010

Template documentation