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:Fgcolor"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m (try this)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#rmatch:{{{1}}}|/[0-7]:([0-7]:)?[0-1]/s|Y|N}}|Y|{{#switch:{{#rreplace:{{{1}}}|/([0-7]):([0-7]:)?([0-1])/s|\1\3}}|00=#000000|10=#000080|20=#008000|30=#008080|40=#800000|50=#800080|60=#808000|70=#C0C0C0|01=#808080|11=#0000FF|21=#00FF00|31=#00FFFF|41=#FF0000|51=#FF00FF|61=#FFFF00|71=#FFFFFF}}|{{{1}}}}}</includeonly><noinclude>
+
<includeonly>{{#tag:nowiki|{{#ifeq:{{#rmatch:{{{1}}}|/[0-7]:([0-7]:)?[0-1]/s|Y|N}}|Y|{{#switch:{{#rreplace:{{{1}}}|/([0-7]):([0-7]:)?([0-1])/s|\1\3}}|00=#000000|10=#000080|20=#008000|30=#008080|40=#800000|50=#800080|60=#808000|70=#C0C0C0|01=#808080|11=#0000FF|21=#00FF00|31=#00FFFF|41=#FF0000|51=#FF00FF|61=#FFFF00|71=#FFFFFF}}|{{{1}}}}}}}</includeonly><noinclude>
  
 
{{raw Tile|A|{{fgcolor|#808080}}|{{bgcolor|#808080|#c0c0c0}}}}
 
{{raw Tile|A|{{fgcolor|#808080}}|{{bgcolor|#808080|#c0c0c0}}}}

Revision as of 18:14, 1 May 2010


A

A

A

A

"Test inline string - 4:6:0 becomes #800000 and #D79B2D."

M
M
M
M