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:Diagram/doc"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | Newlines are converted to new table rows | + | Newlines are converted to new table rows. Use [#color]x to change the color of a tile. Use [#color][#bgcolor]x to change both the color and background of a tile. The optional color and bgcolor parameters can be used to change the default colors. To crop spaces, include a spaces=no parameter. To prevent wiki template syntax from cropping leading spaces, include \ at the start of a diagram with leading spaces. |
+ | |||
Usage examples: | Usage examples: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{diagram| | + | {{diagram|\ |
╔══╦══╦══╦══╗ | ╔══╦══╦══╦══╗ | ||
║..║..║..║..║ | ║..║..║..║..║ | ||
Line 11: | Line 12: | ||
║..║..║..║..║}}</nowiki></pre> | ║..║..║..║..║}}</nowiki></pre> | ||
− | {{diagram| | + | {{diagram|\ |
╔══╦══╦══╦══╗ | ╔══╦══╦══╦══╗ | ||
║..║..║..║..║ | ║..║..║..║..║ | ||
Line 21: | Line 22: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{diagram|color=#00f|bgcolor=#f00| | + | {{diagram|color=#00f|bgcolor=#f00|spaces=no| |
╔══╦══╦══ [#0f0] ╦══╗ | ╔══╦══╦══ [#0f0] ╦══╗ | ||
║..║..║..[#0f0] ║..║ | ║..║..║..[#0f0] ║..║ | ||
Line 29: | Line 30: | ||
║..║..║.. ║..║}}</nowiki></pre> | ║..║..║.. ║..║}}</nowiki></pre> | ||
− | {{diagram|color=#00f|bgcolor=#f00| | + | {{diagram|color=#00f|bgcolor=#f00|spaces=no| |
╔══╦══╦══ [#0f0] ╦══╗ | ╔══╦══╦══ [#0f0] ╦══╗ | ||
║..║..║..[#0f0] ║..║ | ║..║..║..[#0f0] ║..║ |
Revision as of 18:34, 12 November 2009
Newlines are converted to new table rows. Use [#color]x to change the color of a tile. Use [#color][#bgcolor]x to change both the color and background of a tile. The optional color and bgcolor parameters can be used to change the default colors. To crop spaces, include a spaces=no parameter. To prevent wiki template syntax from cropping leading spaces, include \ at the start of a diagram with leading spaces.
Usage examples:
{{diagram|\ ╔══╦══╦══╦══╗ ║..║..║..║..║ ║.┼╩┼.║.┼╩┼.║ ╠═╣X╠═╬═╣X╠═╣ ║.┼╦┼.║.┼╦┼.║ ║..║..║..║..║}}
\ | ||||||||||||
╔ | ═ | ═ | ╦ | ═ | ═ | ╦ | ═ | ═ | ╦ | ═ | ═ | ╗ |
║ | . | . | ║ | . | . | ║ | . | . | ║ | . | . | ║ |
║ | . | ┼ | ╩ | ┼ | . | ║ | . | ┼ | ╩ | ┼ | . | ║ |
╠ | ═ | ╣ | X | ╠ | ═ | ╬ | ═ | ╣ | X | ╠ | ═ | ╣ |
║ | . | ┼ | ╦ | ┼ | . | ║ | . | ┼ | ╦ | ┼ | . | ║ |
║ | . | . | ║ | . | . | ║ | . | . | ║ | . | . | ║ |
{{diagram|color=#00f|bgcolor=#f00|spaces=no| ╔══╦══╦══ [#0f0] ╦══╗ ║..║..║..[#0f0] ║..║ ║.┼╩┼.║.┼ ╩┼.║ ╠═╣X╠═╬═╣[#000][#fff]X╠═╣ ║.┼╦┼.║.┼ ╦┼.║ ║..║..║.. ║..║}}
╔ | ═ | ═ | ╦ | ═ | ═ | ╦ | ═ | ═ | ╦ | ═ | ═ | ╗ |
║ | . | . | ║ | . | . | ║ | . | . | ║ | . | . | ║ |
║ | . | ┼ | ╩ | ┼ | . | ║ | . | ┼ | ╩ | ┼ | . | ║ |
╠ | ═ | ╣ | X | ╠ | ═ | ╬ | ═ | ╣ | X | ╠ | ═ | ╣ |
║ | . | ┼ | ╦ | ┼ | . | ║ | . | ┼ | ╦ | ┼ | . | ║ |
║ | . | . | ║ | . | . | ║ | . | . | ║ | . | . | ║ |