User talk:Trev M/ThumbTid

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
working left thumb rendering #itestid2

{{help}} Someone familiar with wiki conditional statements needed to have a look at this User:Trev_M/ThumbTid to give an idea what's stopping the lefthand version of this potentially useful variant of the thumbnail rendering template from performing as intended....

Not getting anywhere having read and understood WP:ParserFunctions#Conditional_expressions

Thanks, Trev M (talk) 20:42, 23 February 2010 (UTC)[reply]

The code {{{left|}}} expands to the value of the parameter left, so if you use for example left = yes, it works (as you can see in the image on the left). If you wanted the code you used to work, you would have to test for second unnamed parameter – {{#ifeq:{{{2|}}}|left|tleft|tright}}, but be aware that unnamed parameters don't strip whitespace, so exactly this code wouldn't work, you would have to use {{#ifeq:{{StripWhitespace|{{{2|}}}}}|left|tleft|tright}}. Svick (talk) 21:23, 23 February 2010 (UTC)[reply]