Template:CodeBlock: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
--><div><div style="display:flex;max-height:{{{height|auto}}};overflow:auto"><!-- | --><div><div style="display:flex;max-height:{{{height|auto}}};overflow:auto"><!-- | ||
-->{{#if:{{{lines|}}}|<div style="position:sticky;left:0;padding:.6em 0 .5em 0;background-color:rgb(24,24,24);border-right:1px solid rgb(48,48,48);height:100%"><ol start="{{{start|1}}}" style="text-align:right;pointer-events:none;white-space:nowrap;list-style-position:inside;margin-left:8px;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>}}<!-- | -->{{#if:{{{lines|}}}|<div style="position:sticky;left:0;padding:.6em 0 .5em 0;background-color:rgb(24,24,24);border-right:1px solid rgb(48,48,48);height:100%"><ol start="{{{start|1}}}" style="text-align:right;pointer-events:none;white-space:nowrap;list-style-position:inside;margin-left:8px;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:.55em .5em;text-indent:0;line-height:1.6em;white-space:pre;width:100%;height:100%;">{{{1|}}}</div><!-- | --><div style="padding:.55em .5em;text-indent:0;line-height:1.6em;white-space:pre;width:100%;height:100%;">{{{1|}}}<span style=user-select:none></span></div><!-- | ||
--></div></div><!-- | --></div></div><!-- | ||
--></div></includeonly></onlyinclude>{{Doc}} | --></div></includeonly></onlyinclude>{{Doc}} |
Revision as of 17:20, 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.