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
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: {{{3}}}; background: {{{4}}}; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace">'''{{{1}}}'''<div style="position: absolute; left: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><span style="color: {{{5}}};">{{{2}}}</span></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;"|<div style="color: {{#if:{{{1|}}}|{{{1}}}|#000}}; background: {{#if:{{{3|}}}|{{{3}}}|#FFF}}; position:relative; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace">'''{{#if:{{{2|}}}|{{{2}}}|█}}'''<div style="position: absolute; left: 0.5em; top: 1ex; color:{{#if:{{{5|}}}|{{{5}}}|red}}; font-size: 60%; font-family: 'Helvetica'; text-align: {{#if:{{{6|}}}|{{{6}}}|right}}; width: 100%;">{{#if:{{{4|}}}|{{{4}}}|}}</div></div><noinclude></div>
  
 
== Usage ==
 
== Usage ==
  
<pre><nowiki>
+
<pre>
{{RTL|<character>|<superior>|<character-color>|<background-color>}}
+
<nowiki>
{{RTL|<character>|<superior>|<character-color>|<background-color>|<superior-color>}}
+
{{RTL|<character-color>|<character>|<background-color>|<superior>|<superior-color>|<superior-align>}}
</nowiki></pre>
+
</nowiki>
 +
Default:
 +
* character-color:#000
 +
* character:█
 +
* background-color:#FFF
 +
* superior:
 +
* superior-color:#F00
 +
* superuor-align:right (left|center|right|justify)
 +
</pre>
 +
 
 +
=== Usage ===
 +
<nowiki>
 +
{{RTL}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808|^}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808|^}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808|^|#CCC}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808|^|#CCC}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808|^|#CCC|1}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808|^|#CCC|1}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808|^|#CCC|1|#880}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808|^|#CCC|1|#880}}
 +
|}
 +
<nowiki>
 +
{{RTL|#808|^|#CCC|1|#880|left}}
 +
</nowiki>
 +
{| style="border-spacing: 0;"
 +
|-
 +
|{{RTL|#808|^|#CCC|1|#880|left}}
 +
|}
 +
 
 +
 
 +
 
  
 
=== Examples ===
 
=== Examples ===
Line 12: Line 74:
 
{| style="border-spacing: 0;"
 
{| style="border-spacing: 0;"
 
|-
 
|-
|{{RTL|÷|─>|#CCC|#444}}
+
|{{RTL|#444|÷|#CCC}}
|{{RT|÷|#CCC|#444}}
+
|{{RTL|#444|÷|#CCC|─>}}
 
|}
 
|}
 
<br />
 
<br />
 
{| style="border-spacing: 0;
 
{| style="border-spacing: 0;
 
|-
 
|-
|{{RTB|#222}}
+
|{{RTL|#222}}
|{{RTL|┼|1|#AAA|#444|#FF0}}
+
|{{RTL|#444|┼|#AAA|1|#FF0}}
|{{RTB|#222}}
+
|{{RTL|#222}}
|{{RTL|┼|2|#AAA|#444|#FF0}}
+
|{{RTL|#444|┼|#AAA|2|#FF0}}
|{{RTB|#222}}
+
|{{RTL|#222}}
|{{RTL|┼|3|#AAA|#444|#FF0}}
+
|{{RTL|#444|┼|#AAA|3|#FF0}}
|{{RTB|#222}}
+
|{{RTL|#222}}
 
|}
 
|}
 
<br />
 
<br />
<!-- TEST:<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: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><font color="{{{5}}}">─></font></div></div></td></tr></table>
+
TEST:<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: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><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}}}">─></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: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><font color="{{{5}}}">3</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}}}">&nbsp;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: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><font color="{{{5}}}">4</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}}}">3&nbsp;</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: 0.5em; top: 1ex; color: red; font-size: 60%; font-family: Helvetica;"><font color="{{{5}}}">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}}}">44</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}}}">5</font></div></div></td></tr></table>
 
</noinclude>
 
</noinclude>

Revision as of 09:34, 14 December 2009

style="padding: 0;"|

Usage


{{RTL|<character-color>|<character>|<background-color>|<superior>|<superior-color>|<superior-align>}}

Default:
* character-color:#000
* character:█
* background-color:#FFF
* superior:
* superior-color:#F00
* superuor-align:right (left|center|right|justify)

Usage

{{RTL}}

{{RTL|#808}}

{{RTL|#808|^}}

^

{{RTL|#808|^|#CCC}}

^

{{RTL|#808|^|#CCC|1}}

^
1

{{RTL|#808|^|#CCC|1|#880}}

^
1

{{RTL|#808|^|#CCC|1|#880|left}}

^
1



Examples

÷
÷
─>


1
2
3


TEST:

÷
÷
─>


÷÷
─>


ó
 2


^


44


÷
5