Template:GenericSortable/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
* '''heading{n}colspan''' - Colspan attribute (if needed) | * '''heading{n}colspan''' - Colspan attribute (if needed) | ||
* '''row{n}cell{n}''' - Content for each cell in each row | * '''row{n}cell{n}''' - Content for each cell in each row | ||
Below is an example of the syntax, and the resulting table that is created. | |||
<pre> | |||
{{GenericSortable | |||
|columns=3 | |||
|heading1=I | |||
|heading2=Love | |||
|heading3=August! | |||
|row1cell1=Yes | |||
|row1cell2=I | |||
|row1cell3=Do! | |||
}} | |||
</pre> | |||
{{GenericSortable | |||
|columns=3 | |||
|heading1=I | |||
|heading2=Love | |||
|heading3=August! | |||
|row1cell1=Yes | |||
|row1cell2=I | |||
|row1cell3=Do! | |||
}} | |||
Revision as of 03:26, 27 February 2025
GenericSortable Template Variables
- columns - Number of columns in the table (default: 3)
- heading{n} - Text for each column header
- heading{n}colspan - Colspan attribute (if needed)
- row{n}cell{n} - Content for each cell in each row
Below is an example of the syntax, and the resulting table that is created.
{{GenericSortable
|columns=3
|heading1=I
|heading2=Love
|heading3=August!
|row1cell1=Yes
|row1cell2=I
|row1cell3=Do!
}}
| I | Love | August! |
|---|---|---|
| Yes | I | Do! |