Шаблон:RTL: различия между версиями

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
(Новая страница: «<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: Строка 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: {{#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>
<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: {{#if:{{{3|}}}|{{{3}}}|{{#if:{{{2|}}}|transparent|{{{1}}}}}}}; position:relative; font-weight:bold; border-spacing: 1px; border-collapse: collapse; padding: 0px; border: 1px black; margin: 0px; font-size:155%; border-radius:0px; 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|█}}} wenn this template is used in another template like the wiki table. Several examples using the default value will be broken: {{RTL|#222||||||3|#F00}}
<!-- 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|█}}} wenn this template is used in another template like the wiki table. Several examples using the default value will be broken: {{RTL|#222||||||3|#F00}}
Строка 133: Строка 133:
<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}}}">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> -->
<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>
[[en:Template:RTL]]</noinclude>

Версия от 17:27, 8 августа 2018

style="padding: 0;"|


Flexible template for building complex diagramms with wiki tables.

Usage


{| 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
* inferuor-align:right (left|center|right|justify)

Usage

{{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


÷
÷
>


1
2
3


1
2
3
4
5