Difference between revisions of "Template:Code/doc"

From Wiki
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> __NOTOC__ Print inline code, but wrapping it in a template makes changing e...")
 
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
__NOTOC__
 
__NOTOC__
 
 
Print inline code, but wrapping it in a template makes changing easier.
 
Print inline code, but wrapping it in a template makes changing easier.
 
  <nowiki>{{code|stuff}}</nowiki>
 
  <nowiki>{{code|stuff}}</nowiki>
Line 10: Line 9:
  
 
or fall back on the {{code|&lt;code>...&lt;/code>}} tags.
 
or fall back on the {{code|&lt;code>...&lt;/code>}} tags.
 
 
<!--
 
<!--
 
===See also===
 
===See also===
 
-->
 
-->

Latest revision as of 19:51, 11 February 2020

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.