Template:Su: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
set to show {p}/{b} example when standalone; fixed IE6 text-align by using 1 <span> to show both {p}/{b}. Lowered {p} superscript by "line-height:1.1em" for Konqueror 3.5.8; +more NOTES comments
meta>Edokter
No longer applies
Line 1: Line 1:
{{#if:{{{p|<noinclude>x</noinclude>}}}
{{#if:{{{p|<noinclude>x</noinclude>}}}
   |{{#if:{{{b|<noinclude>x</noinclude>}}}
   |{{#if:{{{b|<noinclude>x</noinclude>}}}
     |<span style="{{#ifeq:{{{w|}}}|f|font-family:monospace;}}font-size:{{{fontsize|80%}}};overflow:visible;display:inline-block; vertical-align: -0.4em; line-height:1.1em; margin-bottom:-0.2em;background:transparent;text-align:{{#switch:{{{a|}}}|r=right|c=center|left}}">{{{p|{{{p}}}}}}<br />{{{b|{{{b}}}}}}</span>
     |<span style="{{#ifeq:{{{w|}}}|f|font-family:monospace;}}font-size:{{{fontsize|80%}}};overflow:visible;display:inline-block; vertical-align:-0.4em; line-height:1.1em; margin-bottom:-0.2em;background:transparent;text-align:{{#switch:{{{a|}}}|r=right|c=center|left}}">{{{p|{{{p}}}}}}<br />{{{b|{{{b}}}}}}</span>
     |<sup>{{{p|}}}</sup>
     |<sup>{{{p|}}}</sup>
   }}
   }}
Line 35: Line 35:
--          ELSE show superscript {p|} ENDIF
--          ELSE show superscript {p|} ENDIF
--        ELSE show subscript {b|} ENDIF
--        ELSE show subscript {b|} ENDIF
--
-- NOTE T6: Other templates are used unless {p} & {b} are
--      both specified together:
--        Template:sup - shows superscript when only {p}
--        Template:sub - shows subscript when only {b}
--        {documentation} - to display the /doc subpage.
--
--
--------------------------------------------------------------
--------------------------------------------------------------

Revision as of 18:58, 21 December 2010

{{{p}}}
{{{b}}}