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) |
|||
(5 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: {{{1|#000}}}; background: {{{3|{{#if:{{{2|}}}|transparent|{{{1 | + | <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> |
− | Flexible template for building complex | + | <!-- 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 == | ||
Line 18: | Line 21: | ||
* superior: | * superior: | ||
* superior-color:#000 | * superior-color:#000 | ||
− | * | + | * superior-align:right (left|center|right|justify) |
* inferior: | * inferior: | ||
* inferior-color:#000 | * inferior-color:#000 | ||
− | * | + | * inferior-align:right (left|center|right|justify) |
</pre> | </pre> | ||
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 |