Template talk:Label

Latest comment: 9 years ago by Zolo in topic LUA module update

Helpful edit

Works fine in Template:Constraint violations report. Thanks! --  Docu  at 06:35, 5 May 2013 (UTC)Reply


Sample string or error message edit

I wonder how to go about to avoid the ugly "script error" messages on Template:Constraint:Target required claim. Should I input a sample item? A default string that results in a custom message? Or change this template to throw out a specific error message? --  Docu  at 08:30, 20 May 2013 (UTC)Reply

The {{int:Lang}} get the wrong language code for zh-hans edit

When I have my default language in preferences set to zh-hans, {{int:Lang}} will generate en.

When set to zh, it can generate zh.

Anyone know how to correct it ? --凡其Fanchy 07:30, 24 May 2013 (UTC)Reply

Empty second parameter edit

{{Editprotected}}

Please replace {{{2|{{int:Lang}}}}} to {{#if: {{{2|}}} | {{{2}}} | {{int:Lang}} }}. Template {{Q}} works incorrectly after the last edit. — Ivan A. Krestinin (talk) 19:25, 24 June 2013 (UTC)Reply

So strange, they should be perfectly equivalent...   – is it still malfunctioning? --Ricordisamoa 00:42, 30 June 2013 (UTC)Reply
There is difference, they returns different results in cases {{label|Q1}}, {{label|Q1|}}. Select non-English language to see this: {{label|Q1}} = Universe, {{label|Q1|}} = Universe. Currently 분당선M reverted edits in {{Q}}, but I think it is better to fix {{Label}} too.  – The preceding unsigned comment was added by Ivan A. Krestinin (talk • contribs).
Is there still a problem with this template? The Anonymouse (talk) 04:16, 21 July 2013 (UTC)Reply
Yes, {{label|Q1|}} returns English label instead of user selected language. — Ivan A. Krestinin (talk) 09:00, 21 July 2013 (UTC)Reply
  Done The Anonymouse (talk) 09:13, 21 July 2013 (UTC)Reply

Fallback languages edit

Hello, It's great that we show labels & descriptions in fallback languages, but in those cases it would also be great to have the information that the default language is not shown so we can fill the description or label if we want. Any thoughts ? TomT0m (talk) 13:06, 28 July 2013 (UTC)Reply

LUA module update edit

Zolo: I reverted this edit. Property talk:P772 was only showing "Invalid ID" errors. You probably missed something. Multichill (talk) 21:31, 24 August 2014 (UTC)Reply

Not really, this is because the logic of the two modules is slightly different, so the templates need an update, just give me two minutes. --Zolo (talk) 21:33, 24 August 2014 (UTC)Reply
Looks like we had a mid-air collision. All looks fine now. Good job Zolo! Multichill (talk) 20:31, 25 August 2014 (UTC)Reply
Zolo, looks like there is a case left to solve. One of the examples ({{label|Property:P31}}) still gives instance of (=invalid ID). Also the documentation says the template uses Module:WBHacks. I'm pretty sure you changed that. Multichill (talk) 09:37, 31 August 2014 (UTC)Reply
My mistake, fixed. --Zolo (talk) 10:06, 31 August 2014 (UTC)Reply
Return to "Label" page.