Template talk:Tl

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

<code> tags[edit]

Hi! I see that when applying the template, it generates the text without surrounding it by <code> tags. I think it would be much better if the template shown was surrounded by them, so instead of {{Example}}, it would be {{Example}}. The reason for this is that the tl template is suposed to show the referred template as if written in the code editor (that's why it shows the braces instead of showing Template:Example, which has the same purpose), so adding the <code> tags would make it much clearer.

Besides, it's feasible, as shown by the Spanish Wikipedia

--Snooze123 (talk) 12:39, 4 July 2018 (UTC)

@Snooze123: See {{tlx}}. --Redrose64 🌹 (talk) 19:16, 4 July 2018 (UTC)
@Redrose64: Oh, I didn't know about that one. Thanks! Snooze123 (talk) 12:07, 5 July 2018 (UTC)

meta-template for nowiki of parameter template?[edit]

I'm looking for a meta template that can print the nowiki of its input (variable parameter) template, but I couldn't find anything after looking for a while. I also tried to make something like it but I struggled with dealing with recursion. The template would function like so:

Template code (Template:exampleTemplate)

{{{output|default output}}}

Template code (Template:myMetaTemplate)

???? {{{1|}}} ????


{{myMetaTemplate|{{exampleTemplate|output=alt output}}}}


{{exampleTemplate|output=alt output}}

The reason why I want this template is to make an echo meta-template for template documentation. Basically, I want to insert both the template call and the output just by referring to the template call once, within this echo template. This echo template would be something like below:

Template code (Template:Echo)

{{myMetaTemplate|{{{1|}}}}} {{{1|}}}


{{Echo|{{exampleTemplate|output=alt output}}}}


{{exampleTemplate|output=alt output}} alt output

Arathun (talk) 16:25, 18 August 2019 (UTC)

This is the reason why I started m:Requests for comment/Let Template:Tl be a magic word on Meta Wiki. --Liuxinyu970226 (talk) 05:32, 15 September 2019 (UTC)


I thought that Template:Tlsc should be included under See also. Fettlemap (talk) 19:36, 11 June 2020 (UTC)