Template:Title Rewards Table: Difference between revisions

From My Wiki
Jump to navigation Jump to search
imported>Tlosk
mNo edit summary
imported>Tlosk
No edit summary
 
(5 intermediate revisions by the same user not shown)
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|??}}}
|colspan=2| ''<small>See [[Titles]] for a list of all available titles.</small>''
|-
|-
{{#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|{{mtl|Title}}}}
== Syntax ==
== Syntax ==
<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;"
Line 94: Line 50:
</pre>
</pre>


[[Category:Wiki Template]]
</noinclude>
</noinclude>

Latest revision as of 17:39, 21 April 2009

Related topics: Wiki Templates, Quest Guide Template, {{Title}}

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| 
|-
|}