Template:Speech: Difference between revisions
Jump to navigation
Jump to search
novasector>Quacks m (added this to Misc styling templates) |
GreytideSkye (talk | contribs) m (→Meaning of variables: forgot a new line) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{|cellspacing=0 cellpadding=10 width=600| | {|cellspacing=0 cellpadding=10 width={{{width|600}}}| | ||
|width=50|{{{image|[[File:Assistant.png|right]]}}} | |width=50|{{{image|[[File:Assistant.png|right]]}}} | ||
|bgcolor="fcfbce"|'''{{{name|Assistant}}} says:'''<br>''"{{{text|I don't want to die!}}}"'' | |bgcolor="fcfbce"|'''{{{name|Assistant}}} says:'''<br>''"{{{text|I don't want to die!}}}"'' | ||
Line 29: | Line 29: | ||
text text text text text text text! | text text text text text text text! | ||
|image=[[File:Clown.png|50px|right]] | |image=[[File:Clown.png|50px|right]] | ||
}} | |||
and to test Width, | |||
<nowiki>{{Speech</nowiki> | |||
<nowiki>|name=Urist McDorf</nowiki> | |||
<nowiki>|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</nowiki> | |||
<nowiki>text text text text text text text!</nowiki> | |||
<nowiki>|image=[[File:AI.gif|right]]</nowiki> | |||
<nowiki>|width=90%</nowiki> | |||
<nowiki>}}</nowiki> | |||
yields... | |||
{{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|50px|right]] | |||
|width=90% | |||
}} | }} | ||
Line 36: | 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...<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...