Шаблон:Speech: различия между версиями

imported>Jordie0608
(Created page with "<div align="center"> {| width=80% style="float:top; background-color:#ffeeee; text-align:center;" | <font size='3'>'''THIS PAGE NEEDS REVISING!'''</font> |- |The following pag...")
 
imported>Jordie0608
Нет описания правки
Строка 1: Строка 1:
<div align="center">
{|cellspacing=0 cellpadding=10 width=600|
{| width=80% style="float:top; background-color:#ffeeee; text-align:center;"
|width=50|{{{image|[[File:Assistant.png|right]]}}}&nbsp;
| <font size='3'>'''THIS PAGE NEEDS REVISING!'''</font>
|bgcolor="fcfbce"|'''{{{name|Assistant}}} says:'''<br>''"{{{text|I don't want to die!}}}"''
|-
|}<noinclude>
|The following page is out of date and needs to be revised. <br>The revision reason is: '''"{{{reason|No reason provided}}}"'''
|}
<includeonly>[[Category:Needs revision|{{FULLPAGENAME}}]]</includeonly>
</div>


<noinclude>
Adding this template adds the page to the following category: [[:Category:Needs revision]]


==Use==
== How to use ==


To add the tempate to a site simply write:
  <nowiki>{{Speech}}</nowiki>


{| style="background-color:#EEEEEE"
yields
| <code><nowiki>{{Needs revision</nowiki><br><nowiki>|reason = The image on this page is out of date.}}</nowiki></code>
|}


this will give the following result:
{{Speech}}


{| width=80% style="float:top; background-color:#ffeeee; text-align:center;"
  <nowiki>{{Speech</nowiki>
| <font size='3'>'''THIS PAGE NEEDS REVISING!'''</font>
  <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>
|The following page is out of date and needs to be revised. <br>The revision reason is: '''"The image on this page is out of date."'''
 
|}
  <nowiki>text text text text text text text!</nowiki>
[[Category:Templates]]
  <nowiki>|image=[[File:Clown.png|right]]</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:Clown.png|50px|right]]
}}
 
 
== Meaning of variables ==
 
'''name''' = The name of the speaker, defaults to "Assistant"<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]]
 
[[Category:templates]]
</noinclude>
</noinclude>

Версия от 16:25, 15 апреля 2014

Assistant.png
 
Assistant says:
"I don't want to die!"


How to use

 {{Speech}}

yields

Assistant.png
 
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...

Clown.png
 
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!"


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 Assistant.png