Jump to content

Template:Fling Messages/doc

From SPS Wiki

Description

[edit source]

This template creates a collapsible dialogue table for a Phone Fling conversation, with a progress column and one row per line of dialogue.

List of Parameters

[edit source]

This template has only unnamed parameters, passed in pairs: a type followed by its message. The pipe | is the argument separator, so every line of dialogue occupies two arguments.

Odd positions (1, 3, 5…) are the type, one of:

  1. girl or boy: A line from the CC/BB character. Counts toward the block total and the progress counter.
  2. you: The player's reply. Shows (Response) in the progress column and does not count toward progress.
  3. pause: A time skip. Shows Pause in the progress column and does not count toward progress.

Additionally, the type can be tagged with photo to ends the current block and start a new progress counter, e.g. photo girl or photo you.

Even positions (2, 4, 6…) are the message, the line itself. Wikitext and templates are parsed. If two dialogue options are available, a backtick (`) splits the line into two message columns.

There are no named parameters.

Syntax

[edit source]
 {{Fling Messages
| 1 = type (photo, <blank>) (girl, boy, you, pause) | 2 = message
| type | message
...
}} 

Progress Column

[edit source]

Each block's denominator is the number of girl or boy rows in that block plus one for the terminating photo row. Three girl lines followed by a photo read 1/4, 2/4, 3/4, 4/4.

If the arguments end before a photo row, the final block is unterminated and shows 1/??, 2/??, and so on.

Special Params

[edit source]

If you want several independently numbered runs in one invocation, use multiple photo rows: each one closes the current block and resets the counter.

  • Blank messages are skipped, but their type still occupies an argument slot, so keep pairs aligned.
  • A literal = in a message must be escaped as
    {{=}}
    or it will be read as a named parameter.
  • A literal | inside a message must be escaped as
    {{!}}
  • A trailing pipe after the last message creates an empty argument and shifts subsequent pairs.
  • Body rows carry the class message-type (message-girl, message-boy, message-you, message-pause, message-photo) and the table carries fling-table, so colours are set and can be adjusted in MediaWiki:FlingMessages.css.

Sample output

[edit source]
{{Fling Messages
|girl|Hello there!
|you|Hi!`Hey.
|girl|Wait here a moment.
|pause|1 hour
|girl|Here you are!
|photo girl|''[Photo]'' }}
ProgressMessages
1/4Hello there!
(Response)Hi!Hey.
2/4Wait here a moment.
Pause1 hour
3/4Here you are!
4/4[Photo]

{{Fling Messages
|girl|Wait here a moment.
|pause|1 hour
|girl|Here you are!
}}
ProgressMessages
1/??Wait here a moment.
Pause1 hour
2/??Here you are!