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:Raw Tile"
Jump to navigation
Jump to search
m |
Hairy Dude (talk | contribs) (→Special characters: how to escape) |
||
(7 intermediate revisions by 5 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>< | + | <noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><span 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; padding: 0; line-height: 1;">{{{1}}}</span><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. | '''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. | ||
Line 6: | Line 6: | ||
*<nowiki>{{Raw Tile|<character>|a:b:c}}</nowiki> | *<nowiki>{{Raw Tile|<character>|a:b:c}}</nowiki> | ||
− | **where "a:b:c" is a COLOR token value specifying both foreground and background color | + | **where "a:b:c" is a [[Color|COLOR token]] value specifying both foreground and background color |
*<nowiki>{{Raw Tile|<character>|a:b}}</nowiki> | *<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 | **where "a:b" is a COLOR token value specifying foreground color only; background will be defaulted to black | ||
Line 14: | Line 14: | ||
=== Special characters === | === Special characters === | ||
− | Special characters can be copied from the [[character table]]. Characters used in the template syntax (e.g. | or =) need to be escaped. | + | Special characters can be copied from the [[character table]]. Characters used in the template syntax (e.g. | or =) need to be escaped (| can be written <code><nowiki>{{!}}</nowiki></code>, = can be written <code><nowiki>{{=}}</nowiki></code>). |
=== Examples === | === Examples === | ||
Line 28: | Line 28: | ||
|- | |- | ||
|style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}} | |style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}} | ||
− | |style="padding: 0"|{{Raw Tile| | + | |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}} | ||
Line 44: | Line 44: | ||
|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| | + | |style="padding: 0"|{{Raw Tile|{{=}}|0:1}} |
|style="padding: 0"|{{Raw Tile|÷|0:6:0}} | |style="padding: 0"|{{Raw Tile|÷|0:6:0}} | ||
− | |style="padding: 0"|{{Raw Tile| | + | |style="padding: 0"|{{Raw Tile|{{=}}|0:1}} |
|} | |} | ||
Line 62: | Line 62: | ||
|- | |- | ||
|style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}} | |style="padding: 0"|{{Raw Tile|÷|#0000000|#808000}} | ||
− | |style="padding: 0"|{{Raw Tile| | + | |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}} | ||
Line 78: | Line 78: | ||
|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| | + | |style="padding: 0"|{{Raw Tile|{{=}}|0:1}} |
|style="padding: 0"|{{Raw Tile|÷|0:6:0}} | |style="padding: 0"|{{Raw Tile|÷|0:6:0}} | ||
− | |style="padding: 0"|{{Raw Tile| | + | |style="padding: 0"|{{Raw Tile|{{=}}|0:1}} |
|} | |} | ||
</nowiki></pre> | </nowiki></pre> |
Latest revision as of 13:34, 6 January 2023
{{{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.
Usage[edit]
- {{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
Special characters[edit]
Special characters can be copied from the character table. Characters used in the template syntax (e.g. | or =) need to be escaped (| can be written {{!}}
, = can be written {{=}}
).
Examples[edit]
═ | ═ | ┼ | ┼ | ═ | ═ |
÷ | = | ÷ | ÷ | ÷ | ÷ |
÷ | ÷ | ÷ | ÷ | ÷ | ÷ |
÷ | ÷ | ÷ | = | ÷ | = |
...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}} |}