Template:ThrowSequence: Difference between revisions
From jugglingpatterns
No edit summary |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- |
|||
⚫ | |||
Template not used rn. Using this with <div> introduces a lot of additional space above and below the sequence text. |
|||
Instead, a class for pre-tags is defined in MediaWiki:Common.css that defines formatting. In addition, as the class is not used anywhere yet, all pre tags are re-formatted in this way even without the class. |
|||
⚫ | |||
Usage: example: |
Usage: example: |
||
{{ThrowSequence| |
{{ThrowSequence| |
||
Line 7: | Line 12: | ||
{{!}} must be used instead of | because | is interpreted as part of the template |
{{!}} must be used instead of | because | is interpreted as part of the template |
||
--> |
--> |
||
<div style="white-space: pre; overflow-x: auto; font-family: monospace; font-size: 1.4em; padding: 0.5em; background-color: # |
<div class="throw-sequence" style="white-space: pre; overflow-x: auto; font-family: monospace; font-size: 1.4em; padding: 0.5em; background-color: #333333; border: 1px solid #444444; border-radius: 4px;">{{{1}}}</div> |
||
{{{1}}} |
|||
</div> |
Latest revision as of 15:23, 13 January 2025
{{{1}}}