Template:Code/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>{{docsub}}</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 w...") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{docsub}}</noinclude> | <noinclude>{{docsub}}</noinclude> | ||
The <nowiki>{{</nowiki> | The <nowiki>{{</nowiki>[[Template:Code|code]]}} template wraps its contents with {{code|<nowiki><code>...</code></nowiki>}} tags. | ||
==Usage== | ==Usage== | ||
Place | Place {{code|<nowiki>{{code|</nowiki>''1''<nowiki>}}</nowiki>}} where you want the string to appear. | ||
==Parameters== | ==Parameters== | ||
Line 9: | Line 9: | ||
! Parameter !! Description !! Type !! Status !! Notes | ! Parameter !! Description !! Type !! Status !! Notes | ||
|- | |- | ||
| | | {{code|1}} || Text string || String || '''Required''' || Contains the string to be wrapped in the code tags. Standard wiki markup is accepted. | ||
|} | |} | ||
== | ==Examples== | ||
<code><nowiki>{{code| | * <code><nowiki>{{code|sample text}}</nowiki></code> → {{code|sample text}} | ||
* <code><nowiki>{{code|''another sample''}}</nowiki></code> → {{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