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:V50 creaturecurrent table row"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(If graphic not supplied,)
(Replace hyphens with underscores)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
|-<!-- If a graphic isn't supplied, try to find one based on the creature name -->
+
|-<!-- If a graphic isn't supplied, try to find one based on the creature name. #ifexist is expensive: reducing font size to hide red links is cheaper. Hyphens in names are also replaced with underscores in image links.-->
|style="padding:0px; text-align: center; {{#if:{{{bgcolor|}}}|background:{{{bgcolor}}}}};"|{{{graphic|{{#ifexist: File:{{{name}}}_sprite.png|[[File:{{{name}}}_sprite.png]]|}}}}}
+
|style="padding:0px; text-align: center; {{#if:{{{bgcolor|}}}|background:{{{bgcolor}}}}};"|{{{graphic|<span style="font-size:0%">[[File:{{#mreplace:{{{name}}}|-|_}}_sprite.png]]</span>}}}
 
|style="font-size:145%;font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; background: black;color:{{fgcolor|{{{color|0:0:0}}}}};text-align:center;"|{{{symbol|}}}
 
|style="font-size:145%;font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; background: black;color:{{fgcolor|{{{color|0:0:0}}}}};text-align:center;"|{{{symbol|}}}
 
|[[{{{name|}}}]]
 
|[[{{{name|}}}]]

Latest revision as of 09:57, 22 January 2023

|- |style="padding:0px; text-align: center; ;"|[[File:{{{name}}}_sprite.png]] |style="font-size:145%;font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Lucida Sans Typewriter', monospace; background: black;color: #000000;text-align:center;"| |[[]] | | | | | | |