• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:MapBranchingTable"

From Kancolle Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#invoke:MapBranchingTable|format}}</includeonly><noinclude>
+
==Parameter Naming==
 +
* id = <value>
 +
* <"From" Node> -> <"To" Node> = <argument value>
 +
** 0 = Start
 +
** 1, 2, 3, etc = Starting points, when a map has multiple starting points, depending on the branching rules.
 +
** <Node>/battle = Red node, which is also the default if nothing is assigned
 +
** <Node>/empty = Blue node
 +
** <Node>/storm = Purple node
 +
** <Node>/resource = Green node
 +
 
 +
To change the width of the table, you can use "width = auto" for a more compact table. If "width" is not stated, it will create a wide table that fits the screen on default. Table is always collapsed by default.
 +
 
 +
'''Note''': Make sure that you assign an unique id value for each table, because the buttons are linked by the id value. If all the tables you have created has the same value, the button will also show/hide all the tables when clicked.
 +
 
 +
With the use of a template, invoking the module through #invoke is no longer required and you can treat this module as a template.
 +
Each parameter line still requires a pipe character "|".
 +
 
 +
==Examples==
 +
===Example 1===
 
<pre>
 
<pre>
 
{{MapBranchingTable
 
{{MapBranchingTable
 +
|id = 1
 
|0 -> 1 = Some text...
 
|0 -> 1 = Some text...
 
|0 -> 2 = Some text...
 
|0 -> 2 = Some text...
Line 13: Line 32:
 
</pre>
 
</pre>
 
{{MapBranchingTable
 
{{MapBranchingTable
 +
|id = 1
 
|0 -> 1 = Some text...
 
|0 -> 1 = Some text...
 
|0 -> 2 = Some text...
 
|0 -> 2 = Some text...
Line 22: Line 42:
 
|C/storm -> D/empty = ...
 
|C/storm -> D/empty = ...
 
}}
 
}}
 +
 +
===Example 2===
 
<pre>
 
<pre>
 
{{MapBranchingTable
 
{{MapBranchingTable
|width = default
+
|id = E-1
 +
|width = auto
 
|0 -> 1 = Some text...
 
|0 -> 1 = Some text...
 
|0 -> 2 = Some text...
 
|0 -> 2 = Some text...
Line 36: Line 59:
 
</pre>
 
</pre>
 
{{MapBranchingTable
 
{{MapBranchingTable
|width = default
+
|id = E-1
 +
|width = auto
 
|0 -> 1 = Some text...
 
|0 -> 1 = Some text...
 
|0 -> 2 = Some text...
 
|0 -> 2 = Some text...
Line 46: Line 70:
 
|C/storm -> D/empty = ...
 
|C/storm -> D/empty = ...
 
}}
 
}}
</noinclude>
+
 
 +
==Credits==
 +
Special thanks to がか(gaka) for writing this module.

Revision as of 23:06, 2 February 2017

Parameter Naming

  • id = <value>
  • <"From" Node> -> <"To" Node> = <argument value>
    • 0 = Start
    • 1, 2, 3, etc = Starting points, when a map has multiple starting points, depending on the branching rules.
    • <Node>/battle = Red node, which is also the default if nothing is assigned
    • <Node>/empty = Blue node
    • <Node>/storm = Purple node
    • <Node>/resource = Green node

To change the width of the table, you can use "width = auto" for a more compact table. If "width" is not stated, it will create a wide table that fits the screen on default. Table is always collapsed by default.

Note: Make sure that you assign an unique id value for each table, because the buttons are linked by the id value. If all the tables you have created has the same value, the button will also show/hide all the tables when clicked.

With the use of a template, invoking the module through #invoke is no longer required and you can treat this module as a template. Each parameter line still requires a pipe character "|".

Examples

Example 1

{{MapBranchingTable
|id = 1
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Parameter Naming

  • id = <value>
  • <"From" Node> -> <"To" Node> = <argument value>
    • 0 = Start
    • 1, 2, 3, etc = Starting points, when a map has multiple starting points, depending on the branching rules.
    • <Node>/battle = Red node, which is also the default if nothing is assigned
    • <Node>/empty = Blue node
    • <Node>/storm = Purple node
    • <Node>/resource = Green node

To change the width of the table, you can use "width = auto" for a more compact table. If "width" is not stated, it will create a wide table that fits the screen on default. Table is always collapsed by default.

Note: Make sure that you assign an unique id value for each table, because the buttons are linked by the id value. If all the tables you have created has the same value, the button will also show/hide all the tables when clicked.

With the use of a template, invoking the module through #invoke is no longer required and you can treat this module as a template. Each parameter line still requires a pipe character "|".

Examples

Example 1

{{MapBranchingTable
|id = 1
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Template loop detected: Template:MapBranchingTable

Example 2

{{MapBranchingTable
|id = E-1
|width = auto
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Template loop detected: Template:MapBranchingTable

Credits

Special thanks to がか(gaka) for writing this module.

Example 2

{{MapBranchingTable
|id = E-1
|width = auto
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Parameter Naming

  • id = <value>
  • <"From" Node> -> <"To" Node> = <argument value>
    • 0 = Start
    • 1, 2, 3, etc = Starting points, when a map has multiple starting points, depending on the branching rules.
    • <Node>/battle = Red node, which is also the default if nothing is assigned
    • <Node>/empty = Blue node
    • <Node>/storm = Purple node
    • <Node>/resource = Green node

To change the width of the table, you can use "width = auto" for a more compact table. If "width" is not stated, it will create a wide table that fits the screen on default. Table is always collapsed by default.

Note: Make sure that you assign an unique id value for each table, because the buttons are linked by the id value. If all the tables you have created has the same value, the button will also show/hide all the tables when clicked.

With the use of a template, invoking the module through #invoke is no longer required and you can treat this module as a template. Each parameter line still requires a pipe character "|".

Examples

Example 1

{{MapBranchingTable
|id = 1
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Template loop detected: Template:MapBranchingTable

Example 2

{{MapBranchingTable
|id = E-1
|width = auto
|0 -> 1 = Some text...
|0 -> 2 = Some text...
|1 -> A = Some text...
|1 -> B/resource = [[DD]], [[CL]]
|1 -> C/storm =
* A
* list
|C/storm -> D/empty = ...
}}

Template loop detected: Template:MapBranchingTable

Credits

Special thanks to がか(gaka) for writing this module.

Credits

Special thanks to がか(gaka) for writing this module.