Template:CodeBlock: Difference between revisions
Jump to navigation
Jump to search
(The source code has been reworked.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div style="{{#if:{{{limited|}}}|max-height: 400px; height: {{{height|auto}}};|}}background-color:{{#switch:{{{style|}}}|#default=rgba(0,0,0,.3)|1=rgb(0,0,0,.1)}};{{#switch:{{{style|}}}|#default= |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; padding:.5em; margin: {{{margin|.5em 0 0 0}}}"><!-- | --><div style="{{#if:{{{limited|}}}|max-height: 400px; height: {{{height|auto}}};|}}background-color:{{#switch:{{{style|}}}|#default=rgba(0,0,0,.3)|1=rgb(0,0,0,.1)}};{{#switch:{{{style|}}}|#default= |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; padding:.5em; margin: {{{margin|.5em 0 0 0}}}"><!-- | ||
-->{{#switch:{{{header|}}}|#default=|1=<div style="width:100%; background-color:rgba(0,0,0,.1); border:1px solid rgba(255,255,255,.1); font-family:monospace; font-size:1.0em; line-height:1.125rem; text-indent:0; white-space:pre-wrap; padding:.5em; margin-top:-0.6em; margin-left:-0.6em; margin-bottom:0.5em">{{{ | -->{{#switch:{{{header|}}}|#default=|1=<div style="width:100%; background-color:rgba(0,0,0,.1); border:1px solid rgba(255,255,255,.1); font-family:monospace; font-size:1.0em; line-height:1.125rem; text-indent:0; white-space:pre-wrap; padding:.5em; margin-top:-0.6em; margin-left:-0.6em; margin-bottom:0.5em">{{#if:{{{src|}}}|{{{src|}}}|The source was not specified}}{{#if:{{{lang|}}}|<div style="float: right;">{{#switch:{{{lang|}}}|#default=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}}</div>|}}</div>}}<!-- | ||
--> | -->{{{1|}}}<!-- | ||
--></div></includeonly></onlyinclude>{{doc}} | --></div></includeonly></onlyinclude>{{doc}} |
Revision as of 09:11, 27 January 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.