Wikipedia talk:Emoticons

Template not working as specified
re Template:Smiley2

a.

b.

c. '4'

d. '5'

According to the page, emoticons a & c or b & d should the same. However a & b are swapped, c & d  are 'correct'.

Seems the shocked/confused word 'switches' are working, but the number 'switches' 4 and 5 only are swapped.


 * 1


 * 2


 * 3






 * 6


 * 7


 * 8


 * 1) smile


 * 1) cute


 * 1) sad






 * 1) tongue


 * 1) rude


 * 1) facepalm

All others seem OK! - 220  of  Borg 06:40, 26 September 2013 (UTC)


 * Oops! Facepalm3.svg I have now changed the documentation to reflect what the template actually produces:
 * 4, confused --> and
 * 5, shocked --> and
 * Thanks for pointing this out! - benzband  ( talk ) 18:39, 26 September 2013 (UTC)


 * No worries. I even had a look at the template code and though I have never programmed like this it seems 'obviously' correct:

(ps I borrowed from your sig to make the code . Other things I tried didn't work!
 * i.e.. 4 or confused=Confused ... gif, 5 or shocked=Shocked ... gif. What language is this by the way, HTML?
 * i.e.. 4 or confused=Confused ... gif, 5 or shocked=Shocked ... gif. What language is this by the way, HTML?
 * i.e.. 4 or confused=Confused ... gif, 5 or shocked=Shocked ... gif. What language is this by the way, HTML?


 * Didn't think it may have been the documentation that was in error.


 * Just FYI, the error seems to have crept in @ 12:01, 8 May 2012. '4' was once the 'confused' № in the Docs, but got changed to 5.
 * I'm wondering how many people were confused, when they meant to be surprised . (& vice versa!). Movicons2-hello.gif 220  of  Borg 14:48, 27 September 2013 (UTC)


 * Ah right. The language is wiki markup (the template uses a #switch: function which I imitated from the original smiley template). And yeah I'm hoping not too many people got the wrong face showing up! ツ  benzband  ( talk ) 19:29, 27 September 2013 (UTC)


 * It's not HTML: HTML has no programmable constructs such as decision making. It's Wiki markup, although in a form that is normally only used in templates - the  parser function. If we look at the source of  and ignore the two instances of   also everything inside , what's left is:

The  parser function is very like the   statement in programming languages such as Pascal or the   statement in C or JavaScript. The value to be tested (in this case  which is the first positional parameter to the template, lowercased) goes after the   and before the first pipe. Each pipe introduces a value to test against; when a match is found, the value after the very next  sign is returned and the   terminates. If there is no match, the value after  is returned. -- Red rose64 (talk) 19:39, 27 September 2013 (UTC)


 * Ah, thanks benzband and Redrose64. I have used BASIC, Assembler, machine code and did a course in 'C' (but haven't put it to much use), so I can see what you are getting at.


 * This simple matter of fixing a document error has taken up way too much of everyone's time, thought it has also been useful to me in term of learning a few new templates, 'magic words', a bit of how templates operate etc. (even a few new smilies! ) Thanks again, regards--220  of  Borg 03:30, 28 September 2013 (UTC)

Flower(s) Face-surprise.svg
There is none. -- Mr. Prophet (talk) 07:26, 28 May 2015 (UTC)

Teeth.png Tongue.png
Tongue.png Tongue.png Tongue.png Tongue.png Tongue.png Tongue.png Tongue.png Tongue.png Tongue.png — Preceding unsigned comment added by Handatoe (talk • contribs) 11:37, 9 October 2018 (UTC)

No Need For Two (2) 'See also' Subsections
No Need For Two (2) 'See also' Subsections! They even slightly repeat by educating about { { smiley } } so it seems there's an overlap of content too. Ok if I merge this section, or does someone want to take the helm on that? Thanks. -From Peter {a.k.a. Vid2vid (talk | contribs)} 20:37, 27 November 2022 (UTC)