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:#CCC; background:#000; line-height:.95em}}}" | {| 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:#CCC; background:#000; line-height:.95em}}}" | ||
− | {{#rreplace:{{#rreplace:{{#rreplace:{{{1}}}| \n | ♫}}| /([^♫])/u | {{!}}style="padding: 0"{{!}}\ | + | {{#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 | + | Easy to use color diagram template. |
Usage: | Usage: | ||
Line 21: | Line 21: | ||
║.┼╩┼.║.┼╩┼.║ | ║.┼╩┼.║.┼╩┼.║ | ||
╠═╣X╠═╬═╣X╠═╣ | ╠═╣X╠═╬═╣X╠═╣ | ||
+ | ║.┼╦┼.║.┼╦┼.║ | ||
+ | ║..║..║..║..║}} | ||
+ | |||
+ | |||
+ | <pre><nowiki> | ||
+ | {{diagram| | ||
+ | ╔══╦══╦══╦══╗ | ||
+ | ║..║..║..[#f00]║..║ | ||
+ | ║.┼╩┼.║.┼╩┼.║ | ||
+ | ╠═╣X╠═╬═╣[#000][#fff]X╠═╣ | ||
+ | ║.┼╦┼.║.┼╦┼.║ | ||
+ | ║..║..║..║..║}}</nowiki></pre> | ||
+ | |||
+ | {{diagram| | ||
+ | ╔══╦══╦══╦══╗ | ||
+ | ║..║..║..[#f00]║..║ | ||
+ | ║.┼╩┼.║.┼╩┼.║ | ||
+ | ╠═╣X╠═╬═╣[#000][#fff]X╠═╣ | ||
║.┼╦┼.║.┼╦┼.║ | ║.┼╦┼.║.┼╦┼.║ | ||
║..║..║..║..║}} | ║..║..║..║..║}} |
Revision as of 14:45, 11 November 2009
Easy to use color diagram template.
Usage:
{{diagram| ╔══╦══╦══╦══╗ ║..║..║..║..║ ║.┼╩┼.║.┼╩┼.║ ╠═╣X╠═╬═╣X╠═╣ ║.┼╦┼.║.┼╦┼.║ ║..║..║..║..║}}
{{diagram| ╔══╦══╦══╦══╗ ║..║..║..[#f00]║..║ ║.┼╩┼.║.┼╩┼.║ ╠═╣X╠═╬═╣[#000][#fff]X╠═╣ ║.┼╦┼.║.┼╦┼.║ ║..║..║..║..║}}