Template:JobList: Difference between revisions

2,860 bytes added ,  19:15, 24 April 2020
Removed excess 'w'. Added details to documentation. Fixed behavious for missing title-parameter
m (v0.1)
(Removed excess 'w'. Added details to documentation. Fixed behavious for missing title-parameter)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><table class="wikitable sortable jquery-tablesorter" cellpadding="2" style="width: 85%;  font-size: 90%; border: 1px solid #AAAAAA;  margin-left:0.5em;">
<includeonly><table class="infobox" cellpadding="2" style="width: 85%;  font-size: 90%; border: 1px solid #AAAAAA;  margin-left:0.5em;">
<tr>
<tr>
<th class="unsortable" bgcolor="#bbbbbb" align="center" colspan="3" scope="col">
<th class="unsortable" bgcolor="#bbbbbb" align="center" colspan="3" scope="col">
{{{title}}}
{{{title|}}}
</th>
</th>
<th class="headerSort" width="10%" bgcolor="#bbbbbb" align="center" colspan="3" scope="col">
<th class="unsortable" width="10%" bgcolor="#bbbbbb" align="center" colspan="3" scope="col">
Difficulty
Difficulty
</th>
</th>
</tr>
</tr>{{#if:{{{1|}}}|
<tr>
<tr>
<td>
<td width="110px" align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{1}}}|{{#ifeq:{{Data|{{{1}}}|img|}}|false||[[File:{{Data|{{{1}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{1}}}|img|Empty.png}}|link={{{1}}}|size=64px}}
</td>
</td>
<td>
<td width="140px" align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{1}}}|{{Data|{{{1}}}|name|Unknown name}}}}
[[{{{1}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{1}}}|{{Data|{{{1}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{1}}}|duties|}}|{{Data|{{{1}}}|duties|Unknown duties, [{{fullurl:Data:{{{1}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{1}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{1}}}|{{Data|{{{1}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{1}}}|difficulty|}}|{{Data|{{{1}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{2|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{2}}}|{{#ifeq:{{Data|{{{2}}}|img|}}|false||[[File:{{Data|{{{2}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{2}}}|img|Empty.png}}|link={{{2}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{2}}}|{{Data|{{{2}}}|name|Unknown name}}}}
[[{{{2}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{2}}}|{{Data|{{{2}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{2}}}|duties|}}|{{Data|{{{2}}}|duties|Unknown duties, [{{fullurl:Data:{{{2}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{2}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{2}}}|{{Data|{{{2}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{2}}}|difficulty|}}|{{Data|{{{2}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{3|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{3}}}|{{#ifeq:{{Data|{{{3}}}|img|}}|false||[[File:{{Data|{{{3}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{3}}}|img|Empty.png}}|link={{{3}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{3}}}|{{Data|{{{3}}}|name|Unknown name}}}}
[[{{{3}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{3}}}|{{Data|{{{3}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{3}}}|duties|}}|{{Data|{{{3}}}|duties|Unknown duties, [{{fullurl:Data:{{{3}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{3}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{3}}}|{{Data|{{{3}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{3}}}|difficulty|}}|{{Data|{{{3}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{4|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{4}}}|{{#ifeq:{{Data|{{{4}}}|img|}}|false||[[File:{{Data|{{{4}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{4}}}|img|Empty.png}}|link={{{4}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{4}}}|{{Data|{{{4}}}|name|Unknown name}}}}
[[{{{4}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{4}}}|{{Data|{{{4}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{4}}}|duties|}}|{{Data|{{{4}}}|duties|Unknown duties, [{{fullurl:Data:{{{4}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{4}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{4}}}|{{Data|{{{4}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{4}}}|difficulty|}}|{{Data|{{{4}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{5|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{5}}}|{{#ifeq:{{Data|{{{5}}}|img|}}|false||[[File:{{Data|{{{5}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{5}}}|img|Empty.png}}|link={{{5}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{5}}}|{{Data|{{{5}}}|name|Unknown name}}}}
[[{{{5}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{5}}}|{{Data|{{{5}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{5}}}|duties|}}|{{Data|{{{5}}}|duties|Unknown duties, [{{fullurl:Data:{{{5}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{5}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{5}}}|{{Data|{{{5}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{5}}}|difficulty|}}|{{Data|{{{5}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{6|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{6}}}|{{#ifeq:{{Data|{{{6}}}|img|}}|false||[[File:{{Data|{{{6}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{6}}}|img|Empty.png}}|link={{{6}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{6}}}|{{Data|{{{6}}}|name|Unknown name}}}}
[[{{{6}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{6}}}|{{Data|{{{6}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{6}}}|duties|}}|{{Data|{{{6}}}|duties|Unknown duties, [{{fullurl:Data:{{{6}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{6}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{6}}}|{{Data|{{{6}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{6}}}|difficulty|}}|{{Data|{{{6}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{7|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{7}}}|{{#ifeq:{{Data|{{{7}}}|img|}}|false||[[File:{{Data|{{{7}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{7}}}|img|Empty.png}}|link={{{7}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{7}}}|{{Data|{{{7}}}|name|Unknown name}}}}
[[{{{7}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{7}}}|{{Data|{{{7}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{7}}}|duties|}}|{{Data|{{{7}}}|duties|Unknown duties, [{{fullurl:Data:{{{7}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{7}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{7}}}|{{Data|{{{7}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{7}}}|difficulty|}}|{{Data|{{{7}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}{{#if:{{{8|}}}|
<tr>
<tr>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{8}}}|{{#ifeq:{{Data|{{{8}}}|img|}}|false||[[File:{{Data|{{{8}}}|img|Empty.png}}]]}}}}
{{click|img={{Data|{{{8}}}|img|Empty.png}}|link={{{8}}}|size=64px}}
</td>
</td>
<td>
<td align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{8}}}|{{Data|{{{8}}}|name|Unknown name}}}}
[[{{{8}}}]]
</td>
</td>
<td>
<td align="left">
{{#ifexist:Data:{{{8}}}|{{Data|{{{8}}}|duties|Unknown duties}}}}
{{#if:{{Data|{{{8}}}|duties|}}|{{Data|{{{8}}}|duties|Unknown duties, [{{fullurl:Data:{{{8}}}|action=edit}} click here to add it!]}}|Unknown duties, [{{fullurl:Data:{{{8}}}|action=edit}} click here to add it!]}}
</td>
</td>
<th>
<th align="center" bgcolor="{{{imagebgcolor|#cccccc}}}">
{{#ifexist:Data:{{{8}}}|{{Data|{{{8}}}|difficulty|Unknown difficulty}}}}
{{#if:{{Data|{{{8}}}|difficulty|}}|{{Data|{{{8}}}|difficulty|Unknown difficulty}}|Unknown difficulty}}
</th>
</th>
</tr>
</tr>|}}
</table></includeonly><noinclude>
</table></includeonly><noinclude>
{{Needs revision
|reason = Is this template in use? Contains quite a bit of copypasta for each parameter.
|user = [[User:Helpful Herbert|Helpful Herbert]] ([[User talk:Helpful Herbert|talk]]) 19:15, 24 April 2020 (UTC)
}}
== About ==
Displays a list of jobs in a table. Unsure about use-context.


{{JobList|Waiter|Chef|Assistant|AI|Recovery Agent}}
== Parameter-Usage ==
{| class="wikitable"
!Parameter
!Description
|-
!title
|Title to be displayed in the table-top.
|-
! 1-8
| Name of the Data-Entry. For example 'Assistant' for [[Data:Assistant]]
|}
 
== Examples ==
=== Bare ===
<pre>{{JobList}}</pre>
{{JobList}}
 
{{Clear}}
=== Normal ===
<pre>{{JobList|title=Random Jobs|Chef|Assistant|AI}}</pre>
{{JobList|title=Random Jobs|Chef|Assistant|AI}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
1,133

edits