Difference between revisions of "Template:Code"

From Wiki
Jump to navigation Jump to search
m (moved Template:code to Template:Code: move to Uppercase)
Line 1: Line 1:
<code>{{{1}}}</code><noinclude>
+
<code>{{{1}}}</code>
 +
<noinclude>
 
----
 
----
 
+
{{documentation}}
Print inline code, but wrapping it in a template makes changing easier. If the code contains any equal sign at all, use this idiom:
 
 
 
  <nowiki>{{code|stuff}}           % most cases
 
  {{code|1=location=stuff}} % if there is any equals sign at all in the code</nowiki>
 
 
 
or fall back on the {{code|<code>...&lt;/code>}} tags.
 
 
 
 
</noinclude>
 
</noinclude>

Revision as of 19:41, 6 February 2020

{{{1}}}


[edit] [history] [purge] Documentation icon Template documentation

Print inline code, but wrapping it in a template makes changing easier.

{{code|stuff}}

If the code contains any equal sign at all, use this idiom:

{{code|1=location=stuff}}

or fall back on the <code>...</code>

tags.