Template:Dialogue: Difference between revisions
Hubianzhen (talk | contribs) mNo edit summary |
this redesign was a long time coming |
||
| Line 1: | Line 1: | ||
<includeonly>{|class="wikitable" | <includeonly>{|class="wikitable" | ||
{{#if:{{{ | {{#if:{{{left image 1|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 1|missing image.png}}}|50px]]}} | ||
{{!}}{{#if:{{{left image 1|}}}|{{#if:{{{right 1 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 1|}}}|colspan="3"|colspan="5"}} | |||
}} style="text-align:{{{text 1 align|left}}}"{{!}}{{#if:{{{name 1|}}}|'''{{#if:{{{link 1|}}}|[[{{{link 1|}}}|{{{name 1|}}}]]|{{{name 1|}}}}}'''<br>}}{{{text 1|}}} | |||
|{{#if:{{{1 | {{#if:{{{right image 1|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 1 flip|}}}|<div class="flip">}}[[File:{{{right image 1|missing image.png}}}|50px]]{{#if:{{{right image 1 flip|}}}|</div>}}}} | ||
|{{#if:{{{ | |||
}} style="text-align:{{{1 | |||
{{#if:{{{1 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{2 | {{#if:{{{text 2|}}}|{{#if:{{{left image 2|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 2|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 2|}}}|{{#if:{{{right 2 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 2|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 2 align|left}}}"{{!}}{{#if:{{{name 2|}}}|'''{{#if:{{{link 2|}}}|[[{{{link 2|}}}|{{{name 2|}}}]]|{{{name 2|}}}}}'''<br>}}{{{text 2|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 2|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 2 flip|}}}|<div class="flip">}}[[File:{{{right image 2|missing image.png}}}|50px]]{{#if:{{{right image 2 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{2 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{2 | |||
{{#if:{{{2 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{3 | {{#if:{{{text 3|}}}|{{#if:{{{left image 3|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 3|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 3|}}}|{{#if:{{{right 3 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 3|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 3 align|left}}}"{{!}}{{#if:{{{name 3|}}}|'''{{#if:{{{link 3|}}}|[[{{{link 3|}}}|{{{name 3|}}}]]|{{{name 3|}}}}}'''<br>}}{{{text 3|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 3|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 3 flip|}}}|<div class="flip">}}[[File:{{{right image 3|missing image.png}}}|50px]]{{#if:{{{right image 3 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{3 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{3 | |||
{{#if:{{{3 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{4 | {{#if:{{{text 4|}}}|{{#if:{{{left image 4|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 4|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 4|}}}|{{#if:{{{right 4 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 4|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 4 align|left}}}"{{!}}{{#if:{{{name 4|}}}|'''{{#if:{{{link 4|}}}|[[{{{link 4|}}}|{{{name 4|}}}]]|{{{name 4|}}}}}'''<br>}}{{{text 4|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 4|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 4 flip|}}}|<div class="flip">}}[[File:{{{right image 4|missing image.png}}}|50px]]{{#if:{{{right image 4 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{4 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{4 | |||
{{#if:{{{4 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{5 | {{#if:{{{text 5|}}}|{{#if:{{{left image 5|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 5|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 5|}}}|{{#if:{{{right 5 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 5|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 5 align|left}}}"{{!}}{{#if:{{{name 5|}}}|'''{{#if:{{{link 5|}}}|[[{{{link 5|}}}|{{{name 5|}}}]]|{{{name 5|}}}}}'''<br>}}{{{text 5|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 5|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 5 flip|}}}|<div class="flip">}}[[File:{{{right image 5|missing image.png}}}|50px]]{{#if:{{{right image 5 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{5 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{5 | |||
{{#if:{{{5 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{6 | {{#if:{{{text 6|}}}|{{#if:{{{left image 6|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 6|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 6|}}}|{{#if:{{{right 6 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 6|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 6 align|left}}}"{{!}}{{#if:{{{name 6|}}}|'''{{#if:{{{link 6|}}}|[[{{{link 6|}}}|{{{name 6|}}}]]|{{{name 6|}}}}}'''<br>}}{{{text 6|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 6|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 6 flip|}}}|<div class="flip">}}[[File:{{{right image 6|missing image.png}}}|50px]]{{#if:{{{right image 6 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{6 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{6 | |||
{{#if:{{{6 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{7 | {{#if:{{{text 7|}}}|{{#if:{{{left image 7|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 7|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 7|}}}|{{#if:{{{right 7 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 7|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 7 align|left}}}"{{!}}{{#if:{{{name 7|}}}|'''{{#if:{{{link 7|}}}|[[{{{link 7|}}}|{{{name 7|}}}]]|{{{name 7|}}}}}'''<br>}}{{{text 7|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 7|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 7 flip|}}}|<div class="flip">}}[[File:{{{right image 7|missing image.png}}}|50px]]{{#if:{{{right image 7 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{7 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{7 | |||
{{#if:{{{7 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{8 | {{#if:{{{text 8|}}}|{{#if:{{{left image 8|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 8|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 8|}}}|{{#if:{{{right 8 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 8|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 8 align|left}}}"{{!}}{{#if:{{{name 8|}}}|'''{{#if:{{{link 8|}}}|[[{{{link 8|}}}|{{{name 8|}}}]]|{{{name 8|}}}}}'''<br>}}{{{text 8|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 8|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 8 flip|}}}|<div class="flip">}}[[File:{{{right image 8|missing image.png}}}|50px]]{{#if:{{{right image 8 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{8 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{8 | |||
{{#if:{{{8 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{9 | {{#if:{{{text 9|}}}|{{#if:{{{left image 9|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 9|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 9|}}}|{{#if:{{{right 9 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 9|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 9 align|left}}}"{{!}}{{#if:{{{name 9|}}}|'''{{#if:{{{link 9|}}}|[[{{{link 9|}}}|{{{name 9|}}}]]|{{{name 9|}}}}}'''<br>}}{{{text 9|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 9|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 9 flip|}}}|<div class="flip">}}[[File:{{{right image 9|missing image.png}}}|50px]]{{#if:{{{right image 9 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{9 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{9 | |||
{{#if:{{{9 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|- | |- | ||
{{#if:{{{10 | {{#if:{{{text 10|}}}|{{#if:{{{left image 10|}}}|{{!}}style="width:50px"{{!}}[[File:{{{left image 10|missing image.png}}}|50px]]}} | ||
{{#if:{{{ | {{!}}{{#if:{{{left image 10|}}}|{{#if:{{{right 10 image|}}}|colspan="1"|colspan="3"}}|{{#if:{{{right image 10|}}}|colspan="3"|colspan="5"}} | ||
}} style="text-align:{{{text 10 align|left}}}"{{!}}{{#if:{{{name 10|}}}|'''{{#if:{{{link 10|}}}|[[{{{link 10|}}}|{{{name 10|}}}]]|{{{name 10|}}}}}'''<br>}}{{{text 10|}}} | |||
{{!}}{{#if:{{{ | {{#if:{{{right image 10|}}}|{{!}}style="width:50px"{{!}}{{#if:{{{right image 10 flip|}}}|<div class="flip">}}[[File:{{{right image 10|missing image.png}}}|50px]]{{#if:{{{right image 10 flip|}}}|</div>}}}}}} | ||
|{{#if:{{{10 | |||
|{{#if:{{{ | |||
}} style="text-align:{{{10 | |||
{{#if:{{{10 | |||
{{!}}style="width:50px"{{!}}{{#if:{{{ | |||
|}</includeonly><noinclude>{{/doc}}</noinclude> | |}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Revision as of 08:19, 20 March 2025
Used to format a list of dialogue in for things such as BTD6 Quests, BATTD Adventures, and Bloons Pop! dialogue. Currently supports up to 10 lines per template. (This documentation is outdated.)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Line 1 left image | 1 left image | Image to use on the left of the first dialogue line
| File | optional |
| Line 1 left image link | 1 left link | If specified, makes the left image on the first dialogue line link to this when clicked on
| Page name | optional |
| Line 1 left speak | 1 left speak | If set to anything, adds an arrow that points to the left image of the first dialogue line
| Boolean | optional |
| Line 1 right image | 1 right image | Image to use on the right of the first dialogue line | File | optional |
| Line 1 text alignment | 1 text align | Sets the alignment of the first dialogue line
| String | optional |
| Line 1 text | 1 text | Text to use for the first dialogue line
| String | required |
| Line 1 right speak | 1 right speak | If set to anything, adds an arrow that points to the right image of the first dialogue line
| Boolean | optional |
| Line 1 right image flip | 1 right image flip | If set to anything, horizontally flips the right image of the first dialogue line
| Boolean | optional |
| Line 1 right image link | 1 right link | If specified, makes the right image on the first dialogue line link to this when clicked on
| Page name | optional |
| Line 2 text | 2 text | Text to use for the second dialogue line
| String | required |
| Line 2 left image | 2 left image | Image to use on the left of the second dialogue line
| File | optional |
| Line 2 left image link | 2 left link | If specified, makes the left image on the second dialogue line link to this when clicked on
| Page name | optional |
| Line 2 left speak | 2 left speak | If set to anything, adds an arrow that points to the left image of the second dialogue line
| Boolean | optional |
| Line 2 right image | 2 right image | Image to use on the right of the second dialogue line | File | optional |
| Line 2 text alignment | 2 text align | Sets the alignment of the second dialogue line
| String | optional |
| Line 2 right speak | 2 right speak | If set to anything, adds an arrow that points to the right image of the second dialogue line
| Boolean | optional |
| Line 2 right image flip | 2 right image flip | If set to anything, horizontally flips the right image of the second dialogue line
| Boolean | optional |
| Line 2 right image link | 2 right link | If specified, makes the right image on the second dialogue line link to this when clicked on
| Page name | optional |
Example usage
{{dialogue
|left image 1=BTD6 Patch idle.png
|right image 1=BTD6 Scoop idle.png
|right image 1 flip=y
|name 1=Scoop
|text 1 align=right
|text 1=That must be the Party Bloon! It's got a great costume on, so it can't be all BAD...
|left image 2=BTD6 Patch idle.png
|right image 2=BTD6 Scoop idle.png
|right image 2 flip=y
|name 2=Patch
|text 2=Seriously?
|text 2 align=left
|left image 3=BTD6 Patch idle.png
|right image 3=BTD6 Scoop idle.png
|right image 3 flip=y
|name 3=Scoop
|text 3=Highest form of humor...
|text 3 align=right
}}
| Scoop That must be the Party Bloon! It's got a great costume on, so it can't be all BAD... |
||||
| Patch Seriously? |
||||
| Scoop Highest form of humor... |
||||