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"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | {| style="{{{style|border-spacing: 0; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; font-size: 135%; font-weight: bold; color:# | + | {| style="{{{style|border-spacing: 0; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; font-size: 135%; font-weight: bold; color:{{{color|#C0C0C0}}}; background:{{{bgcolor|#000}}}; line-height:.95em}}}" |
{{#rreplace:{{#rreplace:{{#rreplace:{{{1}}}| \n | ♫}}| / *(?:\[(#[A-Fa-f0-9]+)\])? *(?:\[(#[A-Fa-f0-9]+)\])? *([^♫ ]) */u | {{!}}style="padding: 0; color: \1; background: \2"{{!}}\3 | {{#rreplace:{{#rreplace:{{#rreplace:{{{1}}}| \n | ♫}}| / *(?:\[(#[A-Fa-f0-9]+)\])? *(?:\[(#[A-Fa-f0-9]+)\])? *([^♫ ]) */u | {{!}}style="padding: 0; color: \1; background: \2"{{!}}\3 | ||
\9}} | ♫ | {{!-}} | \9}} | ♫ | {{!-}} | ||
\9}} | \9}} | ||
|}<noinclude> | |}<noinclude> | ||
− | Easy to use color diagram template. 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. | + | Easy to use color diagram template. 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: | ||
Line 42: | Line 42: | ||
║..║..║.. ║..║}} | ║..║..║.. ║..║}} | ||
+ | |||
+ | <pre><nowiki> | ||
+ | {{diagram|color=#000|bgcolor=fff| | ||
+ | ╔══╦══╦══╦══╗ | ||
+ | ║..║..║..║..║ | ||
+ | ║.┼╩┼.║.┼╩┼.║ | ||
+ | ╠═╣X╠═╬═╣X╠═╣ | ||
+ | ║.┼╦┼.║.┼╦┼.║ | ||
+ | ║..║..║..║..║}}</nowiki></pre> | ||
+ | |||
+ | |||
+ | {{diagram|color=#000|bgcolor=fff| | ||
+ | ╔══╦══╦══╦══╗ | ||
+ | ║..║..║..║..║ | ||
+ | ║.┼╩┼.║.┼╩┼.║ | ||
+ | ╠═╣X╠═╬═╣X╠═╣ | ||
+ | ║.┼╦┼.║.┼╦┼.║ | ||
+ | ║..║..║..║..║}} | ||
[[Category:Formatting Templates]] | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 11:30, 12 November 2009
Easy to use color diagram template. 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╠═╣ ║.┼╦┼.║.┼╦┼.║ ║..║..║..║..║}}
{{diagram| ╔══╦══╦══ ╦══╗ ║..║..║..[#f00] ║..║ ║.┼╩┼.║.┼ ╩┼.║ ╠═╣X╠═╬═╣[#000][#fff]X╠═╣ ║.┼╦┼.║.┼ ╦┼.║ ║..║..║.. ║..║}}
{{diagram|color=#000|bgcolor=fff| ╔══╦══╦══╦══╗ ║..║..║..║..║ ║.┼╩┼.║.┼╩┼.║ ╠═╣X╠═╬═╣X╠═╣ ║.┼╦┼.║.┼╦┼.║ ║..║..║..║..║}}