Permanently protected template

Predefinição:Aligned table

Origem: Wikipédia, a enciclopédia livre.
Saltar para a navegação Saltar para a pesquisa
Documentação da predefinição[ver] [editar] [histórico] [purgar]

Descrição

Uso

{{Aligned table
| cols = N
| class =
| style =

| colalignX = 
| colstyleX = 

| .. | ..
}}
Parameter Description
cols The number of columns in the table (default is 2)
class The class for the table (e.g., wikitable, infobox, sidebar, ...)
style The style for the table (e.g., width:100%)
fullwidth Any nonblank value will remove border spacing and add width:100% to the style for the table
colalignX The alignment for the cells in column X (e.g., left, right, center)
colclassX The class for the cells in column X (e.g., navbox-group)
colstyleX The style for the cells in column X (e.g., white-space:nowrap)
colnowrapX Any nonblank value will add white-space:nowrap to the style for column X
rowclassY The class for cells in row Y (e.g., navbox-abovebelow)
rowstyleY The style for cells in row Y (e.g., font-weight:bold)
classY.X The class for the cell in row Y and column X (e.g., navbox-group)
styleY.X The style for the cell in row Y and column X (e.g., white-space:nowrap)
leftright Any nonblank value will set align1 = left and align2 = right
Unnamed parameters The remaining unnamed parameters are the entries for the table

Exemplos

{{Aligned table
|class=wikitable
|cols=2
| A | 1
| B | 2
}}
A 1
B 2
{{Aligned table
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2
{{Aligned table
|style=width:20em
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2

Ver também