Modèle:Raw Tile : Différence entre versions

De Le wiki de DwarfFortress
Aller à : navigation, rechercher
 
(Une révision intermédiaire par un autre utilisateur non affichée)
Ligne 1 : Ligne 1 :
<noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><code style="color: {{{2}}}; background: {{{3}}}; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace">'''{{{1}}}'''</code>
+
<noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><code style="color: {{fgcolor|{{{2}}}}}; background: {{bgcolor|{{{2}}}|{{{3|#000}}}}}; font-size: 135%; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; font-weight:bold">{{{1}}}</code><noinclude></div>
  
<noinclude></div>
+
'''Template:Raw Tile''' can be used to display tiles close to what they appear as in Dwarf Fortress. It is designed to be used in grids. There is a [[:Template:Tile|variant with padding]] for free-standing use. The [[:Template:Dwarf|Dwarf template]] can be used to insert dwarf faces.
  
== Usage ==
+
=Utilisation=
  
<pre><nowiki>
+
*<nowiki>{{Raw Tile|<character>|a:b:c}}</nowiki>
{{Raw Tile|<character>|<color>|<background>}}
+
**where "a:b:c" is a COLOR token value specifying both foreground and background color
</nowiki></pre>
+
*<nowiki>{{Raw Tile|<character>|a:b}}</nowiki>
 +
**where "a:b" is a COLOR token value specifying foreground color only; background will be defaulted to black
 +
*<nowiki>{{Raw Tile|<character>|#xxx|#yyy}}</nowiki>
 +
**where #xxx is the foreground color and #yyy is the (optional, default black) background color
 +
 
 +
=Caractères Spéciaux=
 +
 
 +
Special characters can be copied from the [[character table]]. Characters used in the template syntax (e.g. | or =) need to be escaped.
 +
 
 +
=Exemple=
 +
 
 +
{| style="border-spacing: 0"
 +
|-
 +
|style="padding: 0"|{{Raw Tile|═|#CCC}}
 +
|style="padding: 0"|{{Raw Tile|═|#CCC}}
 +
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
 +
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
 +
|style="padding: 0"|{{Raw Tile|═|#CCC}}
 +
|style="padding: 0"|{{Raw Tile|═|#CCC}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}}
 +
|style="padding: 0"|{{Raw Tile|&#61;|#808080|#000000}}
 +
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
 +
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
 +
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
 +
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|&#61;|0:1}}
 +
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 +
|style="padding: 0"|{{Raw Tile|&#61;|0:1}}
 +
|}
  
=== Exemples ===
+
...can be made with:
  
 +
<pre><nowiki>
 
{| style="border-spacing: 0"
 
{| style="border-spacing: 0"
 
|-
 
|-
|style="padding: 0"|{{Raw Tile|═|#999|#000}}
+
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#999|#000}}
+
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|┼|#666|#999}}
+
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
|style="padding: 0"|{{Raw Tile|┼|#666|#999}}
+
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#999|#000}}
+
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#999|#000}}
+
|style="padding: 0"|{{Raw Tile|═|#CCC}}
 
|-
 
|-
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}}
|style="padding: 0"|{{Raw Tile|&#61;|#666|#000}}
+
|style="padding: 0"|{{Raw Tile|&#61;|#808080|#000000}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
 
|-
 
|-
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
 
|-
 
|-
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&#61;|#666|#000}}
+
|style="padding: 0"|{{Raw Tile|&#61;|0:1}}
|style="padding: 0"|{{Raw Tile|&divide;|#000|#990}}
+
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|&#61;|#666|#000}}
+
|style="padding: 0"|{{Raw Tile|&#61;|0:1}}
 
|}
 
|}
 +
</nowiki></pre>
 +
 +
[[Category:Templates]]
 +
</noinclude>

Version actuelle datée du 22 février 2013 à 14:37

{{{1}}}

Template:Raw Tile can be used to display tiles close to what they appear as in Dwarf Fortress. It is designed to be used in grids. There is a variant with padding for free-standing use. The Dwarf template can be used to insert dwarf faces.

Utilisation[modifier]

  • {{Raw Tile|<character>|a:b:c}}
    • where "a:b:c" is a COLOR token value specifying both foreground and background color
  • {{Raw Tile|<character>|a:b}}
    • where "a:b" is a COLOR token value specifying foreground color only; background will be defaulted to black
  • {{Raw Tile|<character>|#xxx|#yyy}}
    • where #xxx is the foreground color and #yyy is the (optional, default black) background color

Caractères Spéciaux[modifier]

Special characters can be copied from the character table. Characters used in the template syntax (e.g. | or =) need to be escaped.

Exemple[modifier]

÷ = ÷ ÷ ÷ ÷
÷ ÷ ÷ ÷ ÷ ÷
÷ ÷ ÷ = ÷ =

...can be made with:

{| style="border-spacing: 0"
|-
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
|style="padding: 0"|{{Raw Tile|┼|#888|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|style="padding: 0"|{{Raw Tile|═|#CCC}}
|-
|style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}}
|style="padding: 0"|{{Raw Tile|=|#808080|#000000}}
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|style="padding: 0"|{{Raw Tile|÷|#000000|#808000}}
|-
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|-
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|=|0:1}}
|style="padding: 0"|{{Raw Tile|÷|0:6:0}}
|style="padding: 0"|{{Raw Tile|=|0:1}}
|}