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

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Expanded lower box's colspan so there would be no blank spot on the right, removed black line on left of colored bit because it looked odd.)
(move doc to doc)
 
(34 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{| style='border: 1px solid #000; width: 17em; border-spacing: 0; margin: 0 0 1em 1em; float: right'
+
<includeonly>{| style='border: 1px solid #000; width: 17em; border-spacing: 0; margin: 0 0 1em 1em; float: right'
|+ '''{{{skill|Skill}}}'''
+
|+ '''[[Skill]]: {{{skill|Skill}}}'''
 
|-
 
|-
 
! colspan="2" style="border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Association
 
! colspan="2" style="border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Association
| style='width: 0.5em; background: {{{color|f44}}}; border-left: 0px solid #aaa' rowspan='0'| &nbsp;
+
| style='width: 0.5em; background: {{fgcolor|{{{color|5:1}}}}}; border-bottom: 1px solid #aaa; border-left: 1px solid #aaa' rowspan='0'| &nbsp;
 
|-
 
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | Speciality
+
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Profession]]
| style="padding: 0.1em 0.25em" | {{{speciality|<div style='text-align: right'>&mdash;</div>}}}
 
|-
 
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | Profession
 
 
| style="padding: 0.1em 0.25em" | {{{profession|<div style='text-align: right'>&mdash;</div>}}}
 
| style="padding: 0.1em 0.25em" | {{{profession|<div style='text-align: right'>&mdash;</div>}}}
 +
{{#ifeq:{{NAMESPACE}}|23a||
 +
{{!-}}
 +
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" {{!}} {{Tooltip|Job Title|The title displayed after the dwarf's name when this is their best skill. If they have multiple developed skills within the same profession, the profession will be displayed instead.}}
 +
{{!}} style="padding: 0.1em 0.25em" {{!}} {{{specialty|{{{skill|<div style='text-align: right'>&mdash;</div>}}}}}}
 +
}}
 
|-
 
|-
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | Labor
+
! style="text-align: left; white-space: nowrap; font-weight: normal; padding: 0.1em 0.25em" | [[Labor]]
 
| style="padding: 0.1em 0.25em" | {{{job name|<div style='text-align: right'>&mdash;</div>}}}
 
| style="padding: 0.1em 0.25em" | {{{job name|<div style='text-align: right'>&mdash;</div>}}}
 
|-
 
|-
 
! colspan="3" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Tasks
 
! colspan="3" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Tasks
 
|-
 
|-
| colspan="2" |
+
| colspan="3" |
 
{{{tasks|<div style='text-align: center; padding: 0.2em 0'>''None''</div>}}}
 
{{{tasks|<div style='text-align: center; padding: 0.2em 0'>''None''</div>}}}
|}
+
|-
 
+
! colspan="3" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | [[Workshop]]
<noinclude>
+
|-
Usage:
+
| colspan="3" |
<pre><nowiki>
+
{{{workshop|<div style='text-align: center; padding: 0.2em 0'>''None''</div>}}}
{{Skill
+
{{#switch:{{NAMESPACE}}|23a=|40d=|#default=
| color      = #ff2
+
{{!-}}
| skill      = Carpenter
+
! colspan="3" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} [[Attributes]]
| speciality = ???
+
{{!-}}
| profession = Woodworker
+
{{!}} colspan="3" {{!}}
| job name  = ???
+
{{{attributes|<div style='text-align: center; padding: 0.2em 0'>''None''</div>}}}
| tasks      =
 
* Wood based construction
 
* Any work in the Carpenter's Workshop
 
}}
 
</nowiki></pre>
 
{{Skill
 
| color      = #ff2
 
| skill      = Carpenter
 
| speciality = ???
 
| profession = Woodworker
 
| job name  = ???
 
| tasks      =
 
* Wood based construction
 
* Any work in the Carpenter's Workshop
 
 
}}
 
}}
[[Category:Templates]]</noinclude>
+
|}{{Category|Skills}}</includeonly><noinclude>
 +
{{Documentation}}
 +
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 +
</noinclude>

Latest revision as of 23:06, 26 February 2023