Template:Su

From Zoophilia Wiki
Revision as of 14:42, 9 April 2008 by meta>SkyLined (Initial version, based on work for Template:PhysicsParticle and Template:val)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Purpose

Template for creating two smaller lines of text on one actual line, this can be used for scientific notations of uncertainty and physics symbols, such as and particles.

It was named after the <sup> and <sub> HTML tags, which share the first two letters of their name with this template. This template uses the third letter of the name of these tags, p and b, as the name of the argument that drives the output of the top and bottom line, respectively. They are also used in combination with the letter a to set the alignment of the indivivdual lines.

Arguments

p The contents of the top line.
b The contents of the bottom line.
a The alignment of both lines (r for right aligned, default is left aligned)

Examples

Simple example: X{{su|p=a}}X{{su|b=b}}X{{su|p=a|b=b}}X

XaXbXabX

Left aligned (default): X{{su|p=aaaaa|b=b}}X{{su|p=a|b=bbbbb}}X

XaaaaabXabbbbbX

Right aligned: X{{su|a=r|p=aaaaa|b=b}}X{{su|a=r|p=a|b=bbbbb}}X

XaaaaabXabbbbbX