Changes
Jump to navigation
Jump to search
no edit summary
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
== Usage ==
This is a [[:en:w:Semantic markup|semantic markup]] wrapper template for the [[:en:w:HTML element|HTML element]] {{tag|code}}. It can be used without a parameter to wrap code in a formatted block, with syntax highlighting, or with {{para|inline}} for a leaner presentation.
Example:
:<code>{{tlx|code|font-family: 'Times New Roman', serif;}}</code>
produces:
:{{code|font-family: 'Times New Roman', serif;}}
Inline:
:<code>{{tlx|code|inline{{=}}y|font-family: 'Times New Roman', serif;}}</code>
produces:
:{{code|inline=y|font-family: 'Times New Roman', serif;}}
and is equivalent to:
:<code><code>font-family: 'Times New Roman', serif;</code></code>
== See also ==
* {{tl|inline-code}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Semantic markup templates]]
}}</includeonly>
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
== Usage ==
This is a [[:en:w:Semantic markup|semantic markup]] wrapper template for the [[:en:w:HTML element|HTML element]] {{tag|code}}. It can be used without a parameter to wrap code in a formatted block, with syntax highlighting, or with {{para|inline}} for a leaner presentation.
Example:
:<code>{{tlx|code|font-family: 'Times New Roman', serif;}}</code>
produces:
:{{code|font-family: 'Times New Roman', serif;}}
Inline:
:<code>{{tlx|code|inline{{=}}y|font-family: 'Times New Roman', serif;}}</code>
produces:
:{{code|inline=y|font-family: 'Times New Roman', serif;}}
and is equivalent to:
:<code><code>font-family: 'Times New Roman', serif;</code></code>
== See also ==
* {{tl|inline-code}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Semantic markup templates]]
}}</includeonly>