Template:CodeBlock: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div style="{{#if:{{{limited|}}}|max-height: 400px; height: {{{height|auto}}};|}}background-color:{{#switch:{{{style|}}}|1=rgb(0,0,0,.1)|rgba(0,0,0,.3)}};{{#switch:{{{style|}}}|1=border:1px solid rgba(255,255,255,.1);| }}border-radius:4px; {{#if:{{{limited|}}}|overflow-y:auto; overflow-x:hidden;|overflow:hidden;}} font-family:monospace; font-size:1.2em; line-height:1.125rem; text-indent:0; white-space:pre-wrap | --><div style="{{#if:{{{limited|}}}|max-height: 400px; height: {{{height|auto}}};|}}background-color:{{#switch:{{{style|}}}|1=rgb(0,0,0,.1)|rgba(0,0,0,.3)}};{{#switch:{{{style|}}}|1=border:1px solid rgba(255,255,255,.1);| }}border-radius:4px; {{#if:{{{limited|}}}|overflow-y:auto; overflow-x:hidden;|overflow:hidden;}} font-family:monospace; font-size:1.2em; line-height:1.125rem; text-indent:0; white-space:pre-wrap; margin: {{{margin|.5em 0 0 0}}}"><!-- | ||
-->{{#if:{{{src|{{{lang|}}}}}}|<div style=" | -->{{#if:{{{src|{{{lang|}}}}}}|<div style="background-color:rgba(0,0,0,.1); border-bottom:1px solid rgba(255,255,255,.1); font-family:monospace;line-height:1.125rem; text-indent:0; white-space:pre-wrap; padding:.5em"><!-- | ||
-->{{{src|The source was not specified}}}<!-- | -->{{{src|The source was not specified}}}<!-- | ||
-->{{#if:{{{lang|}}}|<div style="float:right">{{#switch:{{{lang}}}|plain=Plain text|html=HTML|css=CSS|scss=SCSS|less=LESS|js=JavaScript|json=JSON|php=PHP|c=C|cs=C#|cpp=C++|pascal=Pascal|python=Python|java=Java|squirrel=Squirrel|lua=Lua|glua=gLua|{{{lang}}}}}</div>}}<!-- | -->{{#if:{{{lang|}}}|<div style="float:right">{{#switch:{{{lang}}}|plain=Plain text|html=HTML|css=CSS|scss=SCSS|less=LESS|js=JavaScript|json=JSON|php=PHP|c=C|cs=C#|cpp=C++|pascal=Pascal|python=Python|java=Java|squirrel=Squirrel|lua=Lua|glua=gLua|{{{lang}}}}}</div>}}<!-- | ||
--></div>}}<!-- | --></div>}}<!-- | ||
-->{{{1|}}}<!-- | --><div style="display:flex"><!-- | ||
-->{{#if:{{{lines|}}}|<div style="padding:.55em 0 .5em 0;background-color:rgba(0,0,0,.1);border-right:1px solid rgba(255,255,255,.1)"><ol start="{{{start|1}}}" style="margin-top:0;user-select:none;margin-right:-10px;text-indent:0">{{padright:|{{#expr:5 * {{{lines}}}}}|<li> }}{{#ifexpr:{{{lines}}} > 100 |{{padright:|{{#expr:5 * ({{{lines}}} - 100)}}|<li> }}}}{{#ifexpr:{{{lines}}} > 200 |{{padright:|{{#expr:5 * ({{{lines}}} - 200)}}|<li> }}}}{{#ifexpr:{{{lines}}} > 300 |{{padright:|{{#expr:5 * ({{{lines}}} - 300)}}|<li> }}}}{{#ifexpr:{{{lines}}} > 400 |{{padright:|{{#expr:5 * ({{{lines}}} - 400)}}|<li> }}}}</ol></div>}}<!-- | |||
--><div style="padding:.5em;text-indent:0;line-height:1.6em">{{{1|}}}</div><!-- | |||
--></div><!-- | |||
--></div></includeonly></onlyinclude>{{doc}} | --></div></includeonly></onlyinclude>{{doc}} |
Revision as of 06:12, 17 February 2023
The above documentation is transcluded from Template:CodeBlock/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.