Wikipedia talk:Emoticons

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Department of Fun (Rated Project-class, Bottom-importance)
WikiProject icon This page is supported by the Department of Fun WikiProject, which aims to provide Wikipedians with fun so that they stay on Wikipedia and keep on improving articles. If you have any ideas, do not hesitate to post them to the discussion page or access our home page to join the Department of Fun.
 Project  This page does not require a rating on the quality scale.
 Bottom  This page has been rated as Bottom-importance on the importance scale.

Template not working as specified[edit]

re Template:Smiley2
a. Confused-tpvgames.png {{=2|4}}
b. Shocked-tpvgames.gif{{=2|5}}
c. Shocked-tpvgames.gif{{=2|shocked}}'4'
d. Confused-tpvgames.png{{=2|confused}}'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. Smile.gif 1
  2. Smile-tpvgames.gif 2
  3. Sad-tpvgames.gif 3
  4. Confused-tpvgames.png{{=2|4}}N
  5. Shocked-tpvgames.gif{{=2|5}}N
  6. Misc-tpvgames.gif 6
  7. Ras.gif 7
  8. Smiley emoticons doh.gif 8

  1. Smile.gif smile
  2. Smile-tpvgames.gif cute
  3. Sad-tpvgames.gif sad
  4. Shocked-tpvgames.gif {{=2|shocked}}YesY
  5. Confused-tpvgames.png {{=2|confused}}YesY
  6. Misc-tpvgames.gif tongue
  7. Ras.gif rude
  8. Smiley emoticons doh.gif facepalm

All others seem OK! Face-smile.svg Smile.gif SFriendly.svg Sert - happy smile.svg - 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 --> Confused-tpvgames.png and Confused-tpvgames.png
  • 5, shocked --> Shocked-tpvgames.gif and Shocked-tpvgames.gif
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:
i.e.. 4 or confused=Confused ... gif, 5 or shocked=Shocked ... gif. exclamation mark- What language is this by the way, HTML?
(ps I borrowed <span style="color: green"><span style="color: green"> from your sig to make the code green. Other things I tried didn't work! Confused-tpvgames.png
Didn't think it may have been the documentation that was in error.Smiley emoticons doh.gif
Just FYI , the error seems to have crept in here @ 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 Confused-tpvgames.png, when they meant to be surprised Shocked-tpvgames.gif. (& 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)
(edit conflict) 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 {{#switch:}} parser function. If we look at the source of {{smiley2}} and ignore the two instances of {{{|safesubst:}}} also everything inside <noinclude>...</noinclude>, what's left is:
|8|doh|facepalm=Smiley emoticons doh.gif{{!}}25px

The {{#switch:}} parser function is very like the case statement in programming languages such as Pascal or the switch statement in C or JavaScript. The value to be tested (in this case {{lc:{{{1|}}}}} which is the first positional parameter to the template, lowercased) goes after the switch: 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 switch: terminates. If there is no match, the value after #default= is returned. --Redrose64 (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'(<span style>), a bit of how templates operate etc. (even a few new smilies! Sert - happy smile.svg) Thanks again, regards--220 of Borg 03:30, 28 September 2013 (UTC)

Flower(s) Face-surprise.svg[edit]

There is none. -- Mr. Prophet (talk) 07:26, 28 May 2015 (UTC)