Difference between revisions of "Template:Word Bubble"

From Nookipedia, the Animal Crossing wiki
(Changed usage. Removed (unnecessary?) alternate command regarding the usage of {{{1|}}}. Moved to message templates. Note that I used subst: because of the nature of talk pages, and how, upon changing the template, the content shouldn't be changed.)
(Added usage.)
Line 143: Line 143:
 
This template creates a "word bubble" that you can use on talk pages and wherever else discussions take place. An example can be seen both above and below.
 
This template creates a "word bubble" that you can use on talk pages and wherever else discussions take place. An example can be seen both above and below.
 
==Usage==
 
==Usage==
To make your own version of this template you first must create a template '''in your userspace''' (usually TalkBubble). For example, if your username is "Username", then you make your word bubble at <tt>User:Username/TalkBubble</tt>. On that page, add the following code:
+
To make your own version of this template you first must create a template '''in your userspace''' (usually the subpage <tt>TalkBubble</tt>). For example, if your username is "Username", then you make your word bubble at <tt>User:ExampleUser/TalkBubble</tt>. On that page, add the following code:
 
<pre>
 
<pre>
 
{{Word Bubble  
 
{{Word Bubble  
Line 159: Line 159:
 
}}
 
}}
 
</pre>
 
</pre>
You can fill in the fields to whatever you want, with the colors either being in hexadecimal notation (e.g. #FFF) or in words (e.g. white); a list of colors can be found at Wikipedia's [[wikipedia:List of colors|List of colors]] article. Note that for the image field, you have to leave out the "File:" part of the filename. Once you have filled in the fields, your word bubble is ready to be used. On talk pages, you can now include it with this code:
+
You can fill in the fields to whatever you want, with the colors either being in hexadecimal notation (e.g. #FFF) or in words (e.g. white); a list of colors can be found at [[Help:Colors]]. Note that for the image field, you have to leave out the "File:" part of the filename. Once you have filled in the fields, your word bubble is ready to be used. On talk pages, you can now include it with this code:
 
<pre>
 
<pre>
{{subst:User:Username/TalkBubble|text=Blah blah blah.|time=~~~~~}}
+
{{subst:User:ExampleUser/TalkBubble|text=Blah blah blah.|time=~~~~~}}
 
</pre>
 
</pre>
  
 
== Example ==
 
== Example ==
 +
[[User:ExampleUser/TalkBubble]] contains the following:
 
<pre>
 
<pre>
 
{{Word Bubble
 
{{Word Bubble
 
|image      = Wiki.png
 
|image      = Wiki.png
|color      = black
+
|color      = #dc143c
|color2    = red
+
|color2    = #143
 
|textcolor  = white
 
|textcolor  = white
|textcolor2 = blue
+
|textcolor2 = lavender
 
|line      = yellow
 
|line      = yellow
|fonttype  = Times New Roman
+
|fonttype  = Coustard
 
|name      = User
 
|name      = User
|sig        = Hey how's it going?
+
|sig        = This is a signature
|time      = ~~~~~
+
|time      = {{{time}}}
|text      = Hi. My name is User.
+
|text      = {{{text}}}
 
}}
 
}}
 
</pre>
 
</pre>
  
 +
Running <tt><nowiki>{{subst:User:ExampleUser/TalkBubble|text=Hello World|time=~~~~~}}</nowiki></tt> will create the following:
 +
<!-- For those who will edit this template in the future, please replace the substituted template below with
 +
    {{subst:User:ExampleUser/TalkBubble|text=Hello World|time=~~~~~}} -->
 
{{Word Bubble
 
{{Word Bubble
 
|image      = Wiki.png
 
|image      = Wiki.png
|color      = black
+
|color      = #dc143c
|color2    = red
+
|color2    = #143
 
|textcolor  = white
 
|textcolor  = white
|textcolor2 = blue
+
|textcolor2 = lavender
 
|line      = yellow
 
|line      = yellow
|fonttype  = Times New Roman
+
|fonttype  = Coustard
 
|name      = User
 
|name      = User
|sig        = Hey how's it going?
+
|sig        = This is a signature
|time      = 20:50, April 28, 2010 (UTC)
+
|time      = 23:08, March 14, 2019 (EDT)
|text      = Hi. My name is User.
+
|text      = Hello World
 
}}
 
}}
  
 
[[Category:Message templates]]
 
[[Category:Message templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:09, March 14, 2019

[[File:{{{image}}}|50px]]
[[User:{{{name}}}|{{{name}}}]] – {{{sig}}}
[[User talk:{{{name}}}|TALK]]
{{{text}}}

This template creates a "word bubble" that you can use on talk pages and wherever else discussions take place. An example can be seen both above and below.

Usage

To make your own version of this template you first must create a template in your userspace (usually the subpage TalkBubble). For example, if your username is "Username", then you make your word bubble at User:ExampleUser/TalkBubble. On that page, add the following code:

{{Word Bubble 
|image      = 
|color      = 
|color2     = 
|textcolor  = 
|textcolor2 = 
|line       = 
|fonttype   = 
|name       = 
|sig        = 
|time       = {{{time}}}
|text       = {{{text}}}
}}

You can fill in the fields to whatever you want, with the colors either being in hexadecimal notation (e.g. #FFF) or in words (e.g. white); a list of colors can be found at Help:Colors. Note that for the image field, you have to leave out the "File:" part of the filename. Once you have filled in the fields, your word bubble is ready to be used. On talk pages, you can now include it with this code:

{{subst:User:ExampleUser/TalkBubble|text=Blah blah blah.|time=~~~~~}}

Example

User:ExampleUser/TalkBubble contains the following:

{{Word Bubble
|image      = Wiki.png
|color      = #dc143c
|color2     = #143
|textcolor  = white
|textcolor2 = lavender
|line       = yellow
|fonttype   = Coustard
|name       = User
|sig        = This is a signature
|time       = {{{time}}}
|text       = {{{text}}}
}}

Running {{subst:User:ExampleUser/TalkBubble|text=Hello World|time=~~~~~}} will create the following:

Wiki.png
User – This is a signature
TALK – 23:08, March 14, 2019 (EDT)
Hello World