Modèle:Tile : Différence entre versions

De Le wiki de DwarfFortress
Aller à : navigation, rechercher
(création d'un modèle (j'essaye...))
 
 
(Une révision intermédiaire par un autre utilisateur non affichée)
Ligne 1 : Ligne 1 :
<code style="color: {{{2}}}; background: {{{3}}}; font-size: 135%; font-family: 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; padding: 0.1em 0.2em">'''{{{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:{{{4|135%}}}; font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; padding: 0.1em 0.2em; font-weight:bold">{{{1}}}</code><noinclude>
 +
</div>
  
<noinclude>Modèle à utiliser pour afficher ''une seule'' case telle qu'elle apparaît dans le jeu.
+
'''Template:Tile''' can be used to display tiles close to what they appear as in Dwarf Fortress. It is designed to be used for free-standing tiles. There is a [[:Template:Raw_Tile|padding-free variant]] for use in grids and other places where padding between the tiles is not desirable. The [[:Template:Dwarf|Dwarf template]] can be used to insert dwarf faces.
  
Exemple: {{Tile|+|#050|#fff}}
+
=Utilisation=
 +
 
 +
<nowiki>{{Tile|<character>|<#color>|<#background>|<size>}}</nowiki>
 +
<nowiki>{{Tile|<character>|<#color>|<#background>}}</nowiki>
 +
<nowiki>{{Tile|<character>|<x:y:z>}}</nowiki>
 +
<nowiki>{{Tile|<character>|<x:y:z>||<size>}}</nowiki>
 +
 
 +
=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=
 +
 
 +
Using <code><nowiki>{{Tile|*|#090|#fff}}</nowiki></code> and  <code><nowiki>{{Tile|÷|0:6:0}}</nowiki></code> will insert ore chunks {{Tile|*|#090|#fff}} and barrels {{Tile|÷|0:6:0}} into text.
 +
 
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Version actuelle datée du 23 février 2013 à 10:35

{{{1}}}

Template:Tile can be used to display tiles close to what they appear as in Dwarf Fortress. It is designed to be used for free-standing tiles. There is a padding-free variant for use in grids and other places where padding between the tiles is not desirable. The Dwarf template can be used to insert dwarf faces.

Utilisation[modifier]

{{Tile|<character>|<#color>|<#background>|<size>}}
{{Tile|<character>|<#color>|<#background>}}
{{Tile|<character>|<x:y:z>}}
{{Tile|<character>|<x:y:z>||<size>}}

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]

Using {{Tile|*|#090|#fff}} and {{Tile|÷|0:6:0}} will insert ore chunks * and barrels ÷ into text.