Difference between revisions of "Template:Word Bubble"
Decomposer (talk | contribs) (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.) |
Decomposer (talk | contribs) (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: | + | 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 | + | 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: | + | {{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 = | + | |color = #dc143c |
− | |color2 = | + | |color2 = #143 |
|textcolor = white | |textcolor = white | ||
− | |textcolor2 = | + | |textcolor2 = lavender |
|line = yellow | |line = yellow | ||
− | |fonttype = | + | |fonttype = Coustard |
|name = User | |name = User | ||
− | |sig = | + | |sig = This is a signature |
− | |time = | + | |time = {{{time}}} |
− | |text = | + | |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 = | + | |color = #dc143c |
− | |color2 = | + | |color2 = #143 |
|textcolor = white | |textcolor = white | ||
− | |textcolor2 = | + | |textcolor2 = lavender |
|line = yellow | |line = yellow | ||
− | |fonttype = | + | |fonttype = Coustard |
|name = User | |name = User | ||
− | |sig = | + | |sig = This is a signature |
− | |time = | + | |time = 23:08, March 14, 2019 (EDT) |
− | |text = | + | |text = Hello World |
}} | }} | ||
[[Category:Message templates]] | [[Category:Message templates]] | ||
</noinclude> | </noinclude> |
Revision as of 23:09, March 14, 2019
[[File:{{{image}}}|50px]] |
|
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:
|