• 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 "Module:MapBranching/doc"

From Kancolle Wiki
Jump to navigation Jump to search
(Created page with "==Parameter Naming== Module invocation is done via passing parameters and arguments. These parameter names and argument values are all done in the following format *<"From" No...")
 
Line 8: Line 8:
 
*{#invoke:MapBranching | branchingTemplate<br>
 
*{#invoke:MapBranching | branchingTemplate<br>
 
|start_to_A = This is the branching info from the start node to node A<br>
 
|start_to_A = This is the branching info from the start node to node A<br>
 +
|start_to_start-1 = This is branching info for starting at the first start node. Eg, when CTF/STF determines your starting node
 
|A_to_B = This is branching info from node A to node B<br>
 
|A_to_B = This is branching info from node A to node B<br>
 
|A_to_C = This is branching info from node A to node C<br>
 
|A_to_C = This is branching info from node A to node C<br>
Line 19: Line 20:
 
There are only two types of nodes that can be used in either the "From" node or "To" node
 
There are only two types of nodes that can be used in either the "From" node or "To" node
 
*''Start'' => This indicates the starting node when you first load into a map. This is the starting node that comes before even node A.
 
*''Start'' => This indicates the starting node when you first load into a map. This is the starting node that comes before even node A.
 +
*''Start-#'' => Where # is 1 through 5 (because when are we really going to have more than 5 start points). This will simply indicate which start position. Refer to the Sprint 2016 event page for examples.
 
*''Any alphabet'' => These respectively reflect the node names.
 
*''Any alphabet'' => These respectively reflect the node names.
 
===Example Invocation===
 
===Example Invocation===
Line 38: Line 40:
 
|F_to_H = LoS check for H. <br>Failure sends to G
 
|F_to_H = LoS check for H. <br>Failure sends to G
 
|F_to_G = 5 or more CL}}
 
|F_to_G = 5 or more CL}}
 
  
 
==Credit==
 
==Credit==
 
Module written by [[User:Remi_Scarlet|Remi_Scarlet]]
 
Module written by [[User:Remi_Scarlet|Remi_Scarlet]]

Revision as of 01:09, 6 May 2016

Parameter Naming

Module invocation is done via passing parameters and arguments. These parameter names and argument values are all done in the following format

  • <"From" Node>_to_<"To" Node> = <argument value>

except for assigning node labels which is shown below.

All parameters still need a pipe character, "|", before the parameter call. Eg, (replace '{' with '{{')

  • {#invoke:MapBranching | branchingTemplate

|start_to_A = This is the branching info from the start node to node A
|start_to_start-1 = This is branching info for starting at the first start node. Eg, when CTF/STF determines your starting node |A_to_B = This is branching info from node A to node B
|A_to_C = This is branching info from node A to node C
}

All parameters passed to the MapBranching module are named under a simple scheme as described in each subsequent section.
You may add span and css tags as you wish as they will be pasted in directly to the page. Examples are below.

Everything is Case-Insensitive'

Node Names

There are only two types of nodes that can be used in either the "From" node or "To" node

  • Start => This indicates the starting node when you first load into a map. This is the starting node that comes before even node A.
  • Start-# => Where # is 1 through 5 (because when are we really going to have more than 5 start points). This will simply indicate which start position. Refer to the Sprint 2016 event page for examples.
  • Any alphabet => These respectively reflect the node names.

Example Invocation

{{#invoke:MapBranching|branchingTemplate
|B_to_C = Active Branching
|B_to_D = Active Branching
|C_to_E = Change of E with 4 or more CL?<br>Failure on LoS check to H
|C_to_H = LoS check <br> Failure sends to E
|F_to_H = LoS check for H. <br>Failure sends to G
|F_to_G = 5 or more CL}}

Results in

Show/Hide Branching Rules
Branching Rules
NodeSplitCondition
BCActive Branching
DActive Branching
CEChange of E with 4 or more CL?
Failure on LoS check to H
HLoS check
Failure sends to E
FG5 or more CL
HLoS check for H.
Failure sends to G

Credit

Module written by Remi_Scarlet