Wikipedia talk:TemplateData/Tutorial: Difference between revisions

Content deleted Content added
Had a go - feedback: still not got it right
Line 89:
In the list of heavily used templates, I noted that {{tl|hatnote}} is marked up as "done". I wanted to have a look at the effects, as it's a template with no named parameters, just one locational parameter. Editing my sandbox I clicked to transclude "Hatnote"... and got no information about the parameters, just the usual "Add parameter" and "No unused parameters" - not what I expected. Looking at [http://en.wikipedia.org/w/index.php?title=Template:Hatnote/doc&action=history the history] I see the TemplateData was added on 11 June, 6 days ago. Should something useful be displayed when I try to use the template? I'm struggling rather with all of this as yet. [[User:PamD|<font color="green">'''''Pam'''''</font>]][[User talk:PamD|<font color="brown">'''''D'''''</font>]] 15:59, 17 July 2013 (UTC)
:Having another look, I see that it seems to tell me I need to add "required" and set it to "false". Do I really? And I've realised that one reason the example is particularly confusing is that "string" is both a parameter name and a type! There might be a clearer example perhaps? [[User:PamD|<font color="green">'''''Pam'''''</font>]][[User talk:PamD|<font color="brown">'''''D'''''</font>]] 16:05, 17 July 2013 (UTC)
::Still not going well: I tried adding {{tl|EW charity}} to an article, couldn't see the parameters I'd added in TemplateData 4 days ago. Tried choosing "EW charity/doc" from the dropdown menu... and the templates appeared with their descriptions... but continuing transcludes the documentation page into the article. Something is going wrong: either the documentation is wrong or I'm misreading it. Could someone have a look at [[Template:Genukiwry/doc]] and tell me what I'm doing wrong? Thanks. [[User:PamD|<font color="green">'''''Pam'''''</font>]][[User talk:PamD|<font color="brown">'''''D'''''</font>]] 22:24, 21 July 2013 (UTC)