Template talk:Vat

From Wikipedia, the free encyclopedia

Contents

[edit] Documentation

{{vat}} is a shorthand for valign="top" align="left" in table cells. This legal XHTML transitional markup works with any browser, i.e. without inline CSS. Vat is an acronym for vertical align top.

[edit] Usage

{{vat}} |
{{subst:vat}} |

Adding the vertical bar manually allows more flexibility like specifying width= or style= attributes, and uses of vat in other scenarios not limited to Wiki table cells.

[edit] Example

default
item
  1. 1st
  2. 2nd
  3. 3rd
code

{| border="1" align="left"
! colspan="2" | default
|-
| item
|
# 1st
# 2nd
# 3rd
|}

aligned
item
  1. 1st
  2. 2nd
  3. 3rd
code

{| border="1" align="left"
! colspan="2" | aligned
|-
| {{vat}} | item
|
# 1st
# 2nd
# 3rd
|}


Intentionally not the most terse Wiki table markup

exclamation mark
one
another
something
code

{| border="1" align="left"
! exclamation mark
|-
!
: one
: another
: something
|}

aligned
one
another
something
code

{| border="1" align="left"
! aligned
|-
! {{vat}} |
: one
: another
: something
|}


Adding {{vat}} | also works for a header cell.

[edit] See also

[edit] Discussion

Add issues below as you see fit, sign with ~~~~