Template:Table row counter/doc: Difference between revisions

From Habbox Wiki
Jump to navigation Jump to search
Cameron446: (talk | contribs)
Cameron446: (talk | contribs)
Line 47: Line 47:
|-
|-
|9
|9
| <span style="color: green;">Active</span>
|- class="sortbottom"
|- class="sortbottom"
! scope="row" |Total
! scope="row" |Total

Revision as of 15:39, 2 March 2022

This template is to be used on Limited Edition Rare to count the number of Ids which will automatically update the table total count. Please note that previewing the page will not return the correct number of rows until you save the page. If the more than one wiki table on a page, you need to specify the number the ID of the table manually

Usage

Table ID

{{table row counter|id=id}}

Table number

{{table row counter|tableno=number}}

All parameters

{{table row counter|id=id|tableno=number|ignore=number|page=pagename}}

Parameters

  • id - if specified, the template will decide which table to use by its ID. IDs can be assigned to wikitables by adding the text id="id" to the first line of the table (the same line as the {| code). IDs can consist only of uppercase letters, lowercase letters, and numbers. Blank spaces are not permitted. Dashes do not work (for example a date range of 2000-2017). The template is particular in that the ID in the first line of the table must have quotes around it: {| id="id" But the ID parameter in the template must NOT have quotes around it: {{table row counter|id=id}}
  • tableno - the number of the table to use, if there is more than one table on the page. Defaults to 1.
  • ignore - the number of rows to ignore. If specified, the template subtracts this number of rows from the count. This is useful if you do not need to count header rows at the top or bottom. Count rows, not lines of text within those rows.
  • page - the page to work on. Defaults to the current page.

Example with header cells

The table to be used

ID Owner Last Updated Notes
2 Qabik 02-Oct-2021 lauratest
6 LeeSafe 30-Sep-2021 Active
8 vincent85 27-Dec-2021 Active
9
Total 4/960 0%