Template:Code/doc: Difference between revisions

m
Put back what's missing
imported>FrozenPlum
m (2 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.)
imported>FrozenPlum
m (Put back what's missing)
 
(One intermediate revision by the same user not shown)
Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->
To be used if you want to list some short code, which you wantwould like to stand out. Similar to using <nowiki><code></code></nowiki> tags, except that it has a grey background.
 
== Usage ==
Use <code><nowiki>{{tl|code|Code to display}}</nowiki></code>, which results in {{code|Code to display}}.
 
; Unnamed parameter 1
Line 18 ⟶ 19:
 
== Examples ==
<code><nowiki>{{tlcode|code|lang{{=}}css|border:1px solid #fff}}</nowiki></code> => results in {{code|lang=css|border:1px solid #fff}}
 
Note: Template based off [[wikipedia:Template:Code]] and [[mw:Template:Code]]
 
<includeonly>
<noinclude>
<!-- Template categories/interwikis here -->
[[tr:Şablon:Kod/belge]]
[[Category:Templates]]
</noinclude>
[[Category:Formatting templates]]
{{doc/end}}
</includeonly>
Anonymous user