Template talk:Conj

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
  • This template is great, some 18 lines of {{Technique/en}} can be reduced to 6 by using it. There's something I don't understand though: it works in english (sorry for the loop message, I just put the example directly on template page), but it creates unwanted new lines in French and German, I don't see why.
Or add a {{{lang}}} parameter to this template so you can fix the language by using |lang=en. Rocket000 (talk) 00:36, 9 September 2010 (UTC)[reply]
I fixed you test page, it had an unwanted newline at the end of the parameter.
Ok thanks.
Doesn't langSwitch make newlines behave in a somewhat weird way though ? Why did my version create a newline in German but not in English, and why is there a new line between "Japanese: 神奈川沖浪裏 (Kanagawa oki nami ura)" and "Literal translation: Under a Wave off Kanagawa" in File:Great Wave off Kanagawa2.jpg ?--Zolo (talk) 10:06, 9 September 2010 (UTC)[reply]
Not LangSwitch's fault. It's random parser weirdness. Compare these two (and the wiki as well as the HTML source text):
A

B

C


A B C

No deeper meaning in that behaviour. The way to fix it: Put the parameters in Template:Painting/layout on a new line without any HTML tags on the same line. --Slomox (talk) 15:43, 9 September 2010 (UTC)[reply]
Okay, so I suppose the only thing I have to do is refrain from adding any unneeded new lines even when they look pretty and inocuous.--Zolo (talk) 22:04, 9 September 2010 (UTC)[reply]
I don't understand your second problem. What exactly is the problem? --Slomox (talk) 09:09, 9 September 2010 (UTC)[reply]
Do you mean that when your interface language is unsupported by Technique, but supported by int:and you get a mix of languages? That can indeed be fixed by adding a "lang" parameter. --Slomox (talk) 09:12, 9 September 2010 (UTC)[reply]
I added "lang". --Slomox (talk) 09:23, 9 September 2010 (UTC)[reply]
Yes, that what I meant. So should I simply add lang=en in my template ? I don't know if my browser has troubles updating the page. It works with uselang=fr [1] but I still get a mix of languages with uselang=de [[2]--Zolo (talk)it works now probably just a refreshing problem 10:06, 9 September 2010 (UTC)[reply]

spaces in Chinese

[edit]

There is no space in Chinese between the and/or and the previous/following word. I am not sure how to best do it, without increasing too much the template depth.--Zolo (talk) 08:22, 20 February 2011 (UTC)[reply]

New Lua version

[edit]

If there is no problem with it, I will replace this template with the Lua call in {{Conj/sandbox}}. New features are:

  • if param n is empty, param n+1 is analzed ({{Conj|A|B|C||E}} -> A, B, C and E instead of A, B, C and E)
  • unlimited number of arguments
  • bugfix for new lines
  • warning if there is an unrecognized parameter

--Zolo (talk) 14:56, 22 November 2013 (UTC)[reply]

 Support Template:Conj/testcases look fine to me--Jarekt (talk) 16:44, 22 November 2013 (UTC)[reply]