Help talk:TemplateData/Archive 1

difference between German or english word
How can I be able to create a template... because i dont know whether i should use Template or Vorlage while creation of a template.

And after the creationI am not able to find the template-wiki-text and after that i am not able to change anything from the wikitext / template-text.

"default" parameter
Hi,

At the moment, the parameter "default" is not presented on this tutorial. So I propose to add this text in the page, between the T:38 and T:39 translations:


 * colspan=2 |
 * After that we have  , which defines the default value for the parameter.
 * After that we have  , which defines the default value for the parameter.
 * After that we have  , which defines the default value for the parameter.

You can forget this parameter if there's no default.

and I think to adapt T: XX below. But is it really that I could do? I'm not sure of how to use this extension, so if someone can help me, I thank for it by advance. Automatik (talk) 21:29, 25 July 2013 (UTC)
 * PS: Look at the code please, 'translate' tags doesn't display here. Automatik (talk) 21:34, 25 July 2013 (UTC)


 * Thanks; This had been on my to-do list for a few days. I've added it :) guillom 15:49, 26 July 2013 (UTC)
 * Thank you so much. Automatik (talk) 16:59, 26 July 2013 (UTC)

Noinclude?
Does the templatedata need to be inside a "noinclude" tag? Sharihareswara (WMF) (talk) 00:38, 21 August 2013 (UTC)
 * At some point, I think it needs to be, otherwise it will be included in the articles using the template. --NicoV (talk) 13:07, 21 August 2013 (UTC)
 * See also 50512. Helder 17:23, 14 September 2013 (UTC)

TemplateData editor in galician wiki
Somebody could help to install TemplateData editor in galician wiki? Thanks in advance, --Elisardojm (talk) 21:39, 17 October 2014 (UTC)
 * Hi Elisardojm, all the wikis will receive that editor after November 6th, but feel free to add a request to Bugzilla if you want that to happen sooner (you can use this as a guide). Let me know, --Elitre (WMF) (talk) 09:28, 21 October 2014 (UTC)
 * Thanks! I think that, at this time, we can wait. Bye, --Elisardojm (talk) 22:37, 28 October 2014 (UTC)

Looking for smaller TemplateData tasks and mentors for Google Code-In - Got something in mind?
Hi everybody! Google Code-In (GCI) will soon take place again - a six week long contest for 13-17 year old students to contribute to free software projects. Wikimedia took part in 2013 already with great results. Tasks should take an experienced contributed about two-three hours (but "beginner tasks" are also welcome which are smaller) and can be of the categories Code, Documentation/Training, Outreach/Research, Quality Assurance, and User Interface/Design.

Do you have an idea for a task and could you imagine mentoring that task?

For example, do you have something TemplateData related on mind that needs documentation, some code (changes)? If yes, please go to Google Code-in 2014, check out the "Mentor's corner", and add your task there (please add tasks until Sunday even if it's only a stub - we can still polish them until December 1st when the contest begins)! And if something is unclear, please ask on the talk page. Happy to help! --AKlapper (WMF) (talk) 21:40, 6 November 2014 (UTC)

Missing heading in Indonesian
The Indonesian version of this help page doesn't have "TemplateData editor" and "Auto value" section on it, even they are already translated. Could someone check this? Thank you. William Surya Permana (talk) 07:58, 19 November 2014 (UTC)
 * It just magically appears now. William Surya Permana (talk) 08:13, 19 November 2014 (UTC)

"List of all templates with TemplateData on this wiki" in the bottom is not appearing in the translation. And could someone tell me how to translate the table "Template parameters" appearing in the Example section? Thank you. William Surya Permana (talk) 09:48, 20 November 2014 (UTC)
 * I'll take a look at the first issue later today. For the second part, if you can't think of equivalents of those words in your language, maybe this can help (you should see the equivalent words as someone translated the interface)? Those terms are explained in the section right below the table, so the words should be used consistently in both of them. Hope this helps, --Elitre (WMF) (talk) 12:00, 20 November 2014 (UTC)
 * (On a second thought, I think most of that content actually won't need to be translated - see also how other languages handled that. --Elitre (WMF) (talk) 12:07, 20 November 2014 (UTC))
 * Struktur DataTemplat (tabel).png Thank you for the information. But, after purging the page, now it use the translation from the interface (in here). -William Surya Permana (talk) 02:36, 21 November 2014 (UTC)

Enumeration arguments
Some templates take a certain (small/strict) subset of strings as particular arguments which are then enumerated using #switch:, what is the preferred way of documenting the parameter and it's valid options? An 'enumeration' type would be potentially helpful in separating them from other string types? --Fbstj (talk) 13:46, 26 November 2014 (UTC)
 * I'm told this covers it, and the temporary (suboptimal) workaround is giving values in the description. HTH, --Elitre (WMF) (talk) 18:03, 26 November 2014 (UTC)

Template documentation standard
I and others have noticed that maintaining two separate, disparate sets of documentation, one for ve and one for the rest, is burdensome and a waste of editor time and effort.

At en:Help talk:Citation Style 1 I have started a discussion and proposed one possible solution. Opinions and comments welcome there.

—Trappist the monk (talk) 13:27, 9 December 2014 (UTC)

Type
The possible settings for the Type column are not adequately described. Perhaps most important, is any automated checking performed when using VE to verify that the value entered by the user is of the type from the Type column? If so, where are the rules for such checking stated? If there are no enforced rules, this should be made known on this page and also to VE users so they will know the type is merely a suggestion.

Some of the possible types, such as boolean, are not described at all.

For a programmer, the type descriptions may be confusing. For example, a number is usually a binary number in a format that can be directly transformed into a format that can be stored in the computer's registers, not a character string that expresses a number, which seems to be what is meant here.

Examples should be given both on this page, and made available to VE users, so they will know whether to write a user's name as Jc3s5h or User:Jc3s5h, and similarly for file names and page names. Jc3s5h (talk) 15:50, 9 December 2014 (UTC)
 * Looks like the page Extension:TemplateData actually contains the info you're looking for. Let me know if I'm wrong, --Elitre (WMF) (talk) 17:33, 11 December 2014 (UTC)

Difference between autovalue and default tags?
I can not see the differences between autovalue and default tags, may someone clarify, please?

(I suppose they have different effects, as there are they are shown in two different column when a TemplateData is shown as a table (for example in Help:TemplateData. --109.54.20.161 17:21, 24 March 2015 (UTC)
 * Had you seen Help:TemplateData? --Elitre (WMF) (talk) 17:26, 24 March 2015 (UTC)
 * I was confused by that, too. "autovalue" is used when TemplateData should calculate something for you (usually dates).  "default" is for telling the user what will happen if they leave that parameter blank.  Whatamidoing (WMF) (talk) 23:41, 24 March 2015 (UTC)
 * It's a bit confusing ... So in same issues (when TemplateData should calculate something) we can not use Default and we have to use Autovalue? But can we always use Autovalue instead? --5.170.67.72 10:50, 5 August 2015 (UTC)

All of this is helpful, but is there a place where I can see a list of all possible configurations or variables for both autovalue and default like CURRENTYEAR ? For example, if I want my template to take a piece of information from somewhere else on the page in which it is being used (say, I am putting a template on a Wikimedia Commons image file page and I want to have my template generate in one of its parameters a default value equal to the already-existing "Author" parameter, which is not part of the template I am placing but of another, previous one that has been placed on the same page), is there way to "pull" this information into the resulting template? What if I wanted the template to generate (i.e., pull in) a default value of the file name itself? (say, I wanted the template to restate the name of the aforementioned Wikimedia Commons image file within the resulting template). If that sounds confusing, please let me know and I will be glad to clarify/ expand. For a look at the template I am actually trying to create, please see the template on Commons. KDS4444 (talk) 09:22, 29 August 2015 (UTC)

Question from User:Vojtěch Dostál on IRC
'' Hi, one small question on translating TemplateData for the new reference dialog in VE ... [...] Czech citation templates only include three author names, if there are more, we write "et al." after the third. is it possible to do? (in autofill templates i am just adapting for VE).'' --Elitre (WMF) (talk) 10:40, 4 September 2015 (UTC)