User:Troisnyxetienne/Talk Template Archive/Emotion Guide: Difference between revisions
Line 126: | Line 126: | ||
==Code for those starting from scratch ! (Advanced wikimarkup)== | ==Code for those starting from scratch ! (Advanced wikimarkup)== | ||
===I want you... to spot the difference=== | ===I want you... to spot the difference=== | ||
As I mentioned to a few users over here, the code for starting from scratch is rather long. [[User:ILHI|ILHI]] managed to help me with this. It's rather different from '''TalkTextTest2'''. | {{TNE|text=As I mentioned to a few users over here, the code for starting from scratch is rather long. [[User:ILHI|ILHI]] managed to help me with this. It's rather different from '''TalkTextTest2'''. | ||
Now, I'm going to put examples of two templates : [[Template:Troisnyxetienne]] and [[Template:TNE]], and if you're patient enough in reading this... I'd like you to spot the difference. And I'm truly sorry because there are just too many scrollbars in this section... | Now, I'm going to put examples of two templates : [[Template:Troisnyxetienne]] and [[Template:TNE]], and if you're patient enough in reading this... I'd like you to spot the difference. And I'm truly sorry because there are just too many scrollbars in this section...}} | ||
<pre> | <pre> | ||
Line 276: | Line 276: | ||
</pre> | </pre> | ||
Phew, that must've been an exhausting read, ya ? Wait : we've still got one more template to go ! | {{TNE|happytext=Phew, that must've been an exhausting read, ya ? Wait : we've still got one more template to go !}} | ||
<pre> | <pre> |
Revision as of 02:41, 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 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{text}}} }}
|
{{your username |sig= |time={{{time}}} (optional) |text={{{text}}} }}
|
{{#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}}} }}
|
|{{#if:{{{sad|}}}|{{TalkTextTest2 |image= |color= |color2= |textcolor= |textcolor2= |line= |fonttype= |name= |sig= |time={{{time}}} |text={{{sad}}} }}
|
NORMAL {{your username time= text= }} HAPPY {{your username time= happy= }} SAD {{your username time= sad= }}
|
Code for those starting from scratch ! (Advanced wikimarkup)
I want you... to spot the difference
|
Template:Troisnyxetienne starts here -- {| style="background:transparent" |valign=top|[[Image:Yuffie_Chain.png|50px]] |<table width=100% border="0" cellpadding="0" cellspacing="0" style="background:transparent"> |- |COLSPAN=9 width=9 height=1| |bgcolor=limegreen height=1 width=1| |height=1 bgcolor=limegreen| |width=1 height=1 bgcolor=limegreen| |COLSPAN=4 width=4 height=1| |- |COLSPAN=8 width=8 height=1| |bgcolor=limegreen width=1 height=1| |BGCOLOR=lime width=1 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime width=1 height=1| |bgcolor=limegreen width=1 height=1| |COLSPAN=3 width=3 height=1| |- |COLSPAN=7 width=7 height=1| |width=1 height=1 BGCOLOR=limegreen | |BGCOLOR=lime COLSPAN=2 width=2 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=limegreen| |COLSPAN=2 width=2 height=1| |- |COLSPAN=6 width=6 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=3 width="3" height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=limegreen| |width=1 height=1| |- |COLSPAN=5 width=5| |width=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=4 width=4| |BGCOLOR=lime| [[User:Troisnyxetienne|<font color="black" face="Freestyle Script" size="5">TroisNyxÉtienne]] <sup>[[User talk:Troisnyxetienne|<font color="black">Appellez-moi !</font>]]</sup></font><font color="black" face="Freestyle Script" size="5"> — Les fragments d’un rêve qui ressemblent à un souvenir lointain.</font><p><font color="black" face="Trebuchet MS"><sub>''Is it me you're looking for ?''</sub></font></p> |BGCOLOR=lime COLSPAN=4 width=4| |width=1 BGCOLOR=limegreen| |- |COLSPAN=4 width=4| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=5 width=5| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=6 width=6 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=7 width=7 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=8 width=8 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=yellow COLSPAN=9 width=9 height=1| |BGCOLOR=yellow height="1" BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=8 width=8 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=7 width=7 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=6 width=6 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=5 width=5| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=5 width=5| |width=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |BGCOLOR=yellow height=1|<font color=black face="Trebuchet MS"> {{{text}}}</font> |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width="1" BGCOLOR=#greenyellow| |- |COLSPAN=6 width=6 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=gold COLSPAN=3 width=3 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |width=1 height=1| |- |COLSPAN=7 width=7 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=gold COLSPAN=2 width=2 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |COLSPAN=2 width=2 height=1| |- |COLSPAN=8 width=8 height=1| |bgcolor=#greenyellow width=1 height=1| |BGCOLOR=gold width=1 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold width=1 height=1| |bgcolor=#greenyellow width=1 height=1| |COLSPAN=3 width=3 height=1| |- |COLSPAN=9 width=9 height=1| |BGCOLOR=gold bgcolor=#greenyellow height=1 width=1| |BGCOLOR=gold height=1 bgcolor=#greenyellow | |BGCOLOR=gold width=1 height=1 bgcolor=#greenyellow | |COLSPAN=4 width=4 height=1| </table> |}
|
Template:TNE starts here - <includeonly>{| style="background:transparent" |valign=top|{{#if:{{{text|}}}|[[Image:Yuffie Chain.png|50px]]|}}{{#if:{{{shocktext|}}}|[[Image:Yuffie Surprise.png|50px]]|}}{{#if:{{{attntext|}}}|[[Image:Yuffie Credo.png|50px]]|}}{{#if:{{{angrytext|}}}|[[Image:Yuffie Enragee.png|50px]]|}}{{#if:{{{happytext|}}}|[[Image:Yuffie Rejouie.png|50px]]|}}{{#if:{{{blahtext|}}}|[[Image:Yuffie Correctionneuse.png|50px]]|}}{{#if:{{{remerciement|}}}|[[Image:Yuffie Assurance.png|50px]]|}} |<table width=100% border="0" cellpadding="0" cellspacing="0" style="background:transparent"> |- |COLSPAN=9 width=9 height=1| |bgcolor=limegreen height=1 width=1| |height=1 bgcolor=limegreen| |width=1 height=1 bgcolor=limegreen| |COLSPAN=4 width=4 height=1| |- |COLSPAN=8 width=8 height=1| |bgcolor=limegreen width=1 height=1| |BGCOLOR=lime width=1 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime width=1 height=1| |bgcolor=limegreen width=1 height=1| |COLSPAN=3 width=3 height=1| |- |COLSPAN=7 width=7 height=1| |width=1 height=1 BGCOLOR=limegreen | |BGCOLOR=lime COLSPAN=2 width=2 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=limegreen| |COLSPAN=2 width=2 height=1| |- |COLSPAN=6 width=6 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=3 width="3" height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=limegreen| |width=1 height=1| |- |COLSPAN=5 width=5| |width=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=4 width=4| |BGCOLOR=lime| [[User:Troisnyxetienne|<font color="black" face="Freestyle Script" size="5">TroisNyxÉtienne]] <sup>[[User talk:Troisnyxetienne|<font color="black">Appellez-moi !</font>]]</sup></font><font color="black" face="Freestyle Script" size="5"> — Les fragments d’un rêve qui ressemblent à un souvenir lointain.</font><p><font color="black" face="Trebuchet MS"><sub>{{#if:{{{text|}}}|''Is it me you're looking for ?''|}}{{#if:{{{shocktext|}}}|''No. Wait. SAY THAT AGAIN.''|}}{{#if:{{{attntext|}}}|Annonçant ici quelque chose d’'''important''', alors faites attention !|}}{{#if:{{{angrytext|}}}|Tu t’es déjà attiré(e) mes foudres, et tu le regretteras '''amèrement''' !|}}{{#if:{{{happytext|}}}|''It's real... ! Here's recompense for healing my heart.''|}}{{#if:{{{blahtext|}}}|''Er, helly doo sad wee to you too.''|}}{{#if:{{{remerciement|}}}|''I owe you one, now and always.''|}}</sub></font></p> |BGCOLOR=lime COLSPAN=4 width=4| |width=1 BGCOLOR=limegreen| |- |COLSPAN=4 width=4| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=5 width=5| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=6 width=6 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=7 width=7 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1| |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=lime COLSPAN=8 width=8 height=1| |BGCOLOR=lime height=1| |BGCOLOR=lime COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1 BGCOLOR=limegreen| |BGCOLOR=yellow COLSPAN=9 width=9 height=1| |BGCOLOR=yellow height="1" BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=limegreen| |- |width=1 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=8 width=8 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=7 width=7 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=6 width=6 height=1| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=5 width=5| |BGCOLOR=yellow height=1| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |- |COLSPAN=5 width=5| |width=1 BGCOLOR=#greenyellow| |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |BGCOLOR=yellow height=1|<font color=black face="Trebuchet MS">{{#if:{{{text|}}}|{{{text}}}|}}{{#if:{{{shocktext|}}}|{{{shocktext}}}|}}{{#if:{{{attntext|}}}|{{{attntext}}}|}}{{#if:{{{angrytext|}}}|{{{angrytext}}}|}}{{#if:{{{happytext|}}}|{{{happytext}}}|}}{{#if:{{{blahtext|}}}|{{{blahtext}}}|}}{{#if:{{{remerciement|}}}|{{{remerciement}}}|}}</font> |BGCOLOR=yellow COLSPAN=4 width=4 height=1| |width="1" BGCOLOR=#greenyellow| |- |COLSPAN=6 width=6 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=gold COLSPAN=3 width=3 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold COLSPAN=3 width=3 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |width=1 height=1| |- |COLSPAN=7 width=7 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |BGCOLOR=gold COLSPAN=2 width=2 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold COLSPAN=2 width=2 height=1| |width=1 height=1 BGCOLOR=#greenyellow| |COLSPAN=2 width=2 height=1| |- |COLSPAN=8 width=8 height=1| |bgcolor=#greenyellow width=1 height=1| |BGCOLOR=gold width=1 height=1| |BGCOLOR=gold height=1| |BGCOLOR=gold width=1 height=1| |bgcolor=#greenyellow width=1 height=1| |COLSPAN=3 width=3 height=1| |- |COLSPAN=9 width=9 height=1| |BGCOLOR=gold bgcolor=#greenyellow height=1 width=1| |BGCOLOR=gold height=1 bgcolor=#greenyellow | |BGCOLOR=gold width=1 height=1 bgcolor=#greenyellow | |COLSPAN=4 width=4 height=1| </table> |}</includeonly>
Okay, we're too exhausted to even spot the difference !
The difference lies between the images :
- First template
|valign=top|[[Image:Yuffie_Chain.png|50px]]
- Second template
|valign=top|{{#if:{{{text|}}}|[[Image:Yuffie Chain.png|50px]]|}}{{#if:{{{shocktext|}}}|[[Image:Yuffie Surprise.png|50px]]|}}{{#if:{{{attntext|}}}|[[Image:Yuffie Credo.png|50px]]|}}{{#if:{{{angrytext|}}}|[[Image:Yuffie Enragee.png|50px]]|}}{{#if:{{{happytext|}}}|[[Image:Yuffie Rejouie.png|50px]]|}}{{#if:{{{blahtext|}}}|[[Image:Yuffie Correctionneuse.png|50px]]|}}{{#if:{{{remerciement|}}}|[[Image:Yuffie Assurance.png|50px]]|}}
In the signature and time inputs :
- First template
|BGCOLOR=lime| [[User:Troisnyxetienne|<font color="black" face="Freestyle Script" size="5">TroisNyxÉtienne]] <sup>[[User talk:Troisnyxetienne|<font color="black">Appellez-moi !</font>]]</sup></font><font color="black" face="Freestyle Script" size="5"> — Les fragments d’un rêve qui ressemblent à un souvenir lointain.</font><p><font color="black" face="Trebuchet MS"><sub>''Is it me you're looking for ?''</sub></font></p>
- Second template
|BGCOLOR=lime| [[User:Troisnyxetienne|<font color="black" face="Freestyle Script" size="5">TroisNyxÉtienne]] <sup>[[User talk:Troisnyxetienne|<font color="black">Appellez-moi !</font>]]</sup></font><font color="black" face="Freestyle Script" size="5"> — Les fragments d’un rêve qui ressemblent à un souvenir lointain.</font><p><font color="black" face="Trebuchet MS"><sub>{{#if:{{{text|}}}|''Is it me you're looking for ?''|}}{{#if:{{{shocktext|}}}|''No. Wait. SAY THAT AGAIN.''|}}{{#if:{{{attntext|}}}|Annonçant ici quelque chose d’'''important''', alors faites attention !|}}{{#if:{{{angrytext|}}}|Tu t’es déjà attiré(e) mes foudres, et tu le regretteras '''amèrement''' !|}}{{#if:{{{happytext|}}}|''It's real... ! Here's recompense for healing my heart.''|}}{{#if:{{{blahtext|}}}|''Er, helly doo sad wee to you too.''|}}{{#if:{{{remerciement|}}}|''I owe you one, now and always.''|}}</sub></font></p>
And in the text :
- First template
|BGCOLOR=yellow height=1|<font color=black face="Trebuchet MS"> {{{text}}}</font>
- Second template
|BGCOLOR=yellow height=1|<font color=black face="Trebuchet MS">{{#if:{{{text|}}}|{{{text}}}|}}{{#if:{{{shocktext|}}}|{{{shocktext}}}|}}{{#if:{{{attntext|}}}|{{{attntext}}}|}}{{#if:{{{angrytext|}}}|{{{angrytext}}}|}}{{#if:{{{happytext|}}}|{{{happytext}}}|}}{{#if:{{{blahtext|}}}|{{{blahtext}}}|}}{{#if:{{{remerciement|}}}|{{{remerciement}}}|}}</font>
The whole idea is that different emotions can already be added into their respective sections : images, signature/time, and text. Unlike TalkTextTest2, you don't need to add in the coding for the talk bubble over and over again, because you're starting from scratch. However, as in the first set of codes, the key to adding emotions lies in this set of text :
{{#if:{{{Insert text here|}}}
(To be updated. In the meantime, can any advanced user over here help me to make this section more... intelligible ? Please and thank you !)