Template:Vertical: Difference between revisions
From MediaWiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if|{{{overflow|}}}||<ul class="tt1_verticaltext">}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|0|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|1|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|2|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|3|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|4|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|5|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|6|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|7|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|8|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|9|1}}}}{{#if:{{#sub:{{#replace: | <includeonly>{{#if|{{{overflow|}}}||<ul class="tt1_verticaltext">}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|0|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|1|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|2|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|3|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|4|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|5|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|6|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|7|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|8|1}}}}{{vertical/char|{{#sub:{{#replace:{{{1|}}}| |_}}|9|1}}}}{{#if:{{#sub:{{#replace:{{{1|}}}| |_}}|10|0}}|{{vertical_recurs|{{#sub:{{#replace:{{{1|}}}| |_}}|10|0}}|overflow=true}}|}}{{#if|{{{overflow|}}}||</ul>}}</includeonly><noinclude>{{doc}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:25, 22 March 2009
(Transcluded documentation: view)
{{vertical}} is uses to create an unordered list from a string, with each list item containing a single letter of that string.
{{vertical
|baby}}{{#if|||
- }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|0|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|1|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|2|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|3|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|4|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|5|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|6|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|7|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|8|1}}|_| }}
- {{#replace:{{#sub:{{#replace:baby| |_}}|9|1}}|_| }} Template loop detected: Template:Vertical recurs{{#if|||
}}
Hypothetically, if styled visa (non-inline) CSS, this might prove useful for very specific applications, generally within other templates.
This template will convert all "_" to blank spaces.
This limitation negotiable, if ti becomes a major problem later. Another "control" character can be chosen.
- This template should probably be classed as "in progress and not usable" until there is supporting CSS written. -Derik 19:33, 22 March 2009 (EDT)
