Template:Title Rewards Table: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
mNo edit summary
imported>Tlosk
No edit summary
Line 4: Line 4:
|bgcolor=#d0d0d0 align=center valign=top| '''Title Reward'''
|bgcolor=#d0d0d0 align=center valign=top| '''Title Reward'''
|-
|-
|align=left| {{{Task 1|??}}}
{{{Table Rows|}}}
|align=left| {{{Title 1|??}}}
|-
{{#ifeq:{{{Task 2|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 2|}}}|||{{!}}align=left{{!}} {{{Task 2|??}}} }}
{{#ifeq:{{{Title 2|}}}|||{{!}}align=left{{!}} {{{Title 2|??}}} }}
|-
{{#ifeq:{{{Task 3|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 3|}}}|||{{!}}align=left{{!}} {{{Task 3|??}}} }}
{{#ifeq:{{{Title 3|}}}|||{{!}}align=left{{!}} {{{Title 3|??}}} }}
|-
{{#ifeq:{{{Task 4|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 4|}}}|||{{!}}align=left{{!}} {{{Task 4|??}}} }}
{{#ifeq:{{{Title 4|}}}|||{{!}}align=left{{!}} {{{Title 4|??}}} }}
|-
{{#ifeq:{{{Task 5|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 5|}}}|||{{!}}align=left{{!}} {{{Task 5|??}}} }}
{{#ifeq:{{{Title 5|}}}|||{{!}}align=left{{!}} {{{Title 5|??}}} }}
|-
{{#ifeq:{{{6|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 6|}}}|||{{!}}align=left{{!}} {{{Task 6|??}}} }}
{{#ifeq:{{{Title 6|}}}|||{{!}}align=left{{!}} {{{Title 6|??}}} }}
|-
{{#ifeq:{{{Task 7|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 7|}}}|||{{!}}align=left{{!}} {{{Task 7|??}}} }}
{{#ifeq:{{{Title 7|}}}|||{{!}}align=left{{!}} {{{Title 7|??}}} }}
|-
{{#ifeq:{{{Task 8|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 8|}}}|||{{!}}align=left{{!}} {{{Task 8|??}}} }}
{{#ifeq:{{{Title 8|}}}|||{{!}}align=left{{!}} {{{Title 8|??}}} }}
|-
{{#ifeq:{{{9|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 9|}}}|||{{!}}align=left{{!}} {{{Task 9|??}}} }}
{{#ifeq:{{{Title 9|}}}|||{{!}}align=left{{!}} {{{Title 9|??}}} }}
|-
{{#ifeq:{{{Task 10|}}}||{{!}}-|{{!}}colspan=2{{!}}
----}}
|-
{{#ifeq:{{{Task 10|}}}|||{{!}}align=left{{!}} {{{Task 10|??}}} }}
{{#ifeq:{{{Title 10|}}}|||{{!}}align=left{{!}} {{{Title 10|??}}} }}
|-
 
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{Related|Wiki Templates|Quest Guide Template}}
{{Related|Wiki Templates|Quest Guide Template}}
Line 67: Line 10:
<pre>
<pre>
{{Title Rewards Table
{{Title Rewards Table
  |  Task 1 =  
| Table Rows =
  | Title 1 =  
{{Title
  |  Task 2 =  
| Title =
  | Title 2 =  
  |  Task =  
}}
 
{{Title
  | Title =  
  |  Task =  
}}
 
{{Title
  | Title =  
|  Task =
}}
}}
}}
</pre>
</pre>


== Usage ==
== Usage ==
This template is one component of the page template [[Quest Guide Template]], full details and an example can be found there. Lists up to 10 titles.
This template is one component of the page template [[Quest Guide Template]], full details and an example can be found there. Note that this template makes use of another template to compose each row in the table, this allows you to have an arbitrary number of rows so you can add as many titles as needed.  


== Non-template Code ==
== Non-template Code ==
For more than 10 titles, use standard formatting to construct a table:
If customization is required that deviates from the template, use standard formatting to construct a table:
<pre>
<pre>
{|cellpadding=3 style=" border:1px solid #e5e5e5; background:#f9f9f9; vertical-align:top;"
{|cellpadding=3 style=" border:1px solid #e5e5e5; background:#f9f9f9; vertical-align:top;"

Revision as of 09:10, 24 February 2009

Related topics: Wiki Templates, Quest Guide Template

Syntax

{{Title Rewards Table
 | Table Rows =
{{Title
 | Title = 
 |  Task = 
}}

{{Title
 | Title = 
 |  Task = 
}}

{{Title
 | Title = 
 |  Task = 
}}
}}

Usage

This template is one component of the page template Quest Guide Template, full details and an example can be found there. Note that this template makes use of another template to compose each row in the table, this allows you to have an arbitrary number of rows so you can add as many titles as needed.

Non-template Code

If customization is required that deviates from the template, use standard formatting to construct a table:

{|cellpadding=3 style=" border:1px solid #e5e5e5; background:#f9f9f9; vertical-align:top;"
|-
|bgcolor=#d0d0d0 align=center valign=top| '''Task Required'''
|bgcolor=#d0d0d0 align=center valign=top| '''Title Reward'''
|-
|align=left| 
|align=left| 
|-
|align=left| 
|align=left| 
|-
|}