Changes

Jump to navigation Jump to search
983 bytes added ,  02:54, 10 May 2018
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>&lt;code&gt;font-family: 'Times New Roman', serif;&lt;/code&gt;</code>

== See also ==
* {{tl|inline-code}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Semantic markup templates]]
}}</includeonly>
Anonymous user

Navigation menu