Difference between revisions of "Template:Tree-Start/Documentation"
Colok76286 (talk | contribs) (Undo revision 191124 by U144762152 (talk)) |
Colok76286 (talk | contribs) (Edits) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Tree-Start|5}} | + | {{docpage}} |
+ | |||
+ | This template is used at the start of a navigation table to define the number of columns and create a header. There are 2 parameters: | ||
+ | * the number of vehicle columns, | ||
+ | * (optional) the removal of the header ("Researchable Vehicles" & "Premium Vehicles"). | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! width="30%" | Parameter !! width="30%" | Code !! width="25%" | Result !! width="15%" | Example | ||
+ | |- | ||
+ | | rowspan="4" | The number of vehicle columns in the navigation table for each nation is set to a fixed number (3 - 7). 2 columns are always reserved for premium vehicles (on the right), the rest is for researchable vehicles. | ||
+ | | <pre>{{Tree-Start|7}}</pre> || Researchable vehicles: 5 columns <br> Premium vehicles: 2 columns || [[:Category:USA aircraft]] | ||
+ | |- | ||
+ | | <pre>{{Tree-Start|6}}</pre> || Researchable vehicles: 4 columns <br> Premium vehicles: 2 columns || [[:Category:China aircraft]] | ||
+ | |- | ||
+ | | <pre>{{Tree-Start|5}}</pre> || Researchable vehicles: 3 columns <br> Premium vehicles: 2 columns || [[:Category:Coastal Fleet USA]] | ||
+ | |- | ||
+ | | <pre>{{Tree-Start|4}}</pre> || Researchable vehicles: 2 columns <br> Premium vehicles: 2 columns || [[:Category:Coastal Fleet Britain]] | ||
+ | |- | ||
+ | | rowspan="2" | For custom navigation tables, the preset header can be removed to replace it with a custom one. When the second parameter is defined, the first parameter (number of columns) plays no role and can be left blank. || <pre>{{Tree-Start|3|without header}}</pre> || rowspan="2" | The header "Researchable Vehicles" / "Premium Vehicles" is hidden. || rowspan="2" | [[:Category:Dive bombers]] | ||
+ | |- | ||
+ | | <pre>{{Tree-Start||without header}}</pre> | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | Clean template source codes: | ||
+ | {{Sp-begin|Navigation table with 7 columns}} | ||
+ | <pre style="text-align:left;">{{Tree-Start|7}} | ||
+ | {{Tree-Line|I rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|II rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|III rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|IV rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|V rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|VI rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-End}}</pre> | ||
+ | {{Sp-end}} | ||
+ | |||
+ | {{Sp-begin|Navigation table with 6 columns}} | ||
+ | <pre style="text-align:left;">{{Tree-Start|6}} | ||
+ | {{Tree-Line|I rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|II rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|III rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|IV rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|V rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|VI rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-End}}</pre> | ||
+ | {{Sp-end}} | ||
+ | |||
+ | {{Sp-begin|Navigation table with 5 columns}} | ||
+ | <pre style="text-align:left;">{{Tree-Start|5}} | ||
+ | {{Tree-Line|I rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|II rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|III rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|IV rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|V rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|VI rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-End}}</pre> | ||
+ | {{Sp-end}} | ||
+ | {{Sp-begin|Navigation table with 4 columns}} | ||
+ | <pre style="text-align:left;">{{Tree-Start|4}} | ||
+ | {{Tree-Line|I rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|II rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
{{Tree-Line|III rank}} | {{Tree-Line|III rank}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
| | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|IV rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|V rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|VI rank}} | ||
+ | | | ||
+ | |||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-End}}</pre> | ||
+ | {{Sp-end}}{{Sp-begin|Navigation table with 3 columns}} | ||
+ | <pre style="text-align:left;">{{Tree-Start|3}} | ||
+ | {{Tree-Line|I rank}} | ||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|II rank}} | ||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|III rank}} | ||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|IV rank}} | ||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
| | | | ||
+ | {{Tree-Line|V rank}} | ||
| | | | ||
|style="border-left: solid 1px #cccccc;"| | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-Line|VI rank}} | ||
+ | | | ||
+ | |||
+ | |style="border-left: solid 1px #cccccc;"| | ||
+ | |||
+ | | | ||
+ | |||
+ | {{Tree-End}}</pre> | ||
+ | {{Sp-end}} | ||
+ | |||
+ | The template ''Tree-Start'' is used in combination with the template [[Template:Tree-End]]. Each tree opened with ''Tree-Start'' must be closed with ''Tree-End''. | ||
+ | |||
+ | The following templates are also usually used in the navigation table: | ||
+ | * [[Template:Tree-Unit]] | ||
+ | * [[Template:Tree-Line]] | ||
+ | * [[Template:Tree-Arrow]] | ||
+ | * [[Template:Tree-Arrow-Right]] | ||
+ | * [[Template:Tree-Skip]] | ||
+ | * [[Template:Tree-Group]] | ||
+ | Read the documentation about these templates to get familiar with their use. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Example !! Code !! colspan="3" | Result | ||
+ | |- | ||
+ | | The [[Template:Tree-Arrow]] used in between linear vehicles is the same one as the one used in the client. There must be no spaces or <nowiki><br></nowiki> tags present. If necessary, it's possible to make the arrow longer by setting an additional parameter. | ||
+ | | <pre>{{Tree-Unit|p-26a_34_m2}} | ||
+ | {{Tree-Arrow}} | ||
+ | {{Tree-Unit|p-26a_33}}</pre> | ||
+ | | style="text-align:center;" colspan="3" | | ||
+ | {{Tree-Unit|p-26a_34_m2}} | ||
+ | {{Tree-Arrow}} | ||
+ | {{Tree-Unit|p-26a_33}} | ||
+ | |- | ||
+ | | The [[Template:Tree-Arrow-Right]] used in between vehicles is the same one as the one used in the client. There must be no spaces or <nowiki><br></nowiki> tags present. If necessary, it's possible to make the arrow longer by setting an additional parameter. | ||
+ | | <pre>{{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}}</pre> | ||
+ | | style="text-align:center;" | {{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}} | ||
+ | |- | ||
+ | | The [[Template:Tree-Skip]] is usually used in between premium and gift vehicles. It should contain no spaces or <nowiki><br></nowiki> tags as well. If necessary, it's possible to make the space shorter or longer by setting an additional parameter. | ||
+ | | <pre>{{Tree-Unit|p-26a_34}} | ||
+ | {{Tree-Skip}} | ||
+ | {{Tree-Unit|b_10b}}</pre> | ||
+ | | style="text-align:center;" colspan="3" | | ||
+ | {{Tree-Unit|p-26a_34}} | ||
+ | {{Tree-Skip}} | ||
+ | {{Tree-Unit|b_10b}} | ||
+ | |- | ||
+ | | For more information about folders that merge vehicle groups, please see the corresponding [[Template:Tree-Group|template page]]. | ||
+ | | <pre>{{Tree-Group|f4f_group|F4F| | ||
+ | {{Tree-Unit|f4f-3}} | ||
+ | {{Tree-Arrow}} | ||
+ | {{Tree-Unit|f4f-4}} | ||
+ | }}</pre> | ||
+ | |style="text-align:center;vertical-align:top;height:170px;" colspan="3" | | ||
+ | {{Tree-Group|f4f_group|F4F| | ||
+ | {{Tree-Unit|f4f-3}} | ||
+ | {{Tree-Arrow}} | ||
+ | {{Tree-Unit|f4f-4}} | ||
+ | }} | ||
+ | |} |
Latest revision as of 15:01, 19 August 2024
This template is used at the start of a navigation table to define the number of columns and create a header. There are 2 parameters:
- the number of vehicle columns,
- (optional) the removal of the header ("Researchable Vehicles" & "Premium Vehicles").
Parameter | Code | Result | Example |
---|---|---|---|
The number of vehicle columns in the navigation table for each nation is set to a fixed number (3 - 7). 2 columns are always reserved for premium vehicles (on the right), the rest is for researchable vehicles. | {{Tree-Start|7}} |
Researchable vehicles: 5 columns Premium vehicles: 2 columns |
Category:USA aircraft |
{{Tree-Start|6}} |
Researchable vehicles: 4 columns Premium vehicles: 2 columns |
Category:China aircraft | |
{{Tree-Start|5}} |
Researchable vehicles: 3 columns Premium vehicles: 2 columns |
Category:Coastal Fleet USA | |
{{Tree-Start|4}} |
Researchable vehicles: 2 columns Premium vehicles: 2 columns |
Category:Coastal Fleet Britain | |
For custom navigation tables, the preset header can be removed to replace it with a custom one. When the second parameter is defined, the first parameter (number of columns) plays no role and can be left blank. | {{Tree-Start|3|without header}} |
The header "Researchable Vehicles" / "Premium Vehicles" is hidden. | Category:Dive bombers |
{{Tree-Start||without header}} |
Clean template source codes:
Navigation table with 7 columns
{{Tree-Start|7}} {{Tree-Line|I rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|II rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|III rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|IV rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|V rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|VI rank}} | | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-End}}
Navigation table with 6 columns
{{Tree-Start|6}} {{Tree-Line|I rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|II rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|III rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|IV rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|V rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|VI rank}} | | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-End}}
Navigation table with 5 columns
{{Tree-Start|5}} {{Tree-Line|I rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|II rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|III rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|IV rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|V rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|VI rank}} | | | |style="border-left: solid 1px #cccccc;"| | {{Tree-End}}
Navigation table with 4 columns
{{Tree-Start|4}} {{Tree-Line|I rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|II rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|III rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|IV rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|V rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|VI rank}} | | |style="border-left: solid 1px #cccccc;"| | {{Tree-End}}
Navigation table with 3 columns
{{Tree-Start|3}} {{Tree-Line|I rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|II rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|III rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|IV rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|V rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-Line|VI rank}} | |style="border-left: solid 1px #cccccc;"| | {{Tree-End}}
The template Tree-Start is used in combination with the template Template:Tree-End. Each tree opened with Tree-Start must be closed with Tree-End.
The following templates are also usually used in the navigation table:
- Template:Tree-Unit
- Template:Tree-Line
- Template:Tree-Arrow
- Template:Tree-Arrow-Right
- Template:Tree-Skip
- Template:Tree-Group
Read the documentation about these templates to get familiar with their use.
Example | Code | Result | ||
---|---|---|---|---|
The Template:Tree-Arrow used in between linear vehicles is the same one as the one used in the client. There must be no spaces or <br> tags present. If necessary, it's possible to make the arrow longer by setting an additional parameter. | {{Tree-Unit|p-26a_34_m2}} {{Tree-Arrow}} {{Tree-Unit|p-26a_33}} |
|||
The Template:Tree-Arrow-Right used in between vehicles is the same one as the one used in the client. There must be no spaces or <br> tags present. If necessary, it's possible to make the arrow longer by setting an additional parameter. | {{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}} |
|||
The Template:Tree-Skip is usually used in between premium and gift vehicles. It should contain no spaces or <br> tags as well. If necessary, it's possible to make the space shorter or longer by setting an additional parameter. | {{Tree-Unit|p-26a_34}} {{Tree-Skip}} {{Tree-Unit|b_10b}} |
|||
For more information about folders that merge vehicle groups, please see the corresponding template page. | {{Tree-Group|f4f_group|F4F| {{Tree-Unit|f4f-3}} {{Tree-Arrow}} {{Tree-Unit|f4f-4}} }} |