Шаблон:Dwarf: различия между версиями

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
<noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><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></div>
<noinclude><div style="float: right; padding: 0.5em; margin: 0.25em; border: 1px solid #ccc; background: #eee"></noinclude><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|13px}}}|{{{3|}}}]]</span></includeonly><noinclude></div>


'''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.
'''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.
Строка 14: Строка 14:
{| style="color: #fff; background: #000"
{| style="color: #fff; background: #000"
|-
|-
| {{Dwarf|7:0|10px}} || Miners
| {{Dwarf|7:0|13px}} || Miners
|-
|-
| {{Dwarf|6:1|10px}} || Carpenters
| {{Dwarf|6:1|13px}} || Carpenters
|-
|-
| {{Dwarf|7:1|10px}} || Masons
| {{Dwarf|7:1|13px}} || Masons
|-
|-
| {{Dwarf|2:0|10px}} || Trappers
| {{Dwarf|2:0|13px}} || Trappers
|-
|-
| {{Dwarf|0:1|10px}} || Metalsmiths
| {{Dwarf|0:1|13px}} || Metalsmiths
|-
|-
| {{Dwarf|2:1|10px}} || Jewelers
| {{Dwarf|2:1|13px}} || Jewelers
|-
|-
| {{Dwarf|1:1|10px}} || Craftsdwarves
| {{Dwarf|1:1|13px}} || Craftsdwarves
|-
|-
| {{Dwarf|5:0|10px}} || Nobles
| {{Dwarf|5:0|13px}} || Nobles
|-
|-
| {{Dwarf|3:0|10px}} || Peasants
| {{Dwarf|3:0|13px}} || Peasants
|-
|-
| {{Dwarf|4:0|10px}} || Children
| {{Dwarf|4:0|13px}} || Children
|-
|-
| {{Dwarf|1:0|10px}} || Fisherdwaves
| {{Dwarf|1:0|13px}} || Fisherdwaves
|-
|-
| {{Dwarf|6:0|10px}} || Farmers
| {{Dwarf|6:0|13px}} || Farmers
|-
|-
| {{Dwarf|4:1|10px}} || Mechanics
| {{Dwarf|4:1|13px}} || Mechanics
|}
|}
</nowiki></pre>
</nowiki></pre>
Строка 46: Строка 46:
{| style="color: #fff; background: #000"
{| style="color: #fff; background: #000"
|-
|-
| {{Dwarf|7:0|10px}} || Miners
| {{Dwarf|7:0|13px}} || Miners
|-
|-
| {{Dwarf|6:1|10px}} || Carpenters
| {{Dwarf|6:1|13px}} || Carpenters
|-
|-
| {{Dwarf|7:1|10px}} || Masons
| {{Dwarf|7:1|13px}} || Masons
|-
|-
| {{Dwarf|2:0|10px}} || Trappers
| {{Dwarf|2:0|13px}} || Trappers
|-
|-
| {{Dwarf|0:1|10px}} || Metalsmiths
| {{Dwarf|0:1|13px}} || Metalsmiths
|-
|-
| {{Dwarf|2:1|10px}} || Jewelers
| {{Dwarf|2:1|13px}} || Jewelers
|-
|-
| {{Dwarf|1:1|10px}} || Craftsdwarves
| {{Dwarf|1:1|13px}} || Craftsdwarves
|-
|-
| {{Dwarf|5:0|10px}} || Nobles
| {{Dwarf|5:0|13px}} || Nobles
|-
|-
| {{Dwarf|3:0|10px}} || Peasants
| {{Dwarf|3:0|13px}} || Peasants
|-
|-
| {{Dwarf|4:0|10px}} || Children
| {{Dwarf|4:0|13px}} || Children
|-
|-
| {{Dwarf|1:0|10px}} || Fisherdwaves
| {{Dwarf|1:0|13px}} || Fisherdwaves
|-
|-
| {{Dwarf|6:0|10px}} || Farmers
| {{Dwarf|6:0|13px}} || Farmers
|-
|-
| {{Dwarf|4:1|10px}} || Mechanics
| {{Dwarf|4:1|13px}} || Mechanics
|}
|}
[[Категория:шаблоны]]
[[Категория:шаблоны]]
[[en:Template:Dwarf]]</noinclude>
[[en:Template:Dwarf]]</noinclude>

Версия от 23:22, 27 марта 2019

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

{{Dwarf|<color>|<size>}}

Examples

{| style="color: #fff; background: #000"
|-
| {{Dwarf|7:0|13px}} || Miners
|-
| {{Dwarf|6:1|13px}} || Carpenters
|-
| {{Dwarf|7:1|13px}} || Masons
|-
| {{Dwarf|2:0|13px}} || Trappers
|-
| {{Dwarf|0:1|13px}} || Metalsmiths
|-
| {{Dwarf|2:1|13px}} || Jewelers
|-
| {{Dwarf|1:1|13px}} || Craftsdwarves
|-
| {{Dwarf|5:0|13px}} || Nobles
|-
| {{Dwarf|3:0|13px}} || Peasants
|-
| {{Dwarf|4:0|13px}} || Children
|-
| {{Dwarf|1:0|13px}} || Fisherdwaves
|-
| {{Dwarf|6:0|13px}} || Farmers
|-
| {{Dwarf|4:1|13px}} || Mechanics
|}

...gives:

Dwarf.png Miners
Dwarf.png Carpenters
Dwarf.png Masons
Dwarf.png Trappers
Dwarf.png Metalsmiths
Dwarf.png Jewelers
Dwarf.png Craftsdwarves
Dwarf.png Nobles
Dwarf.png Peasants
Dwarf.png Children
Dwarf.png Fisherdwaves
Dwarf.png Farmers
Dwarf.png Mechanics