Template:Task: Difference between revisions

From The Unofficial Isekai:Slow Life Wiki
Jump to navigation Jump to search
m (Changed max-width to 100%.)
m (Edited indent in <pre>.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="task" style="max-width: 100%; margin: 3px; border: 1px solid #847E69; border-radius: 2px; padding: 3px; background-color: #EDD7C4;">
<div class="task" style="max-width: 100%; margin: 3px; border: 1px solid #847E69; border-radius: 2px; padding: 3px; background-color: #EDD7C4;">
     <div class="task-inner" style="border: 1px solid #E1CEBB; background-color: #F6E9D8; max-width: 100%; height: auto; overflow: hidden; position: relative;">
     <div class="task-inner" style="border: 1px solid #E1CEBB; background-color: #F6E9D8; max-width: 100%; height: auto; overflow: hidden; position: relative;">
           <h4 class="task-name" style="width: 100%; font-size: 14px; margin: 0; padding: 5px; background-color: #E7C8A4;">  
           <div class="task-name" style="width: 100%; font-size: 14px; font-weight: bold; margin: 0; padding: 5px; background-color: #E7C8A4;">  
               {{{name|Default Task Name}}}</h4>
               {{{name|Default Task Name}}}</div>
           <div class="task-rewards" style="display: flex; flex-wrap: wrap;">
           <div class="task-rewards" style="display: flex; flex-wrap: wrap;">
               {{{rewards|{{Item}}}}}
               {{{rewards|{{Item}}}}}
Line 8: Line 8:
       </div>
       </div>
</div>
</div>
                 
<noinclude>
<noinclude>
The width of <nowiki>{{Task}}</nowiki> is dependent on {{:Template:Tasklist}}'s width.
The width of <nowiki>{{Task}}</nowiki> is dependent on [[Template:Tasklist]]'s width.<br>
 
'''Template:'''
<pre style="width: 500px;">
{{Task
  | name =
  | rewards =
}}
</pre>
<templatedata>
<templatedata>
{
{
Line 23: Line 30:
"description": "This is where you put the {{Item}} templates.",
"description": "This is where you put the {{Item}} templates.",
"type": "unbalanced-wikitext",
"type": "unbalanced-wikitext",
"default": "{{Item}}"
"default": "{{Item}}",
"required": true
}
}
},
},

Latest revision as of 20:07, 5 April 2025

Default Task Name
0

The width of {{Task}} is dependent on Template:Tasklist's width.

Template:

{{Task
   | name =
   | rewards =
}}

This template is used for tasks and the rewards given upon completion of a task.

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

This is where the name of the task is placed.

Default
Default Task Name
Stringrequired
rewardsrewards

This is where you put the {{Item}} templates.

Default
{{Item}}
Unbalanced wikitextrequired