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

Revision as of 19:44, 6 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.