meta-template for nowiki of parameter template?

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|))} ????

Input

((myMetaTemplate|((exampleTemplate|output=alt output))))

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|))}

Input

((Echo|((exampleTemplate|output=alt output))))

Output

((exampleTemplate|output=alt output)) alt output

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

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)[reply]

TLSC

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

Requested move 5 February 2021

The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.

The result of the move request was: Moved (non-admin closure) (t · c) buidhe 18:40, 12 February 2021 (UTC)[reply]



Template:TlTemplate:Template link – This template has a "shortcut" name, but similar templates are located at their full names. JsfasdF252 (talk) 17:05, 5 February 2021 (UTC)[reply]

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Did the move operation just break this template across wikipedia?

I'm seeing usages across various project pages being interrupted by massive redirect banners suddenly. BlackholeWA (talk) 22:24, 12 February 2021 (UTC)[reply]

@BlackholeWA: This is because Anthony Appleyard (talk · contribs) renamed the template but didn't fix consequent double redirects. I've fixed them now. --Redrose64 🌹 (talk) 22:44, 12 February 2021 (UTC)[reply]

Edit request to complete TfD nomination

Template:Template link has been listed at Templates for discussion (nomination), but was protected so could not be tagged. Please add:

((subst:tfm|help=off|1=Tlu))

to the top of the page to complete the nomination. Thank you. JsfasdF252 (talk) 17:03, 18 March 2021 (UTC)[reply]

 Done Primefac (talk) 17:27, 18 March 2021 (UTC)[reply]
I find the TfM link extremely distracting. This template is used in more than 6 million pages while ((Tlu)) in 11K. (See?) Please change |type=tiny to |type=disabled. Nardog (talk) 19:59, 18 March 2021 (UTC)[reply]
This is so ridiculous it cracks me up:
Nardog (talk) 20:12, 18 March 2021 (UTC)[reply]
@Primefac: This is extremely distracting. Mind removing the TfM template and acting in consequence, maybe suggesting an RfC instead? RandomCanadian (talk / contribs) 22:57, 18 March 2021 (UTC)[reply]
 Done RandomCanadian, that's not how this works. Disabling the notice, sure. Why the heck would we ignore every procedure we have and have a month-long discussion (i.e. RFC) when TFD works perfectly fine? That is a rhetorical question and does not need answering, but I would please ask that you strike your pointless opposition at the TFD itself. Primefac (talk) 23:03, 18 March 2021 (UTC)[reply]
I was just echoing the suggestion of somebody else at that discussion. Anyway now resolved. RandomCanadian (talk / contribs) 23:09, 18 March 2021 (UTC)[reply]
@Primefac: Thanks! Can you also remove the space between |text=yes)))) and &#123;&#123;? It puts the line in <pre>...</pre> if used at the beginning of a line. Nardog (talk) 23:08, 18 March 2021 (UTC)[reply]

Nowiki stopped working

For some reason, <nowiki> quit working inside parameter input with this and related templates for a while (I think I encountered this about 24 to 36 hours ago):

((tlx|foo|baz((=))<nowiki>[[Quux]]</nowiki>))

produced output that looked like:

((foo|bar|baz=Quux))

instead of:

((foo|bar|baz=[[Quux]]))

My immediate suspicion is that it had something to do with the TfD-related tagging (and dispute about that) around that time period, under discussion here and here. Whatever caused it should be identified, and we should see if there's a way to prevent that in the future, since it (temporarily) corrupted a whole lot of template documentation into gibberish (and worse, like completely incorrect descriptions of parameter usage and behavior).  — SMcCandlish ¢ 😼  23:21, 23 March 2021 (UTC)[reply]

I see zero reason why adding the TfD template would cause the [[Template:(({1))}|(({1))}]] to stop working, except for maybe it could be a parser issue with the extra code added on causing an overload, but that usually affects transclusions not tags. Plus, we've had "well-used" templates get tagged before and it has not adversely affected them. Server-side glitch? Primefac (talk) 23:32, 23 March 2021 (UTC)[reply]
I can't think of any possible explanation for it stopping working recently. From my reading of the code, it appears to have been broken since November 2020, when Module:Template link general was deployed. That module has called mw.text.unstripNoWiki on each template parameter, and has since Special:Diff/952179764 for reasons I don't understand. You can work around this with ((tlx|foo|bar|baz=[[quux]]|nowiki}yes)) (producing ((foo|bar|baz=[[quux]])), but I agree that how to format parameters should be none of this template's business. * Pppery * it has begun... 03:09, 24 March 2021 (UTC)[reply]
I've added some code to Module:Template link general/sandbox that should fix this issue. Although many of testcases are yellow, the differences are non-visual, except for the corner case that parameters containing empty nowiki tags at the end no longer ignored, which nothing should care about (and I'd argue that the new behavior is more correct anyway). * Pppery * it has begun... 03:45, 24 March 2021 (UTC)[reply]