Template:Dialogue: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
(A more useful template for flagging the effects of dialogue options.)
 
m (Removed "This selection" to save on space.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{x}}}
<includeonly>{{#switch: {{{1}}}
  | loop = {{ReverseBlue|This selection loops to another branch of this conversation which is already documented.}}
  | loop = {{ReverseBlue|Loops to another branch of this conversation which is already documented.}}
  | close = {{ReverseRed|This selection closes the dialogue.}}
  | close = {{ReverseGreen|Closes the dialogue.}}
  | end = {{ReverseGreen|This selection ends the mission.}}
  | end = [[File:Mission Selected.png|20px]] {{ReverseRed|Ends the mission.}}
  | accept = {{ReverseMaize|This selection accepts the next task.}}
  | accept = [[File:Mission Selected2.png|20px]] {{ReverseMaize|Completes the current task and accepts the next.}}
  | #default = {{ReverseBlue|This selection loops to another branch of this conversation which is already documented.}}
  | #default = {{ReverseBlue|Loops to another branch of this conversation which is already documented.}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 20:04, 16 February 2024

[edit] [purge] Documentation

Usage

This template is intended for use when documenting dialogue trees and the effects of certain choices.

Parameters

This template takes the following parameters:

Accept

For a dialogue option that ends the current and accepts the next task of a mission.

Mission Selected2.png Completes the current task and accepts the next.
{{Dialogue|accept}}
Close

For a dialogue option that closes the dialogue window (usually has no effect)

Closes the dialogue.
{{Dialogue|close}}
End

For a dialogue option that ends the current mission.

Mission Selected.png Ends the mission.
{{Dialogue|end}}
Loop

For a dialogue option that loops back to a previously documented piece of text. This is used by default for backwards compatibility.

Loops to another branch of this conversation which is already documented.
{{Dialogue|loop}}

See also