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 |
(update) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | 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 | + | <includeonly>[[Category:Formatting Templates]]</includeonly> |
+ | {{ambox|text=This has been superseded by <diagram>. See [[DF:Diagram]] for more information.}} | ||
+ | |||
+ | Easy to use diagram template. | ||
+ | |||
+ | 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 preserve spaces, include a spaces=yes 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|spaces=yes|\ | |
− | + | ║WWW║.║ ║.║WWW║` | |
− | + | ║WWW║.╠═══╣.║WWW║` | |
− | ║. | + | ║WWW║.║WWW║.║WWW║` |
− | + | ╩═══┼.║WWW║.┼═══╩═ | |
− | + | ......║WWW║....... | |
− | + | ══════┼═╦═┼═══┼═══ | |
+ | WWWWWW║.O.║WWW║WWW | ||
+ | WWWWWW╠OXO╣WWW║WWW | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | ══════┼═╩═┼═══┼═══ | ||
+ | ......║WWW║....... | ||
+ | ╦═══┼.║WWW║.┼═══╦═ | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.┼WWW┼.║WWW║` | ||
+ | ╚═══╣.║WWW║.╠═══╝` | ||
+ | ║.║WWW║.║ | ||
+ | ║.╠═══╣.║}}</nowiki></pre> | ||
+ | |||
+ | {{diagram|spaces=yes|\ | ||
+ | ║WWW║.║ ║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ╩═══┼.║WWW║.┼═══╩═ | ||
+ | ......║WWW║....... | ||
+ | ══════┼═╦═┼═══┼═══ | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | WWWWWW╠OXO╣WWW║WWW | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | ══════┼═╩═┼═══┼═══ | ||
+ | ......║WWW║....... | ||
+ | ╦═══┼.║WWW║.┼═══╦═ | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.┼WWW┼.║WWW║` | ||
+ | ╚═══╣.║WWW║.╠═══╝` | ||
+ | ║.║WWW║.║ | ||
+ | ║.╠═══╣.║}} | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{diagram | + | {{diagram|spaces=yes|\ |
− | + | ║WWW║.║ ║.║WWW║` | |
− | + | ║WWW║.╠═══╣.║WWW║` | |
− | + | ║WWW║.║WWW║.║WWW║` | |
− | + | ╩═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╩═ | |
− | + | ......║WWW║....... | |
− | + | ══════[#000][#c0c0c0]┼═╦═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ | |
+ | WWWWWW║.O.║WWW║WWW | ||
+ | WWWWWW╠OXO╣WWW║WWW | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | ══════[#000][#c0c0c0]┼═╩═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ | ||
+ | ......║WWW║....... | ||
+ | ╦═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╦═ | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.[#000][#c0c0c0]┼WWW[#000][#c0c0c0]┼.║WWW║` | ||
+ | ╚═══╣.║WWW║.╠═══╝` | ||
+ | ║.║WWW║.║ | ||
+ | ║.╠═══╣.║}}</nowiki></pre> | ||
+ | |||
+ | |||
+ | {{diagram|spaces=yes|\ | ||
+ | ║WWW║.║ ║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ╩═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╩═ | ||
+ | ......║WWW║....... | ||
+ | ══════[#000][#c0c0c0]┼═╦═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | WWWWWW╠OXO╣WWW║WWW | ||
+ | WWWWWW║.O.║WWW║WWW | ||
+ | ══════[#000][#c0c0c0]┼═╩═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ | ||
+ | ......║WWW║....... | ||
+ | ╦═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╦═ | ||
+ | ║WWW║.║WWW║.║WWW║` | ||
+ | ║WWW║.╠═══╣.║WWW║` | ||
+ | ║WWW║.[#000][#c0c0c0]┼WWW[#000][#c0c0c0]┼.║WWW║` | ||
+ | ╚═══╣.║WWW║.╠═══╝` | ||
+ | ║.║WWW║.║ | ||
+ | ║.╠═══╣.║}} | ||
− | + | ==Special Characters== | |
− | + | Special characters can be copied from the [[Character table]]. | |
− | + | <includeonly>[[Category:Formatting Templates]]</includeonly> | |
− | + | <noinclude>[[Category:Template Documentation]]</noinclude> | |
− | |||
− | |||
− |
Latest revision as of 19:22, 27 April 2014
This has been superseded by <diagram>. See DF:Diagram for more information. |
Easy to use diagram template.
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 preserve spaces, include a spaces=yes parameter. To prevent wiki template syntax from cropping leading spaces, include \ at the start of a diagram with leading spaces.
Usage examples:
{{diagram|spaces=yes|\ ║WWW║.║ ║.║WWW║` ║WWW║.╠═══╣.║WWW║` ║WWW║.║WWW║.║WWW║` ╩═══┼.║WWW║.┼═══╩═ ......║WWW║....... ══════┼═╦═┼═══┼═══ WWWWWW║.O.║WWW║WWW WWWWWW╠OXO╣WWW║WWW WWWWWW║.O.║WWW║WWW ══════┼═╩═┼═══┼═══ ......║WWW║....... ╦═══┼.║WWW║.┼═══╦═ ║WWW║.║WWW║.║WWW║` ║WWW║.╠═══╣.║WWW║` ║WWW║.┼WWW┼.║WWW║` ╚═══╣.║WWW║.╠═══╝` ║.║WWW║.║ ║.╠═══╣.║}}
║ | W | W | W | ║ | . | ║ | ║ | . | ║ | W | W | W | ║ | |||||
║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ║ | W | W | W | ║ | . | ║ | W | W | W | ║ | ||
╩ | ═ | ═ | ═ | ┼ | . | ║ | W | W | W | ║ | . | ┼ | ═ | ═ | ═ | ╩ | ═ | |
. | . | . | . | . | . | ║ | W | W | W | ║ | . | . | . | . | . | . | . | |
═ | ═ | ═ | ═ | ═ | ═ | ┼ | ═ | ╦ | ═ | ┼ | ═ | ═ | ═ | ┼ | ═ | ═ | ═ | |
W | W | W | W | W | W | ║ | . | O | . | ║ | W | W | W | ║ | W | W | W | |
W | W | W | W | W | W | ╠ | O | X | O | ╣ | W | W | W | ║ | W | W | W | |
W | W | W | W | W | W | ║ | . | O | . | ║ | W | W | W | ║ | W | W | W | |
═ | ═ | ═ | ═ | ═ | ═ | ┼ | ═ | ╩ | ═ | ┼ | ═ | ═ | ═ | ┼ | ═ | ═ | ═ | |
. | . | . | . | . | . | ║ | W | W | W | ║ | . | . | . | . | . | . | . | |
╦ | ═ | ═ | ═ | ┼ | . | ║ | W | W | W | ║ | . | ┼ | ═ | ═ | ═ | ╦ | ═ | |
║ | W | W | W | ║ | . | ║ | W | W | W | ║ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ┼ | W | W | W | ┼ | . | ║ | W | W | W | ║ | ||
╚ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╝ | ||
║ | . | ║ | W | W | W | ║ | . | ║ | ||||||||||
║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ |
{{diagram|spaces=yes|\ ║WWW║.║ ║.║WWW║` ║WWW║.╠═══╣.║WWW║` ║WWW║.║WWW║.║WWW║` ╩═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╩═ ......║WWW║....... ══════[#000][#c0c0c0]┼═╦═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ WWWWWW║.O.║WWW║WWW WWWWWW╠OXO╣WWW║WWW WWWWWW║.O.║WWW║WWW ══════[#000][#c0c0c0]┼═╩═[#000][#c0c0c0]┼═══[#000][#c0c0c0]┼═══ ......║WWW║....... ╦═══[#000][#c0c0c0]┼.║WWW║.[#000][#c0c0c0]┼═══╦═ ║WWW║.║WWW║.║WWW║` ║WWW║.╠═══╣.║WWW║` ║WWW║.[#000][#c0c0c0]┼WWW[#000][#c0c0c0]┼.║WWW║` ╚═══╣.║WWW║.╠═══╝` ║.║WWW║.║ ║.╠═══╣.║}}
║ | W | W | W | ║ | . | ║ | ║ | . | ║ | W | W | W | ║ | |||||
║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ║ | W | W | W | ║ | . | ║ | W | W | W | ║ | ||
╩ | ═ | ═ | ═ | ┼ | . | ║ | W | W | W | ║ | . | ┼ | ═ | ═ | ═ | ╩ | ═ | |
. | . | . | . | . | . | ║ | W | W | W | ║ | . | . | . | . | . | . | . | |
═ | ═ | ═ | ═ | ═ | ═ | ┼ | ═ | ╦ | ═ | ┼ | ═ | ═ | ═ | ┼ | ═ | ═ | ═ | |
W | W | W | W | W | W | ║ | . | O | . | ║ | W | W | W | ║ | W | W | W | |
W | W | W | W | W | W | ╠ | O | X | O | ╣ | W | W | W | ║ | W | W | W | |
W | W | W | W | W | W | ║ | . | O | . | ║ | W | W | W | ║ | W | W | W | |
═ | ═ | ═ | ═ | ═ | ═ | ┼ | ═ | ╩ | ═ | ┼ | ═ | ═ | ═ | ┼ | ═ | ═ | ═ | |
. | . | . | . | . | . | ║ | W | W | W | ║ | . | . | . | . | . | . | . | |
╦ | ═ | ═ | ═ | ┼ | . | ║ | W | W | W | ║ | . | ┼ | ═ | ═ | ═ | ╦ | ═ | |
║ | W | W | W | ║ | . | ║ | W | W | W | ║ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | ||
║ | W | W | W | ║ | . | ┼ | W | W | W | ┼ | . | ║ | W | W | W | ║ | ||
╚ | ═ | ═ | ═ | ╣ | . | ║ | W | W | W | ║ | . | ╠ | ═ | ═ | ═ | ╝ | ||
║ | . | ║ | W | W | W | ║ | . | ║ | ||||||||||
║ | . | ╠ | ═ | ═ | ═ | ╣ | . | ║ |
Special Characters[edit]
Special characters can be copied from the Character table.