Template talk:Code

From Wikipedia, the free encyclopedia

Can someone explain the purpose of this template? I don't understand what it does. — Knowledge Seeker 01:23, 19 Apr 2005 (UTC)

[edit] Template change

I changed this template to insert <nowiki> and <code> tags around text. It should be called using the following format: {{subst:code|[[Wiki]] ''text''}}. Of course, this may be more trouble than it's worth. — Knowledge Seeker 04:54, 26 May 2005 (UTC)

[edit] Template doesn't work with ampersand

Subject. Adraeus 10:21, September 9, 2005 (UTC)

I believe that using {{Code|1=foo}} would solve this but requires a code change to the template; see {{Resolved}} for the code to make that work. — SMcCandlish [talk] [contrib] 23:24, 17 March 2007 (UTC).

[edit] Replacement notice and issue

I've just modified it so that instead of using the nowiki tag, it calls the template {{Nowiki}}. That way, it should actually work... for most things. What was happening before was that the nowiki part would always take the text "{{{1}}}" and, of course, nowiki it -- rather than take parameter #1 and render it in a nowiki form.

The only problem now is that it won't render anything right if it's between two brackets, {{like this}}, they way you would want to write a template name. Instead, it will render the text of the template (or other called page) in a nowiki form. This seems to be more of a problem with {{Nowiki}}, so I might instead raise it over there. \sim Lenoxus " * " 00:47, 24 May 2008 (UTC)