Template:ThrowSequence: Difference between revisions
From jugglingpatterns
(Created page with "<!-- This template is for throw sequences that have to line up over multiple lines. It is in monospace font and preserves whitespace and shows a slider on long boxes (i.e. does not wrap around lines) Usage: example: {{ThrowSequence| A 1|2: zap(r) zap(l) flip(r) | zap(l) zap(r) flip(l) B 1|0: zap(r) zap(l) flip(r) | zap(l) zap(r) flip(l) }} --> <div style="white-space: pre; overflow-x: auto; font-family: monospace;"> {{{1}}} </...") |
No edit summary |
||
(17 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| |
||
A 1 |
A 1{{!}}2: zap(r) zap(l) flip(r) {{!}} zap(l) zap(r) flip(l) |
||
B 1 |
B 1{{!}}0: zap(r) zap(l) flip(r) {{!}} zap(l) zap(r) flip(l) |
||
}} |
}} |
||
{{!}} must be used instead of | because | is interpreted as part of the template |
|||
--> |
--> |
||
<div style="white-space: pre; overflow-x: auto; font-family: monospace;"> |
<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}}}