Difference between revisions of "Template:Dwarf/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (mouseover=tooltip)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{Dwarf|<color>|<size>|<mouseover/tooltip>}}
+
{{Dwarf|1|2|3|type=}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
=== Parameters ===
 +
 +
* <code>1</code> – Sets the [[color#Color values|color]] (<code>#:#</code>).
 +
* <code>2</code> – Sets the size. Defaults to <code>10px</code>.
 +
* <code>3</code> – Mouseover/Tooltip.
 +
* <code>type</code> – Sets the symbol to civilian {{Dwarf|7:1|type=c}} or military {{Dwarf|7:1|type=m}}. Defaults to civilian icon if the parameter is not defined.
 +
** {{Dwarf|7:1|type=c}} – Accepts <code>civilian</code>, <code>civ</code>, <code>c</code>, or <code>1</code>.
 +
** {{Dwarf|7:1|type=m}} – Accepts <code>military</code>, <code>mil</code>, <code>m</code>, or <code>2</code>.
  
 
=== Examples ===
 
=== Examples ===
Line 14: Line 23:
 
{| style="color: #fff; background: #000"
 
{| style="color: #fff; background: #000"
 
|-
 
|-
| {{Dwarf|7:0|10px}} || Miners
+
| {{Dwarf|7:0|20px|Miner}} || Miners
 
|-
 
|-
| {{Dwarf|6:1|10px}} || Carpenters
+
| {{Dwarf|6:1}} || Woodworkers
 
|-
 
|-
| {{Dwarf|7:1|10px}} || Masons
+
| {{Dwarf|7:1}} || Stoneworkers
 
|-
 
|-
| {{Dwarf|2:0|10px}} || Trappers
+
| {{Dwarf|2:0}} || Rangers
 
|-
 
|-
| {{Dwarf|0:1|10px}} || Metalsmiths
+
| {{Dwarf|0:1}} || Metalsmiths
 
|-
 
|-
| {{Dwarf|2:1|10px}} || Jewelers
+
| {{Dwarf|2:1}} || Jewelers
 
|-
 
|-
| {{Dwarf|1:1|10px}} || Craftsdwarves
+
| {{Dwarf|1:1}} || Craftsdwarves
 
|-
 
|-
| {{Dwarf|5:0|10px}} || Nobles
+
| {{Dwarf|5:0}} || Nobles/Admins
 
|-
 
|-
| {{Dwarf|3:0|10px}} || Peasants
+
| {{Dwarf|3:0}} || Peasants
 
|-
 
|-
| {{Dwarf|4:0|10px}} || Children
+
| {{Dwarf|4:0}} || Dwarven Children
 
|-
 
|-
| {{Dwarf|1:0|10px}} || Fisherdwaves
+
| {{Dwarf|1:0}} || Fishery Workers
 
|-
 
|-
| {{Dwarf|6:0|10px}} || Farmers
+
| {{Dwarf|6:0}} || Farmers
 
|-
 
|-
| {{Dwarf|4:1|10px}} || Mechanics
+
| {{Dwarf|4:1}} || Engineers
 +
|-
 +
| {{Dwarf|7:0|type=m}} || Wrestlers
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 46: Line 57:
 
{| style="color: #fff; background: #000"
 
{| style="color: #fff; background: #000"
 
|-
 
|-
| {{Dwarf|7:0|10px}} || Miners
+
| {{Dwarf|7:0|20px|Miner}} || Miners
 
|-
 
|-
| {{Dwarf|6:1|10px}} || Carpenters
+
| {{Dwarf|6:1}} || Woodworkers
 
|-
 
|-
| {{Dwarf|7:1|10px}} || Masons
+
| {{Dwarf|7:1}} || Stoneworkers
 
|-
 
|-
| {{Dwarf|2:0|10px}} || Trappers
+
| {{Dwarf|2:0}} || Rangers
 
|-
 
|-
| {{Dwarf|0:1|10px}} || Metalsmiths
+
| {{Dwarf|0:1}} || Metalsmiths
 
|-
 
|-
| {{Dwarf|2:1|10px}} || Jewelers
+
| {{Dwarf|2:1}} || Jewelers
 
|-
 
|-
| {{Dwarf|1:1|10px}} || Craftsdwarves
+
| {{Dwarf|1:1}} || Craftsdwarves
 
|-
 
|-
| {{Dwarf|5:0|10px}} || Nobles
+
| {{Dwarf|5:0}} || Nobles/Admins
 
|-
 
|-
| {{Dwarf|3:0|10px}} || Peasants
+
| {{Dwarf|3:0}} || Peasants
 
|-
 
|-
| {{Dwarf|4:0|10px}} || Children
+
| {{Dwarf|4:0}} || Dwarven Children
 
|-
 
|-
| {{Dwarf|1:0|10px}} || Fisherdwaves
+
| {{Dwarf|1:0}} || Fishery Workers
 
|-
 
|-
| {{Dwarf|6:0|10px}} || Farmers
+
| {{Dwarf|6:0}} || Farmers
 
|-
 
|-
| {{Dwarf|4:1|10px}} || Mechanics
+
| {{Dwarf|4:1}} || Engineers
 +
|-
 +
| {{Dwarf|7:0|type=m}} || Wrestlers
 
|}
 
|}
<includeonly>
+
 
[[Category:Formatting Templates]]
+
<includeonly>[[Category:Formatting Templates]]</includeonly>
</includeonly>
+
<noinclude>[[Category:Template Documentation]]</noinclude>

Latest revision as of 00:17, 2 February 2018

Dwarf.png

Template:Dwarf can be used to display dwarves close to what they appear as in Dwarf Fortress. It can be used together with the 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[edit]

{{Dwarf|1|2|3|type=}}

Parameters[edit]

  • 1 – Sets the color (#:#).
  • 2 – Sets the size. Defaults to 10px.
  • 3 – Mouseover/Tooltip.
  • type – Sets the symbol to civilian Dwarf.png or military Dwarf2.png. Defaults to civilian icon if the parameter is not defined.
    • Dwarf.png – Accepts civilian, civ, c, or 1.
    • Dwarf2.png – Accepts military, mil, m, or 2.

Examples[edit]

{| style="color: #fff; background: #000"
|-
| {{Dwarf|7:0|20px|Miner}} || Miners
|-
| {{Dwarf|6:1}} || Woodworkers
|-
| {{Dwarf|7:1}} || Stoneworkers
|-
| {{Dwarf|2:0}} || Rangers
|-
| {{Dwarf|0:1}} || Metalsmiths
|-
| {{Dwarf|2:1}} || Jewelers
|-
| {{Dwarf|1:1}} || Craftsdwarves
|-
| {{Dwarf|5:0}} || Nobles/Admins
|-
| {{Dwarf|3:0}} || Peasants
|-
| {{Dwarf|4:0}} || Dwarven Children
|-
| {{Dwarf|1:0}} || Fishery Workers
|-
| {{Dwarf|6:0}} || Farmers
|-
| {{Dwarf|4:1}} || Engineers
|-
| {{Dwarf|7:0|type=m}} || Wrestlers
|}

...gives:

Miner Miners
Dwarf.png Woodworkers
Dwarf.png Stoneworkers
Dwarf.png Rangers
Dwarf.png Metalsmiths
Dwarf.png Jewelers
Dwarf.png Craftsdwarves
Dwarf.png Nobles/Admins
Dwarf.png Peasants
Dwarf.png Dwarven Children
Dwarf.png Fishery Workers
Dwarf.png Farmers
Dwarf.png Engineers
Dwarf2.png Wrestlers