Template:Word bubble: Difference between revisions

From Pikmin Fanon
m (Cheepy-Cheepy moved page Template:Word Bubble to Template:Word bubble without leaving a redirect)
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="background:transparent;"
{| style="background:transparent;"
| valign="center" | [[File:{{{image}}}|50px]]
| valign="center" | [[File:{{{image}}}|{{{imagesize|50px}}}]]
|
|
{| width="100%" border="0" cellpadding="0" cellspacing="0"
{| width="100%" border="0" cellpadding="0" cellspacing="0"
Line 70: Line 70:
| style="background:gray;" width="1" height="1" |
| style="background:gray;" width="1" height="1" |
| style="background:{{{color2}}};" colspan="9" width="9" height="1" |
| style="background:{{{color2}}};" colspan="9" width="9" height="1" |
| style="background:{{{color2}}};" height="1" style="background:{{{line}}};" |
| style="background:{{{color2}}};" height="{{{lineheight|1}}}" style="background:{{{line}}};" |
| style="background:{{{color2}}};" colspan="4" width="4" height="1" |
| style="background:{{{color2}}};" colspan="4" width="4" height="1" |
| style="background:gray;" width="1" height="1" |
| style="background:gray;" width="1" height="1" |
Line 139: Line 139:
| colspan="4" width="4" height="1" |
| colspan="4" width="4" height="1" |
|}
|}
|}
|}<noinclude>
<noinclude>
{{clean}}
 
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 with your username in it. For example, if your username is "User", then you make your word bubble at "Template:User". Next, on your template page ("Template:User"), add the following code.
To make your own version of this template you first must create a template with your username in it. For example, if your username is "User", then you make your word bubble at "Template:User". Next, on your template page ("Template:User"), add the following code.
<pre>
<pre>
{{Word Bubble
{{Word bubble
|image     =  
|image=
|color     =  
|color=
|color2     =  
|color2=
|textcolor =  
|textcolor=
|textcolor2 =  
|textcolor2=
|line       =  
|line=
|fonttype   =  
|fonttype=
|name       =  
|name=
|sig       =  
|sig=
|time       = {{{time}}}
|time={{{time}}}
|text       = {{{text}}}
|text={{{text}}}
}}
}}
</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 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:
<pre>
<pre>
{{<name of template>|text=Blah blah blah.|time=~~~~~}}
{{<name of template>|text=Blah blah blah.|time=~~~~~}}
Line 170: Line 171:


== Advanced ==
== Advanced ==
It is also possible to use a [[w:c:help:Help:Custom edit buttons|custom edit button]] to automatically insert your Word Bubble. To do this, add this code to [[Special:MyPage/monaco.js]].
It is also possible to use a custom edit button to automatically insert your word bubble. To do this, add this code to [[Special:MyPage/monaco.js]].
<pre>
<pre>
  if (mwCustomEditButtons) {
  if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png",
     "imageFile": "http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png",
     "speedTip": "Insert Word Bubble",
     "speedTip": "Insert word bubble",
     "tagOpen": "{{<name of template>|text=",
     "tagOpen": "{{<name of template>|text=",
     "tagClose": "<nowiki>|time=~~~~~}}",
     "tagClose": "<nowiki>|time=~~~~~}}",
Line 182: Line 183:
</pre>
</pre>


Note that this will only work if you are using the Monaco skin; if you are using the Monobook skin, you must add the code above to <code>User:Username/monobook.js</code>, replacing "Username" with your username. Once you have put the code at your personal js subpage, replace "<name of template>" with the name of the template you use for your Word Bubble.
Note that this will only work if you are using the Monaco skin; if you are using the Monobook skin, you must add the code above to <code>User:Username/monobook.js</code>, replacing "Username" with your username. Once you have put the code at your personal js subpage, replace "<name of template>" with the name of the template you use for your word bubble.


After doing a hard refresh, when you edit, you will now see an image (http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png) appear in the edit toolbar. Clicking this image will put this code in an article:
After doing a hard refresh, when you edit, you will now see an image (http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png) appear in the edit toolbar. Clicking this image will put this code in an article:
Line 189: Line 190:
</pre>
</pre>


Replace <nowiki>"Blah blah blah<nowiki>"</nowiki> with the text you want to use, save the page, and you are finished. The <nowiki>"<nowiki>"</nowiki> is included in the code so that the 21:38, 27 June 2009 (UTC) is not implemented your personal javascript subpage, would would ruin the function of the "time" field. Also note that if your Word Bubble does not have the "text" field in it, you must remove the "text=" field in your personal javascript subpage so that when you click the custom edit button, the following code will be placed in an article:
Replace <nowiki>"Blah blah blah<nowiki>"</nowiki> with the text you want to use, save the page, and you are finished. The <nowiki>"<nowiki>"</nowiki> is included in the code so that the 21:38, 27 June 2009 (UTC) is not implemented your personal javascript subpage, would would ruin the function of the "time" field. Also note that if your word bubble does not have the "text" field in it, you must remove the "text=" field in your personal javascript subpage so that when you click the custom edit button, the following code will be placed in an article:
<pre>
<pre>
{{<name of template>|Blah blah blah<nowiki>|time=~~~~~}}
{{<name of template>|Blah blah blah<nowiki>|time=~~~~~}}
Line 195: Line 196:


== Example ==
== Example ==
More examples can be found by looking through [[:Category:UserTalk templates]].
More examples can be found by looking through [[:Category:Word bubble templates]].
<pre>
<pre>
{{Word Bubble
{{word bubble
|image     = Wiki.png
|image=Wiki.png
|color     = black
|color=black
|color2     = red
|color2=red
|textcolor = white
|textcolor=white
|textcolor2 = blue
|textcolor2=blue
|line       = yellow
|line=yellow
|fonttype   = Times New Roman
|fonttype=Times New Roman
|name       = User
|name=User
|sig       = Hey how's it going?
|sig=Hey, how's it going?
|time       = ~~~~~
|time=~~~~
|text       = Hi. My name is User.
|text=Hi. My name is User.
}}
}}
</pre>
</pre>
{{Word Bubble
{{word bubble
|image     = Wiki.png
|image=Wiki.png
|color     = black
|color=black
|color2     = red
|color2=red
|textcolor = white
|textcolor=white
|textcolor2 = blue
|textcolor2=blue
|line       = yellow
|line=yellow
|fonttype   = Times New Roman
|fonttype=Times New Roman
|name       = User
|name=User
|sig       = Hey how's it going?
|sig=Hey, how's it going?
|time       = 17:51, 27 June 2009 (UTC)
|time=17:51, 27 June 2009 (UTC)
|text       = Hi. My name is User.
|text=Hi. My name is User.
}}
}}


[[Category:Word bubble templates| ]]</noinclude>
[[Category:Word bubble templates| ]]</noinclude>

Latest revision as of 14:02, 4 May 2024

[[File:{{{image}}}|50px]]
[[User:{{{name}}}|{{{name}}}]] – {{{sig}}}
[[User talk:{{{name}}}|TALK]]
{{{text}}}
This article or section needs to be cleaned up, either its format or general style.

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 with your username in it. For example, if your username is "User", then you make your word bubble at "Template:User". Next, on your template page ("Template:User"), 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 Wikipedia's 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:

{{<name of template>|text=Blah blah blah.|time=~~~~~}}

Alternatively, if you don't want to always add the "text" field whenever you use your template on talk pages, go to your template and change {{{text}}} to {{{1}}}, which does not require the "text=" field. Instead, you just need to use the following code:

{{<name of template>|Blah blah blah.|time=~~~~~}}

Advanced

It is also possible to use a custom edit button to automatically insert your word bubble. To do this, add this code to Special:MyPage/monaco.js.

 if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png",
     "speedTip": "Insert word bubble",
     "tagOpen": "{{<name of template>|text=",
     "tagClose": "<nowiki>|time=~~~~~}}",
     "sampleText": "Blah blah blah"};
}

Note that this will only work if you are using the Monaco skin; if you are using the Monobook skin, you must add the code above to User:Username/monobook.js, replacing "Username" with your username. Once you have put the code at your personal js subpage, replace "<name of template>" with the name of the template you use for your word bubble.

After doing a hard refresh, when you edit, you will now see an image (http://images3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png) appear in the edit toolbar. Clicking this image will put this code in an article:

{{<name of template>|text=Blah blah blah<nowiki>|time=~~~~~}}

Replace "Blah blah blah<nowiki>" with the text you want to use, save the page, and you are finished. The "<nowiki>" is included in the code so that the 21:38, 27 June 2009 (UTC) is not implemented your personal javascript subpage, would would ruin the function of the "time" field. Also note that if your word bubble does not have the "text" field in it, you must remove the "text=" field in your personal javascript subpage so that when you click the custom edit button, the following code will be placed in an article:

{{<name of template>|Blah blah blah<nowiki>|time=~~~~~}}

Example

More examples can be found by looking through Category:Word bubble templates.

{{word bubble
|image=Wiki.png
|color=black
|color2=red
|textcolor=white
|textcolor2=blue
|line=yellow
|fonttype=Times New Roman
|name=User
|sig=Hey, how's it going?
|time=~~~~
|text=Hi. My name is User.
}}
Wiki.png
User – Hey, how's it going?
TALK – 17:51, 27 June 2009 (UTC)
Hi. My name is User.