Template:Code: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
(Created page with "<includeonly><code>{{{1}}}</code></includeonly><noinclude> The <nowiki>{{</nowiki>'''code'''<nowiki>}}</nowiki> template wraps its contents with <code><nowiki><code>...</code></nowiki></code> tags. ==Usage== Place <code><nowiki>{{code|</nowiki>''your text''<nowiki>}}</nowiki></code> where you want the string to appear. ==Parameters== {| class="wikitable" ! Parameter !! Description !! Type !! Status !! Notes |- | <code>1</code> || Text string || String || Optional || Co...")
 
m (Move documentation to a subpage)
 
Line 1: Line 1:
<includeonly><code>{{{1}}}</code></includeonly><noinclude>
<includeonly><code>{{{1}}}</code></includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
The <nowiki>{{</nowiki>'''code'''<nowiki>}}</nowiki> template wraps its contents with <code><nowiki><code>...</code></nowiki></code> tags.
 
==Usage==
Place <code><nowiki>{{code|</nowiki>''your text''<nowiki>}}</nowiki></code> where you want the string to appear.
 
==Parameters==
{| class="wikitable"
! Parameter !! Description !! Type !! Status !! Notes
|-
| <code>1</code> || Text string || String || Optional || Contains the string to be wrapped in the code tags
|}
 
==Example==
<code><nowiki>{{code|parameter}}</nowiki></code> &rarr; {{code|parameter}}
 
[[Category:Templates]]</noinclude>

Latest revision as of 22:59, 12 October 2024

Template documentation

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

Usage

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

Parameters

Parameter Description Type Status Notes
1 Text string String Optional Contains the string to be wrapped in the code tags

Example

{{code|parameter}}parameter