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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(set line-height: 1)
 
(9 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: {{#if:{{{1|}}}|{{{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:{{#if:{{{5|}}}|{{{5}}}|#000}}; font-size: 60%; font-family: 'Helvetica'; text-align: {{#if:{{{6|}}}|{{{6}}}|right}}; width: 100%;">{{{4}}}</div>|}}{{#if:{{{7|}}}|<div style="position: absolute; left: 0em; top: 1ex; color:{{#if:{{{8|}}}|{{{8}}}|#000}}; font-size: 60%; font-family: 'Helvetica'; text-align: {{#if:{{{9|}}}|{{{9}}}|right}}; width: 100%;">{{{7}}}</div>|}}</div><noinclude></div>
+
<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 diagramms with wiki tables.
+
<!-- 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
* superuor-align:right (left|center|right|justify)
+
* superior-align:right (left|center|right|justify)
 
* inferior:
 
* inferior:
 
* inferior-color:#000
 
* inferior-color:#000
* inferuor-align:right (left|center|right|justify)
+
* inferior-align:right (left|center|right|justify)
 
</pre>
 
</pre>
  
Line 33: Line 36:
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808}}
+
{{RTL|#FF0}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808}}
+
|{{RTL|#FF0}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^}}
+
{{RTL|#FF0|}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^}}
+
|{{RTL|#FF0|}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC}}
+
{{RTL|#FF0||#CCC}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC}}
+
|{{RTL|#FF0||#CCC}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1}}
+
{{RTL|#FF0||#CCC|1}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1}}
+
|{{RTL|#FF0||#CCC|1}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1|#F00}
+
{{RTL|#FF0||#CCC|1|#F00}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1|#F00}}
+
|{{RTL|#FF0||#CCC|1|#F00}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1|#F00|left}}
+
{{RTL|#FF0||#CCC|1|#F00|left}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1|#F00|left}}
+
|{{RTL|#FF0||#CCC|1|#F00|left}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1|#F00|left|7}}
+
{{RTL|#FF0||#CCC|1|#F00|left|7}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1|#F00|left|7}}
+
|{{RTL|#FF0||#CCC|1|#F00|left|7}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1|#F00|left|7|#0FF}}
+
{{RTL|#FF0||#CCC|1|#F00|left|7|#0F0}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1|#F00|left|7|#0FF}}
+
|{{RTL|#FF0||#CCC|1|#F00|left|7|#0F0}}
 
|}
 
|}
 
<nowiki>
 
<nowiki>
{{RTL|#808|^|#CCC|1|#F00|left|7|#0FF|left}}
+
{{RTL|#FF0||#CCC|1|#F00|left|7|#0F0|left}}
 
</nowiki>
 
</nowiki>
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|#808|^|#CCC|1|#F00|left|7|#0FF|left}}
+
|{{RTL|#FF0||#CCC|1|#F00|left|7|#0F0|left}}
 
|}
 
|}
 
<br />
 
<br />
Line 100: 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 113: Line 116:
 
|{{RTL|#444|┼|#AAA|3|#FF0}}
 
|{{RTL|#444|┼|#AAA|3|#FF0}}
 
|{{RTL|#222}}
 
|{{RTL|#222}}
 +
|}
 +
<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 />

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