Template:Dialogue: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
mNo edit summary
m (Swapped colours for End and Close and added Icons for completion options.)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
  | loop = {{ReverseBlue|This selection loops to another branch of this conversation which is already documented.}}
  | loop = {{ReverseBlue|This selection loops to another branch of this conversation which is already documented.}}
  | close = {{ReverseRed|This selection closes the dialogue.}}
  | close = {{ReverseGreen|This selection closes the dialogue.}}
  | end = {{ReverseGreen|This selection ends the mission.}}
  | end = [[File:Mission Selected.png|20px]] {{ReverseRed|This selection ends the mission.}}
  | accept = {{ReverseMaize|This selection completes the current task and accepts the next.}}
  | accept = [[File:Mission Selected2.png|20px]] {{ReverseMaize|This selection 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|This selection loops to another branch of this conversation which is already documented.}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 19:56, 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 This selection completes the current task and accepts the next.
{{Dialogue|accept}}
Close

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

This selection closes the dialogue.
{{Dialogue|close}}
End

For a dialogue option that ends the current mission.

Mission Selected.png This selection 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.

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

See also