v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:RTL"
Jump to navigation
Jump to search
(set line-height: 1) |
|||
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude>style="padding: 0;"|<div style="color | + | <noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude>style="padding: 0; line-height: 1;"|<div style="color: {{{1|#000}}}; background: {{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|transparent|{{{1}}}}}}}; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace;">{{#if:{{{2|}}}|'''{{{2}}}'''|'''█'''}}{{#if:{{{4|}}}|<div style="position: absolute; left: 0em; top: -1ex; color:{{{5|#000}}}; font-size: 60%; font-family: 'Helvetica'; text-align: {{{6|right}}}; width: 100%;">{{{4}}}</div>|}}{{#if:{{{7|}}}|<div style="position: absolute; left: 0em; top: 1ex; color:{{{8|#000}}}; font-size: 60%; font-family: 'Helvetica'; text-align: {{{9|right}}}; width: 100%;">{{{7}}}</div>|}}</div><noinclude></div> |
+ | |||
+ | <!-- Warning: {{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|transparent|{{{1}}}}}}} does not behave like {{{3|{{#if:{{{2|}}}|transparent|{{{1}}}}}}}} and {{#if:{{{2|}}}|'''{{{2}}}'''|'''█'''}} does not behave like {{{2|█}}} when this template is used in another template like the wiki table. Several examples using the default value will be broken: {{RTL|#222||||||3|#F00}} | ||
+ | http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates --> | ||
+ | |||
+ | Flexible template for building complex diagrams with wiki tables. | ||
== Usage == | == Usage == | ||
− | |||
− | |||
<pre> | <pre> | ||
Line 9: | Line 12: | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|<character-color>|<character>|<background-color>|<superior>|<superior-color>|<superior-align>}} | + | |{{RTL|<character-color>|<character>|<background-color>|<superior>|<superior-color>|<superior-align>|<inferior>|<inferior-color>|<inferior-align>}} |
|} | |} | ||
</nowiki> | </nowiki> | ||
Line 17: | Line 20: | ||
* background-color:transparent | * background-color:transparent | ||
* superior: | * superior: | ||
− | * superior-color:# | + | * superior-color:#000 |
− | * | + | * superior-align:right (left|center|right|justify) |
+ | * inferior: | ||
+ | * inferior-color:#000 | ||
+ | * inferior-align:right (left|center|right|justify) | ||
</pre> | </pre> | ||
Line 30: | Line 36: | ||
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0}} |
+ | </nowiki> | ||
+ | {| style="border-spacing: 0;" | ||
+ | |- | ||
+ | |{{RTL|#FF0}} | ||
+ | |} | ||
+ | <nowiki> | ||
+ | {{RTL|#FF0|▬}} | ||
+ | </nowiki> | ||
+ | {| style="border-spacing: 0;" | ||
+ | |- | ||
+ | |{{RTL|#FF0|▬}} | ||
+ | |} | ||
+ | <nowiki> | ||
+ | {{RTL|#FF0|▬|#CCC}} | ||
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC}} |
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0|▬|#CCC|1}} |
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC|1}} |
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0|▬|#CCC|1|#F00} |
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC|1|#F00}} |
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0|▬|#CCC|1|#F00|left}} |
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC|1|#F00|left}} |
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0|▬|#CCC|1|#F00|left|7}} |
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC|1|#F00|left|7}} |
|} | |} | ||
<nowiki> | <nowiki> | ||
− | {{RTL|# | + | {{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0}} |
</nowiki> | </nowiki> | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0}} |
+ | |} | ||
+ | <nowiki> | ||
+ | {{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0|left}} | ||
+ | </nowiki> | ||
+ | {| style="border-spacing: 0;" | ||
+ | |- | ||
+ | |{{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0|left}} | ||
|} | |} | ||
<br /> | <br /> | ||
Line 76: | Line 103: | ||
{| style="border-spacing: 0;" | {| style="border-spacing: 0;" | ||
|- | |- | ||
− | |{{RTL|#444|÷|#CCC|─| | + | |{{RTL|#444|÷|#CCC|─|#F00}} |
− | |{{RTL|#444|÷|#CCC|>||left}} | + | |{{RTL|#444|÷|#CCC|>|#F00|left}} |
|} | |} | ||
<br /> | <br /> | ||
Line 91: | Line 118: | ||
|} | |} | ||
<br /> | <br /> | ||
− | <!-- | + | {| style="border-spacing: 0;" |
+ | |- | ||
+ | |{{RTL|#222|█|||||1|#F00}} | ||
+ | |{{RTL|#222|█|||||2|#F00}} | ||
+ | |{{RTL|#222||||||3|#F00}}<!-- Test --> | ||
+ | |{{RTL|#222|█|||||4|#F00}} | ||
+ | |{{RTL|#222|█|||||5|#F00}} | ||
+ | |} | ||
+ | <br /> | ||
+ | <!-- <br /><table style="border-spacing: 0"><tr><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>÷</b></div></td><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>÷</b><div style="position: absolute; left: 0em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica; text-align:right; width:100%;"><font color="{{{5}}}">─></font></div></div></td></tr></table> | ||
<br /><table style="border-spacing: 0"><tr><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>÷÷</b><div style="position: absolute; left: 0em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica; text-align:right; width:100%;"><font color="{{{5}}}">─></font></div></div></td></tr></table> | <br /><table style="border-spacing: 0"><tr><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>÷÷</b><div style="position: absolute; left: 0em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica; text-align:right; width:100%;"><font color="{{{5}}}">─></font></div></div></td></tr></table> | ||
<br /><table style="border-spacing: 0"><tr><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>ó</b><div style="position: absolute; left: 0em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica; text-align:right; width:100%;"><font color="{{{5}}}"> 2</font></div></div></td></tr></table> | <br /><table style="border-spacing: 0"><tr><td style="padding: 0;"><div style="color: #888; background: #CCC; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace"><b>ó</b><div style="position: absolute; left: 0em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica; text-align:right; width:100%;"><font color="{{{5}}}"> 2</font></div></div></td></tr></table> |
Latest revision as of 22:58, 9 June 2019
style="padding: 0; line-height: 1;"|
█
Flexible template for building complex diagrams with wiki tables.
Usage[edit]
{| style="border-spacing: 0;" |- |{{RTL|<character-color>|<character>|<background-color>|<superior>|<superior-color>|<superior-align>|<inferior>|<inferior-color>|<inferior-align>}} |} Default: * character-color:#000 * character:█ * background-color:transparent * superior: * superior-color:#000 * superior-align:right (left|center|right|justify) * inferior: * inferior-color:#000 * inferior-align:right (left|center|right|justify)
Usage[edit]
{{RTL}}
█
|
{{RTL|#FF0}}
█
|
{{RTL|#FF0|▬}}
▬
|
{{RTL|#FF0|▬|#CCC}}
▬
|
{{RTL|#FF0|▬|#CCC|1}}
▬
1 |
{{RTL|#FF0|▬|#CCC|1|#F00}
▬
1 |
{{RTL|#FF0|▬|#CCC|1|#F00|left}}
▬
1 |
{{RTL|#FF0|▬|#CCC|1|#F00|left|7}}
▬
1 7 |
{{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0}}
▬
1 7 |
{{RTL|#FF0|▬|#CCC|1|#F00|left|7|#0F0|left}}
▬
1 7 |
Examples[edit]
÷
─ |
÷
> |
█
|
┼
1 |
█
|
┼
2 |
█
|
┼
3 |
█
|
█
1 |
█
2 |
█
3 |
█
4 |
█
5 |