Jump to content

Help talk:Template

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Nesting template

[edit]

in the nesting templates section under creating templates, in the second example, shouldn't it have a '3' in the line of code for template A, instead of a '1'? Or am I missing something? JoeJShmo💌 08:00, 19 July 2024 (UTC)[reply]

Yes, it should by 3. I've fixed it. Bryan Henderson (giraffedata) (talk) 17:00, 19 July 2024 (UTC)[reply]

Inappropriate use of templates?

[edit]

Is there anywhere on Wikipedia that details inappropriate use of templates? I have the feeling that {{rut}} and {{rus}} only exist to replace simple links, but I can't find a policy that outright forbids this. If I were to send those templates to WP:TfD, would they likely survive deletion? – PeeJay 13:14, 22 July 2024 (UTC)[reply]

Yes, they will absolutely survive deletion. There is no policy which forbids templates which create links, let alone one that also finds flags and team icons. Did you even check the transclusion count? Because these are both heavily used, with one of them protected because it is used thousands of times. Of course, the talk page history shows that {{rut}} is actually merged from several "rut" templates for individual teams. I would highly advise leaving it alone unless you really, absolutely need one of the template shortcuts, in which case you might be able to get a bot to expand all the calls before getting the redirect removed. But you'd have to make a pretty significant argument why you can't use anything else. VanIsaac, GHTV contWpWS 04:40, 23 July 2024 (UTC)[reply]

The redirect H:t has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2024 September 3 § H:t until a consensus is reached. — Godsy (TALKCONT) 04:29, 3 September 2024 (UTC)[reply]

How many browsers are there in Template

[edit]

How many available browser are there in Template:Babel Depotadore (talk) 14:50, 12 October 2024 (UTC)[reply]

Since this question is about a particular template, a better place to ask would be the Template:Babel talk page.
The Help:Template page is for help using templates in general. Bryan Henderson (giraffedata) (talk) 17:10, 12 October 2024 (UTC)[reply]
Ok Depotadore (talk) 05:31, 13 October 2024 (UTC)[reply]

Search for uses of a specific parameter of a template

[edit]

Is there a way to search for uses of a specific parameter of a template? I want to find all examples of {{infobox goat breed}} that have a value in the |wool parameter, and don't specially want to search 140 articles manually. Background: this is entirely my fault – I activated that parameter some time ago without thinking carefully enough what I was doing. Only one breed of goat actually grows wool, all others grow hair. I want to see how bad the problem is, and decide on a solution (either use the |coat parameter or create a new one for |hair). Thanks, Justlettersandnumbers (talk) 19:43, 10 November 2024 (UTC)[reply]

{{Template parameter usage}} exists, but only works for templates that have TemplateData and is only updated monthly. Assuming the parameters you mean are woolcolor/woolcolour (I see no reference to just a wool parameter in the template anywhere), an insource search brings up this list of pages actively using the parameter and this list of pages at least containing it. Does that help? Aidan9382 (talk) 21:08, 10 November 2024 (UTC)[reply]