Template:Speech: Difference between revisions
Jump to navigation
Jump to search
GreytideSkye (talk | contribs) (Width added, for those extra horrendous lengthy speeches.) |
GreytideSkye (talk | contribs) m (→Meaning of variables: forgot a new line) |
||
Line 58: | Line 58: | ||
'''name''' = The name of the speaker, defaults to "Assistant"<br> | '''name''' = The name of the speaker, defaults to "Assistant"<br> | ||
'''text''' = The spoken text, defaults to "I don't want to die!"<br> | '''text''' = The spoken text, defaults to "I don't want to die!"<br> | ||
'''image''' = The image of the speaker. Defaults to Assistant.png [[File:Assistant.png]] | '''image''' = The image of the speaker. Defaults to Assistant.png [[File:Assistant.png]]<br> | ||
'''width''' = The width of the text box. Defaults to 600. Anything that can be passed into a MediaWiki's table's "width" can apply. 90%, a flat integer representing pixels e.g. 900... | '''width''' = The width of the text box. Defaults to 600. Anything that can be passed into a MediaWiki's table's "width" can apply. 90%, a flat integer representing pixels e.g. 900...<br> | ||
[[Category:templates]] | [[Category:templates]] | ||
[[Category:Misc Styling Templates]] | [[Category:Misc Styling Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:05, 14 September 2024
![]() |
Assistant says: "I don't want to die!" |
How to use
{{Speech}}
yields
![]() |
Assistant says: "I don't want to die!" |
{{Speech |name=Urist McDorf |text=Hello. Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text! |image=[[File:Clown.png|right]] }}
yields...
Urist McDorf says: "Hello. Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text!" |
and to test Width,
{{Speech |name=Urist McDorf |text=Hello. Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text! |image=[[File:AI.gif|right]] |width=90% }}
yields...
Meaning of variables
name = The name of the speaker, defaults to "Assistant"
text = The spoken text, defaults to "I don't want to die!"
image = The image of the speaker. Defaults to Assistant.png
width = The width of the text box. Defaults to 600. Anything that can be passed into a MediaWiki's table's "width" can apply. 90%, a flat integer representing pixels e.g. 900...