Template:Code/doc: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 12: Line 12:
|}
|}


==Example==
==Examples==
* <code><nowiki>{{code|sample text}}</nowiki></code> &rarr; {{code|sample text}}
* <code><nowiki>{{code|sample text}}</nowiki></code> &rarr; {{code|sample text}}
* <code><nowiki>{{code|''another sample''}}</nowiki></code> &rarr; {{code|''another sample''}}
* <code><nowiki>{{code|''another sample''}}</nowiki></code> &rarr; {{code|''another sample''}}

Latest revision as of 06:58, 6 December 2024

This is a documentation subpage for Template:Code.
It may contain usage information, categories and other content that is not part of the original template page.

The {{code}} template wraps its contents with <code>...</code> tags.

Usage

Place {{code|1}} where you want the string to appear.

Parameters

Parameter Description Type Status Notes
1 Text string String Required Contains the string to be wrapped in the code tags. Standard wiki markup is accepted.

Examples

  • {{code|sample text}}sample text
  • {{code|''another sample''}}another sample