Difference between revisions of "Template:Diagram/block2"

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;width:.63em;"{{!}}\3
+
{{#rreplace:{{#rreplace:{{#rreplace:{{{1|}}}| (^[\\])?\n | `}}| /(\[(#[A-Fa-f0-9]+)\])?(\[(#[A-Fa-f0-9]+)\])?([^`])/u | {{!}}style="padding:0;color:\2;background:\4;width:.63em;"{{!}}\5
 
\9}} | ` | {{!-}}
 
\9}} | ` | {{!-}}
 
\9}}<noinclude>[[Category:Formatting Templates]]</noinclude>
 
\9}}<noinclude>[[Category:Formatting Templates]]</noinclude>

Latest revision as of 23:38, 12 June 2019