Template:Su: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
Cleaner, better version
meta>SkyLined
Quick and dirty fix for IE6 problem, only solves cases where only sub- or supscript is required and not both.
Line 4: Line 4:
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
Normally, the code for the template is included, but this template is too complex to do that.
Normally, the code for the template is included, but this template is too complex to do that.
--></noinclude><includeonly><SPAN style="{{#ifeq: {{{w|}}}|f| font: 80% monospace; |font-size:80%; }} display:-moz-inline-box; -moz-box-orient:vertical; display:inline-block; vertical-align: bottom; /*Horizontal positioning, affects IE&FF*/margin-bottom:-0.4em; min-height:1em; line-height:1em; {{#switch: {{{a|}}}|r=text-align:right|c=text-align:center}}"><SPAN style="display:block; min-height:1em; /*Horizontal positioning, affects IE only*/margin-top:-1.4em;">{{{p|&nbsp;}}}</SPAN><SPAN style="display:block; min-height:1em;">{{{b|&nbsp;}}}</SPAN></SPAN></includeonly>
--></noinclude><includeonly>{{#ifeq:{{{p|{{{b|}}}}}}|{{{b}}}
|<sub>{{{b}}}</sub>
|{{ifeq:{{{b|{{{p|}}}}}}|{{{p}}}
|<sup>{{{p}}}</sup>
|<SPAN style="{{#ifeq: {{{w|}}}|f| font: 80% monospace; |font-size:80%; }} display:-moz-inline-box; -moz-box-orient:vertical; display:inline-block; vertical-align: bottom; /*Horizontal positioning, affects IE&FF*/margin-bottom:-0.4em; min-height:1em; line-height:1em; {{#switch: {{{a|}}}|r=text-align:right|c=text-align:center}}"><SPAN style="display:block; min-height:1em; /*Horizontal positioning, affects IE only*/margin-top:-1.4em;">{{{p|&nbsp;}}}</SPAN><SPAN style="display:block; min-height:1em;">{{{b|&nbsp;}}}</SPAN></SPAN>}}}}</includeonly>

Revision as of 22:04, 4 May 2008