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
m
Line 1: Line 1:
 
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.
 
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:  
+
Usage examples:  
 
<pre><nowiki>
 
<pre><nowiki>
 
   {{diagram|
 
   {{diagram|
Line 41: Line 41:
 
{{diagram|color=#00f|bgcolor=#f00|
 
{{diagram|color=#00f|bgcolor=#f00|
 
╔══╦══╦══╦══╗
 
╔══╦══╦══╦══╗
║..║..║..║..║
+
║..║..║..║.[#000][#fff].║
 
║.┼╩┼.║.┼╩┼.║
 
║.┼╩┼.║.┼╩┼.║
 
╠═╣X╠═╬═╣X╠═╣
 
╠═╣X╠═╬═╣X╠═╣
Line 50: Line 50:
 
{{diagram|color=#00f|bgcolor=#f00|
 
{{diagram|color=#00f|bgcolor=#f00|
 
╔══╦══╦══╦══╗
 
╔══╦══╦══╦══╗
║..║..║..║..║
+
║..║..║..║.[#000][#fff].║
 
║.┼╩┼.║.┼╩┼.║
 
║.┼╩┼.║.┼╩┼.║
 
╠═╣X╠═╬═╣X╠═╣
 
╠═╣X╠═╬═╣X╠═╣
 
║.┼╦┼.║.┼╦┼.║
 
║.┼╦┼.║.┼╦┼.║
 
║..║..║..║..║}}
 
║..║..║..║..║}}

Revision as of 11:36, 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 examples:

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


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


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


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


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