Difference between revisions of "Template:Dwarf"

From Dwarf Fortress Wiki
Jump to: navigation, search
(Made it display beard. No dwarf should be without a beard.)
(fix background color/resizing)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><span style="background: {{{1}}}">[[Image: Dwarf.png|{{{2}}}]]</span><noinclude></div>
+
<includeonly><span style="background: {{fgcolor|{{{1}}}}}; display: inline-block; line-height: 1px;">[[File:Dwarf{{#switch:{{{type}}}|military|mil|m|2=2|civilian|civ|c|1=|#default=}}.png|{{{2|10px}}}|{{{3|}}}]]</span></includeonly><noinclude>{{documentation}}</noinclude>
 
+
'''Template:Dwarf''' can be used to display dwarves close to what they appear as in Dwarf Fortress. It can be used together with the [[:Template:Raw_Tile|raw tile template]], however it doesn't scale with the user's font size. This might lead to problems for users with uncommon settings.
+
 
+
== Usage ==
+
 
+
<pre><nowiki>
+
{{Dwarf|<color>|<size>}}
+
</nowiki></pre>
+
 
+
=== Examples ===
+
 
+
<pre><nowiki>
+
{| style="color: #fff; background: #000"
+
|-
+
| {{Dwarf|#999|10px}} || Miners
+
|-
+
| {{Dwarf|#ff0|10px}} || Carpenters
+
|-
+
| {{Dwarf|#fff|10px}} || Masons
+
|-
+
| {{Dwarf|#090|10px}} || Trappers
+
|-
+
| {{Dwarf|#666|10px}} || Metalsmiths
+
|-
+
| {{Dwarf|#0f0|10px}} || Jewelers
+
|-
+
| {{Dwarf|#00f|10px}} || Craftsdwarves
+
|-
+
| {{Dwarf|#909|10px}} || Nobles
+
|-
+
| {{Dwarf|#099|10px}} || Peasants
+
|-
+
| {{Dwarf|#900|10px}} || Children
+
|-
+
| {{Dwarf|#009|10px}} || Fisherdwaves
+
|-
+
| {{Dwarf|#990|10px}} || Farmers
+
|-
+
| {{Dwarf|#f00|10px}} || Mechanics
+
|}
+
</nowiki></pre>
+
 
+
...gives:
+
 
+
{| style="color: #fff; background: #000"
+
|-
+
| {{Dwarf|#999|10px}} || Miners
+
|-
+
| {{Dwarf|#ff0|10px}} || Carpenters
+
|-
+
| {{Dwarf|#fff|10px}} || Masons
+
|-
+
| {{Dwarf|#090|10px}} || Trappers
+
|-
+
| {{Dwarf|#666|10px}} || Metalsmiths
+
|-
+
| {{Dwarf|#0f0|10px}} || Jewelers
+
|-
+
| {{Dwarf|#00f|10px}} || Craftsdwarves
+
|-
+
| {{Dwarf|#909|10px}} || Nobles
+
|-
+
| {{Dwarf|#099|10px}} || Peasants
+
|-
+
| {{Dwarf|#900|10px}} || Children
+
|-
+
| {{Dwarf|#009|10px}} || Fisherdwaves
+
|-
+
| {{Dwarf|#990|10px}} || Farmers
+
|-
+
| {{Dwarf|#f00|10px}} || Mechanics
+
|}
+
[[Category:Templates]]
+
</noinclude>
+

Latest revision as of 01:15, 1 February 2018

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Advertisement