Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Announcements
Random page
Help about MediaWiki
SPS Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Fling Messages/doc
Template
Discussion
Canadian English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Special pages
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Description == {{Lua|Module:Fling Messages}} 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 == This template has only unnamed parameters, passed in pairs: a type followed by its message. The pipe <code>|</code> is the argument separator, so every line of dialogue occupies two arguments. Odd positions (1, 3, 5β¦) are the '''type''', one of: #'''girl''' or '''boy''': A line from the CC/BB character. Counts toward the block total and the progress counter. #'''you''': The player's reply. Shows ''(Response)'' in the progress column and does not count toward progress. #'''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 == <pre> {{Fling Messages | 1 = type (photo, <blank>) (girl, boy, you, pause) | 2 = message | type | message ... }} </pre> == Progress Column == 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 == If you want several independently numbered runs in one invocation, use multiple ''photo'' rows: each one closes the current block and resets the counter. == Notes == * Blank messages are skipped, but their type still occupies an argument slot, so keep pairs aligned. * A literal <code>=</code> in a message must be escaped as <pre>{{=}}</pre> or it will be read as a named parameter. * A literal <code>|</code> inside a message must be escaped as <pre>{{!}}</pre> * A trailing pipe after the last message creates an empty argument and shifts subsequent pairs. * Body rows carry the class <code>message-<var>type</var></code> (<code>message-girl</code>, <code>message-boy</code>, <code>message-you</code>, <code>message-pause</code>, <code>message-photo</code>) and the table carries <code>fling-table</code>, so colours are set and can be adjusted in [[MediaWiki:FlingMessages.css]]. == Sample output == <pre> {{Fling Messages |girl|Hello there! |you|Hi!`Hey. |girl|Wait here a moment. |pause|1 hour |girl|Here you are! |photo girl|''[Photo]'' }} </pre> {{Fling Messages |girl|Hello there! |you|Hi!`Hey. |girl|Wait here a moment. |pause|1 hour |girl|Here you are! |photo girl|''[Photo]'' }} ---- <pre> {{Fling Messages |girl|Wait here a moment. |pause|1 hour |girl|Here you are! }} </pre> {{Fling Messages |girl|Wait here a moment. |pause|1 hour |girl|Here you are! }} <includeonly>[[Category:Display Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to SPS Wiki are considered to be released under the CC-BY-SA license. If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, copied it from a public domain or similar free resource, are quoting material from elsewhere within a sufficiently limited scope to qualify as fair use, or are using material from SPS' games within the scope of our content policy.
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Fling Messages
(
edit
)
Template:Lua
(
edit
)
Module:Arguments
(
edit
)
Module:Fling Messages
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Fling Messages/doc
Add topic