User:Troisnyxetienne/Talk Template Archive/Emotion Guide: Difference between revisions
(Finished guide for TalkTextTest2 according to Terra Homing's FFWiki template.) |
|||
Line 17: | Line 17: | ||
==Code for TalkTextTest2== | ==Code for TalkTextTest2== | ||
Before I even begin explaining how one emotion can be joined with another, let's revise the '''basic code for TalkTextTest2''' : | [[Template:TalkTextTest2|TalkTextTest2]] is the basic talkbox that most of us use - and probably the most flexible, in that the colours, time and sig can be changed rather flexibly at will, and the coding is rather short. Before I even begin explaining how one emotion can be joined with another, let's revise the '''basic code for TalkTextTest2''' : | ||
<pre> | <pre> |
Revision as of 02:00, 5 April 2009
Salut ! Remember what I said at the User:Troisnyxetienne/Talk Template Archive about one textbox having so many emotions ? Here's a preview of mine :
|
|
|
|
|
|
|
If you look at Edit Page, you'll notice that the "text=" part of my talk bubble is replaceable : text, shocktext, attntext, happytext, angrytext, blahtext, and remerciement for seven different emotions. However, the template name is still the same - TNE.
Ever since this was made possible more and more people are approaching me for a full set of emotions on their talk bubbles. Okay, as promised, here's the Emotion Guide !
There will be two major sections in here : one for those using the common 'TalkTextTest2 templates (like those on the Talk Template Archive), and one for those starting from scratch.
Code for TalkTextTest2
TalkTextTest2 is the basic talkbox that most of us use - and probably the most flexible, in that the colours, time and sig can be changed rather flexibly at will, and the coding is rather short. Before I even begin explaining how one emotion can be joined with another, let's revise the basic code for TalkTextTest2 :
{{TalkTextTest2 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{text}}} }}
and you enter in the talk code with
{{your username |sig= |time={{{time}}} (optional) |text={{{text}}} }}
Now, with this basic code, if you have talk bubbles of two different emotions, you might be doing the same thing as I once did - storing them under two separate templates.
Okay, now suppose you want to fuse two emotions together, and you want your normal input to be "text=" and your, say, happy input to be "happy=". This is how it's done :
{{#if:{{{text|}}}|{{TalkTextTest2 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{text}}} }}|{{#if:{{{happy|}}}|{{TalkTextTest2 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{happy}}} }}
Each template has a different set of colour slots, as well as a different entry for images, allowing you to put different images for different feelings. The whole key lies with these characters : |{{#if:{{{<INSERT TEXT HERE>|}}}|
So if you want to add another emotion, say, sadness and you want your input to start with "sad=", then simply continue from where we left off at "happy=" :
|{{#if:{{{sad|}}}|{{TalkTextTest2 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{sad}}} }}
There you go ! And once you've managed to gather all images for your emotions, repeat the same process.