Difference between revisions of "Template:Diagram/block"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(replace Pts with ` due to unicode issues)
(non-capturing parens not working; removed)
 
Line 1: Line 1:
{{#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:\2;background:\4"{{!}}\5
 
\9}} | ` | {{!-}}
 
\9}} | ` | {{!-}}
 
\9}}<noinclude>[[Category:Formatting Templates]]</noinclude>
 
\9}}<noinclude>[[Category:Formatting Templates]]</noinclude>

Latest revision as of 23:40, 12 June 2019