Template:Code: Difference between revisions
Jump to navigation
Jump to search
(The problem was that it was forcing syntaxhighlight, which doesn't apply some required logic, resulting in things like not interpreting links as such. The solution is to default to no syntax highlighting) |
mNo edit summary |
||
(23 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | See Also: [[Template:CodeBlock]] | ||
<includeonly><onlyinclude>< | {{doc}} | ||
|#default = | |||
|0 = | <includeonly><onlyinclude><span style="font-family:monospace; {{#switch:{{{p|{{{preset|}}}}}} | ||
|1 = | |#default = padding:2px 4px; border-radius:3px; background:rgb(0 0 0 / 26%); | ||
|2 = | |0 = | ||
|3 = | |1 = padding:2px 4px; border-radius:3px; background:rgb(0 0 0 / 16%); | ||
}} | |2 = padding:1px 3px; border-radius:3px; background:rgb(0 0 0 / 16%); border:1px solid rgb(255 255 255 / 10%); | ||
|3 = padding:1px 3px; border-radius:3px; background:rgb(255 255 255 / 5%); border:1px solid rgb(255 255 255 / 10%); | |||
}} {{#if:{{{select|}}}|user-select:{{{select}}};}} {{{style|}}}">{{#if:{{{highlight|}}}|{{#tag:syntaxhighlight|{{{1}}}|lang={{{highlight}}}|inline=1}}|{{{1}}}}}</span></onlyinclude></includeonly> | |||
[[Category:Formatting templates]] |
Latest revision as of 16:09, 17 August 2025
See Also: Template:CodeBlock
The above documentation is transcluded from Template:Code/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.