Template:Dialogue/doc: Difference between revisions
Created page with "<templatedata> { "params": { "1 left image": { "label": "Line 1 left image", "description": "Image to use on the left of the first dialogue line", "example": "BTD6 Patch thumbs up.png", "type": "wiki-file-name" }, "1 left link": { "label": "Line 1 left image link", "description": "If specified, makes the left image on the first dialogue line link to this when clicked on", "example": "Patch", "type": "wiki-page-name" }, "1 right image":..." |
m i'll redo the documentation later |
||
| (One intermediate revision by one other user not shown) | |||
| Line 13: | Line 13: | ||
"example": "Patch", | "example": "Patch", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"1 left speak": { | |||
"label": "Line 1 left speak", | |||
"description": "If set to anything, adds an arrow that points to the left image of the first dialogue line", | |||
"example": "y", | |||
"type": "boolean" | |||
}, | }, | ||
"1 right image": { | "1 right image": { | ||
| Line 37: | Line 43: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"1 right speak": { | |||
"label": "Line 1 right speak", | |||
"description": "If set to anything, adds an arrow that points to the right image of the first dialogue line", | |||
"example": "y", | |||
"type": "boolean" | |||
}, | }, | ||
"1 right image flip": { | "1 right image flip": { | ||
| Line 61: | Line 73: | ||
"example": "Patch", | "example": "Patch", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"2 left speak": { | |||
"label": "Line 2 left speak", | |||
"description": "If set to anything, adds an arrow that points to the left image of the second dialogue line", | |||
"example": "y", | |||
"type": "boolean" | |||
}, | }, | ||
"2 right image": { | "2 right image": { | ||
| Line 85: | Line 103: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"2 right speak": { | |||
"label": "Line 2 right speak", | |||
"description": "If set to anything, adds an arrow that points to the right image of the second dialogue line", | |||
"example": "y", | |||
"type": "boolean" | |||
}, | }, | ||
"2 right image flip": { | "2 right image flip": { | ||
| Line 99: | Line 123: | ||
} | } | ||
}, | }, | ||
"description": "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.", | "description": "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.)", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1 left image", | "1 left image", | ||
"1 left link", | "1 left link", | ||
"1 left speak", | |||
"1 right image", | "1 right image", | ||
"1 text align", | "1 text align", | ||
"1 text", | "1 text", | ||
"1 right speak", | |||
"1 right image flip", | "1 right image flip", | ||
"1 right link", | "1 right link", | ||
| Line 111: | Line 137: | ||
"2 left image", | "2 left image", | ||
"2 left link", | "2 left link", | ||
"2 left speak", | |||
"2 right image", | "2 right image", | ||
"2 text align", | "2 text align", | ||
"2 right speak", | |||
"2 right image flip", | "2 right image flip", | ||
"2 right link" | "2 right link" | ||
| Line 121: | Line 149: | ||
==Example usage== | ==Example usage== | ||
<pre>{{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 | |||
}}</pre> | |||
{{dialogue | {{dialogue | ||
| | |left image 1=BTD6 Patch idle.png | ||
| | |right image 1=BTD6 Scoop idle.png | ||
|right image 1 flip=y | |||
|1 | |name 1=Scoop | ||
|1 right | |text 1 align=right | ||
|1 | |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 | |||
|2 | |name 2=Patch | ||
|2 | |text 2=Seriously? | ||
|2 | |text 2 align=left | ||
|2 | |||
| | |left image 3=BTD6 Patch idle.png | ||
| | |right image 3=BTD6 Scoop idle.png | ||
|right image 3 flip=y | |||
|3 | |name 3=Scoop | ||
|3 | |text 3=Highest form of humor... | ||
|3 | |text 3 align=right | ||
}}<includeonly>[[Category:Formatting templates]]</includeonly> | }}<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Incomplete documentation]]</noinclude> | ||
Latest revision as of 10:31, 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... |