Difference between revisions of "Template:Infobox Task"

From Taskman Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{| class="wikitable" style="width: 300px; {{#if:{{{left|}}}||float: right;}}"
+
{| class="wikitable tw-infobox" {{#if:{{{left|}}}||style="float: right;"}}
!colspan="2" style="font-size: 18px; text-align: center;"|{{{task|{{PAGENAME}}}}}
+
!colspan="2" class="tw-infobox-header"|{{{task|{{PAGENAME}}}}}
 
|-
 
|-
|colspan="2" style="text-align: center;"|[[File:{{{image|Task icon.webp}}}|24px]]
+
|colspan="2" class="tw-center"|[[File:{{{image|Task icon.webp}}}|24px]]
 
|-
 
|-
|colspan="2" style="text-align: center; border-bottom: 0px solid;"|'''Description'''
+
|colspan="2" class="tw-infobox-multi-top"|'''Description'''
 
|-
 
|-
|colspan="2" style="text-align: center; border-top: 0px solid;"|{{{description|Insert task description here.}}}
+
|colspan="2" class="tw-infobox-multi-bottom"|{{{description|Insert task description here.}}}
 
|-
 
|-
|style="border: 0px solid; width:100px; vertical-align:top;"|'''Tier'''
+
|class="tw-infobox-row-title" style="border: 0px solid; width:100px; vertical-align:top;"|'''Tier'''
|style="border: 0px solid; text-align: right;"|{{{tier|Beginner}}}{{#ifeq:{{{tier|Beginner}}}|Passive|<nowiki/>
+
|class="tw-infobox-row" style="border: 0px solid; text-align: right;"|{{{tier|Beginner}}}{{#ifeq:{{{tier|Beginner}}}|Passive|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}style="border: 0px solid;"{{!}}'''Difficulty'''
+
{{!}}class="tw-infobox-row-title"{{!}}'''Difficulty'''
{{!}}style="border: 0px solid; text-align: right; color:#d4af37;"{{!}}{{#switch:{{{stars|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|☆☆☆☆☆}}}}
+
{{!}}class="tw-infobox-row tw-stars"{{!}}{{#switch:{{{stars|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|☆☆☆☆☆}}}}
 
|-
 
|-
|style="border: 0px solid; vertical-align:top;"|'''ID(s)'''
+
|class="tw-infobox-row-title"|'''ID(s)'''
|style="border: 0px solid; text-align: right;"|{{ids|{{{id|}}}}}
+
|class="tw-infobox-row tw-infobox-task-id-block"|{{ids|{{{id|}}}}}
 
|-
 
|-
|style="border: 0px solid;"|'''RS Wiki page'''
+
|class="tw-infobox-row-title"|'''RS Wiki page'''
|style="border: 0px solid; text-align: right;"|{{#if:{{{wikialt|}}}|{{rsw|{{{wiki|Main Page}}}|{{{wikialt|}}}}}|{{rsw|{{{wiki|Main Page}}}}}}}{{#if:{{{unique|}}}|<nowiki/>
+
|class="tw-infobox-row"|{{#if:{{{wikialt|}}}|{{rsw|{{{wiki|Main Page}}}|{{{wikialt|}}}}}|{{rsw|{{{wiki|Main Page}}}}}}}{{#if:{{{unique|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}style="border: 0px solid; vertical-align:top;"{{!}}'''Uniques'''
+
{{!}}class="tw-infobox-row-title"{{!}}'''Uniques'''
{{!}}style="border: 0px solid; text-align: right;"{{!}}<span class="mw-linkline" data-format="https://runescape.wiki/w/$1">{{#replace:{{{unique|}}}|,|<br/>}}</span>}}{{#if:{{{upt|}}}|<nowiki/>
+
{{!}}class="tw-infobox-row"{{!}}<span class="mw-linkline" data-format="https://runescape.wiki/w/$1">{{#replace:{{{unique|}}}|,|<br/>}}</span>}}{{#if:{{{upt|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}style="border: 0px solid;"{{!}}'''Uniques per task'''
+
{{!}}class="tw-infobox-row-title"{{!}}'''Uniques per task'''
{{!}}style="border: 0px solid; text-align: right;"{{!}}{{{upt|}}}[[Category:Tasks with uniques]]}}
+
{{!}}class="tw-infobox-row"{{!}}{{{upt|}}}[[Category:Tasks with uniques]]}}
 
|}<includeonly>{{Infobox Task/categorise|{{{tier|Beginner}}}|{{{stars|0}}}}}</includeonly><noinclude>
 
|}<includeonly>{{Infobox Task/categorise|{{{tier|Beginner}}}|{{{stars|0}}}}}</includeonly><noinclude>
  

Revision as of 06:45, 20 May 2020

Infobox Task
Task icon.webp
Description
Insert task description here.
Tier Beginner
ID(s)
RS Wiki page Main Page

Parameters

  • task: The title of the task. Defaults to the page title.
  • description: The body of the task description.
  • tier: The tier the task appears in. Should be one or more of Beginner, Easy, Medium, Hard, Elite, Master, Legendary, God or Passive, comma separated.
  • id: A list of Id templates with the ID or IDs of this task, comma separated.
  • stars: The difficulty of the task. Only used on passives.
  • wiki: Path to the relevant wiki page on the RuneScape Wiki. Only use the part that appears after https://runescape.wiki/w/
  • wikialt: Alternative text to show as the wiki link.
  • unique: A comma-separated list of unique items that count for completion of this task (optional)
  • upt: The number of uniques required to complete the task.