Predefinição:Aligned table/doc
Saltar para a navegação
Saltar para a pesquisa
|
|
Esta é uma subpágina de documentação para a Predefinição:Aligned table. Ela contém informações sobre o seu uso, categorias, bem como todo o conteúdo que não faz parte da predefinição original. |
{{#invoke:Lua banner|main}}
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
}}
{{#invoke:aligned table|table}}
{{Aligned table
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
{{#invoke:aligned table|table}}
{{Aligned table
|style=width:20em
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
{{#invoke:aligned table|table}}
Ver também
- Módulo:Aligned table, o módulo Lua que gera Texto pequeno
{{Aligned table}}.