Template:Tabber/doc: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) Created page with "Template used to create Tabs for any page. The numbers are the names of the pages and l1, l2 etc. are used for alternate names. == Examples == <pre style="width:50%"> {{Tabber|1=Hero|2=Hero Attributes Table}} </pre> {{Tabber|1=Hero|2=Hero Attributes Table}} <pre style="width:50%"> {{Tabber|1=Hero|2=Hero Attributes Table|l2=Attributes Table}} </pre> {{Tabber|1=Hero|2=Hero Attributes Table}}" |
Added templatedata and categories |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Template used to create Tabs for any page. The numbers are the names of the pages | Template used to create Tabs for any page. The numbers are the names of the pages. l1, l2 etc. are used for manual alternate names, while t1, t2 etc. are used for automatic translations from [[Data:Dictionary]]. | ||
== Examples == | == Examples == | ||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{Tabber|1= | {{Tabber|1=Heroes|2=Hero Attributes Table}} | ||
</pre> | </pre> | ||
{{Tabber|1= | {{Tabber|1=Heroes|2=Hero Attributes Table}} | ||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{Tabber|1= | {{Tabber|1=Heroes|2=Hero Attributes Table|l2=Attributes Table}} | ||
</pre> | </pre> | ||
{{Tabber|1= | {{Tabber|1=Heroes|2=Hero Attributes Table|l2=Attributes Table}} | ||
Example of automatic translation (Simulated view of a Chinese page). | |||
Note: The link (1=) usually points to the specific language page. | |||
<pre style="width:50%"> | |||
{{Tabber|1=Heroes/zh-hans|t1=Heroes}} | |||
</pre> | |||
{{Tabber|1=Heroes/zh-hans|l1=英雄}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Tab 1 Link", | |||
"description": "Page name for the first tab.", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"l1": { | |||
"label": "Tab 1 Label", | |||
"description": "Manual text override for Tab 1.", | |||
"type": "string" | |||
}, | |||
"t1": { | |||
"label": "Tab 1 Translation Key", | |||
"description": "Dictionary key for automatic translation of Tab 1. (e.g. 'Heroes')", | |||
"type": "string" | |||
}, | |||
"2": { | |||
"label": "Tab 2 Link", | |||
"description": "Page name for the second tab.", | |||
"type": "wiki-page-name" | |||
}, | |||
"l2": { | |||
"label": "Tab 2 Label", | |||
"description": "Manual text override for Tab 2.", | |||
"type": "string" | |||
}, | |||
"t2": { | |||
"label": "Tab 2 Translation Key", | |||
"description": "Dictionary key for automatic translation of Tab 2.", | |||
"type": "string" | |||
}, | |||
"3": { | |||
"label": "Tab 3 Link", | |||
"description": "Page name for the third tab.", | |||
"type": "wiki-page-name" | |||
}, | |||
"l3": { | |||
"label": "Tab 3 Label", | |||
"description": "Manual text override for Tab 3.", | |||
"type": "string" | |||
}, | |||
"t3": { | |||
"label": "Tab 3 Translation Key", | |||
"description": "Dictionary key for automatic translation of Tab 3.", | |||
"type": "string" | |||
}, | |||
"4": { | |||
"label": "Tab 4 Link", | |||
"description": "Page name for the fourth tab.", | |||
"type": "wiki-page-name" | |||
}, | |||
"l4": { | |||
"label": "Tab 4 Label", | |||
"description": "Manual text override for Tab 4.", | |||
"type": "string" | |||
}, | |||
"t4": { | |||
"label": "Tab 4 Translation Key", | |||
"description": "Dictionary key for automatic translation of Tab 4.", | |||
"type": "string" | |||
} | |||
}, | |||
"format": "inline", | |||
"description": "Template used to create navigation tabs for any page." | |||
} | |||
</templatedata><includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||
Latest revision as of 15:05, 1 December 2025
Template used to create Tabs for any page. The numbers are the names of the pages. l1, l2 etc. are used for manual alternate names, while t1, t2 etc. are used for automatic translations from Data:Dictionary.
Examples
[edit source]{{Tabber|1=Heroes|2=Hero Attributes Table}}
{{Tabber|1=Heroes|2=Hero Attributes Table|l2=Attributes Table}}
Example of automatic translation (Simulated view of a Chinese page). Note: The link (1=) usually points to the specific language page.
{{Tabber|1=Heroes/zh-hans|t1=Heroes}}
Template used to create navigation tabs for any page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tab 1 Link | 1 | Page name for the first tab. | Page name | required |
| Tab 1 Label | l1 | Manual text override for Tab 1. | String | optional |
| Tab 1 Translation Key | t1 | Dictionary key for automatic translation of Tab 1. (e.g. 'Heroes') | String | optional |
| Tab 2 Link | 2 | Page name for the second tab. | Page name | optional |
| Tab 2 Label | l2 | Manual text override for Tab 2. | String | optional |
| Tab 2 Translation Key | t2 | Dictionary key for automatic translation of Tab 2. | String | optional |
| Tab 3 Link | 3 | Page name for the third tab. | Page name | optional |
| Tab 3 Label | l3 | Manual text override for Tab 3. | String | optional |
| Tab 3 Translation Key | t3 | Dictionary key for automatic translation of Tab 3. | String | optional |
| Tab 4 Link | 4 | Page name for the fourth tab. | Page name | optional |
| Tab 4 Label | l4 | Manual text override for Tab 4. | String | optional |
| Tab 4 Translation Key | t4 | Dictionary key for automatic translation of Tab 4. | String | optional |