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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Created page with 'Newlines are converted to new table rows. Spaces are cropped. Use [#color]x to change the color of a tile. Use [#color][#bgcolor]x to change both the color and background of a ti…')
 
m
Line 39: Line 39:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{diagram|color=#000|bgcolor=#fff|
+
{{diagram|color=#00f|bgcolor=#f00|
 
╔══╦══╦══╦══╗
 
╔══╦══╦══╦══╗
 
║..║..║..║..║
 
║..║..║..║..║

Revision as of 11:35, 12 November 2009

Newlines are converted to new table rows. Spaces are cropped. 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.

Usage:

  {{diagram|
  ╔══╦══╦══╦══╗
  ║..║..║..║..║
  ║.┼╩┼.║.┼╩┼.║
  ╠═╣X╠═╬═╣X╠═╣
  ║.┼╦┼.║.┼╦┼.║
  ║..║..║..║..║}}


. . . . . . . .
. . . .
X X
. . . .
. . . . . . . .


{{diagram|
╔══╦══╦══            ╦══╗
║..║..║..[#f00]      ║..║
║.┼╩┼.║.┼            ╩┼.║
╠═╣X╠═╬═╣[#000][#fff]X╠═╣
║.┼╦┼.║.┼            ╦┼.║
║..║..║..            ║..║}}
. . . . . . . .
. . . .
X X
. . . .
. . . . . . . .


{{diagram|color=#00f|bgcolor=#f00|
╔══╦══╦══╦══╗
║..║..║..║..║
║.┼╩┼.║.┼╩┼.║
╠═╣X╠═╬═╣X╠═╣
║.┼╦┼.║.┼╦┼.║
║..║..║..║..║}}


. . . . . . . .
. . . .
X X
. . . .
. . . . . . . .