Difference between revisions of "Template:Infobox Task"

From Taskman Wiki
Jump to navigation Jump to search
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="wikitable" style="width: 300px;"
+
{| class="wikitable tw-infobox" {{#if:{{{left|}}}||style="float: right;"}}
!colspan="2" style="font-size: 18px; text-align: center;"|{{{task|Task title}}}
+
!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;"|'''Tier'''
+
|class="tw-infobox-row-title"|'''Tier'''
|style="border: 0px solid; text-align: right;"|{{{tier|Beginner}}}
+
|class="tw-infobox-row"|{{{tier|Beginner}}}{{#ifeq:{{{tier|Beginner}}}|Passive|<nowiki/>
 +
{{!}}-
 +
{{!}}class="tw-infobox-row-title"{{!}}'''Difficulty'''
 +
{{!}}class="tw-infobox-row tw-stars"{{!}}{{#switch:{{{stars|}}}|1=★☆☆☆☆|2=★★☆☆☆|3=★★★☆☆|4=★★★★☆|5=★★★★★|☆☆☆☆☆}}}}
 
|-
 
|-
|style="border: 0px solid;"|'''ID'''
+
|class="tw-infobox-row-title"|'''ID'''
|style="border: 0px solid; text-align: right; font-family: monospace; font-size: 13px;"|{{{id|ABCD}}}
+
|class="tw-infobox-row tw-infobox-task-id-block"|{{ids|{{{id|}}}}}
 
|-
 
|-
|style="border: 0px solid;"|'''RS Wiki page'''
 
|style="border: 0px solid; text-align: right;"|{{rsw|{{{wiki|Main Page}}}}}
 
 
|-
 
|-
|style="border: 0px solid; vertical-align:top;"|'''Uniques'''
+
|class="tw-infobox-row-title"|'''RS Wiki page'''
|style="border: 0px solid; text-align: right;"|{{#if:{{{unique|}}}|{{#replace:{{{unique|}}}|,|<br/>}}|N/A}}
+
|class="tw-infobox-row"|{{#if:{{{wikialt|}}}|{{rsw|{{{wiki|Main Page}}}|{{{wikialt|}}}}}|{{rsw|{{{wiki|Main Page}}}}}}}{{#if:{{{unique|}}}|<nowiki/>
|-
+
{{!}}-
|style="border: 0px solid;"|'''Uniques per task'''
+
{{!}}class="tw-infobox-row-title"{{!}}'''Uniques'''
|style="border: 0px solid; text-align: right;"|{{#if:{{{upt|}}}|{{{upt|}}}|N/A}}
+
{{!}}class="tw-infobox-row"{{!}}<span class="mw-linkline" data-format="https://runescape.wiki/w/$1">{{#replace:{{{unique|}}}|,|<br/>}}</span>}}{{#if:{{{upt|}}}|<nowiki/>
|}
+
{{!}}-
 +
{{!}}class="tw-infobox-row-title"{{!}}'''Uniques per task'''
 +
{{!}}class="tw-infobox-row"{{!}}{{{upt|}}}[[Category:Tasks with uniques]]}}
 +
|}<includeonly>{{Infobox Task/categorise|{{{tier|Beginner}}}|{{{stars|0}}}}}</includeonly><noinclude>
 +
 
 +
=== 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 [[Template:Id|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 ''<nowiki>https://runescape.wiki/w/</nowiki>''
 +
* '''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.
 +
[[Category:Infoboxes]]</noinclude>

Latest revision as of 16:49, 12 May 2023

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

Parameters[edit]

  • 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.