Difference between revisions of "Template:Training"

m
m
Line 1: Line 1:
{| class="uoguidetable open" style="margin:auto;"
+
<noinclude>{{Template Overview
 +
|usedon=[[skill]] pages
 +
|purpose=display the optimal skill training based on the given [[skill]] interval.
 +
|othernotes=It is designed to display the optimal [[skill]] training information based on the given skill interval.
 +
==Examples==
 +
{{{!}} class="uoguidetable leftalign"
 +
! Inside Page
 +
! Output
 +
{{!}}-
 +
{{!}}
 +
<nowiki>{{training</nowiki><br>
 +
<nowiki>|interval1=0-30</nowiki><br>
 +
<nowiki>|training1=Purchase training from a Thief Guildmaster</nowiki><br>
 +
<nowiki>|interval2=30-65</nowiki><br>
 +
<nowiki>|training2=Stealth while wearing leather (add a piece at a time as it gets higher.) Don't use a helmet.</nowiki><br>
 +
<nowiki>|interval3=65-95</nowiki><br>
 +
<nowiki>|training3=Stealth while wearing studded leather (add a piece at a time as it gets higher.) Don't use a helmet.</nowiki><br>
 +
<nowiki>|interval4=95-120</nowiki><br>
 +
<nowiki>|training4=Stealth while wearing ringmail armor and a [[Close Helm]].</nowiki><br>
 +
<nowiki>}}</nowiki>
 +
{{!}} {{training
 +
|interval1=0-30
 +
|training1=Purchase training from a Thief Guildmaster
 +
|interval2=30-65
 +
|training2=Stealth while wearing leather (add a piece at a time as it gets higher.) Don't use a helmet.
 +
|interval3=65-95
 +
|training3=Stealth while wearing studded leather (add a piece at a time as it gets higher.) Don't use a helmet.
 +
|interval4=95-120
 +
|training4=Stealth while wearing ringmail armor and a [[Close Helm]].
 +
}}
 +
{{!}}}
 +
|template=<nowiki>{{Training
 +
|interval1=
 +
|training1=
 +
|interval2=
 +
|training2=
 +
|interval3=
 +
|training3=
 +
|interval4=
 +
|training4=
 +
|interval5=
 +
|training5=
 +
|interval6=
 +
|training6=
 +
|interval7=
 +
|training7=
 +
|interval8=
 +
|training8=
 +
|interval9=
 +
|training9=
 +
|interval10=
 +
|training10=
 +
}}</nowiki>
 +
|category=Content
 +
}}
 +
{{Template Parameter
 +
|name=intervalx
 +
|takes=any value or string
 +
|denotes=the xth interval of the skill
 +
|generates=the given interval of skill
 +
|validvalues=any value or string
 +
}}
 +
{{Template Parameter
 +
|name=trainingx
 +
|takes=any value or string
 +
|denotes=how to train the the xth interval of the skill
 +
|generates=the given text for the training information
 +
|validvalues=any value or string
 +
}}
 +
</noinclude>
 +
<includeonly>
 +
{| class="uoguidetable open" style="margin:left;"
 
! colspan="2" | Training {{PAGENAME}}
 
! colspan="2" | Training {{PAGENAME}}
 
|-
 
|-
!{{{r1t|}}}  
+
!{{{interval1|}}}  
|{{{r1c|}}}
+
|{{{training1|}}}
 
|-
 
|-
{{#if: {{{r2t|}}}|
+
{{#if: {{{interval2|}}}|
{{!}}-
+
!{{{interval2|}}}
! {{{r2t|}}}
+
{{!}} {{{training2|}}}}}
{{!}} {{{r2c|}}}}}
+
 
|-
 
|-
{{#if: {{{r3t|}}}|
+
{{#if: {{{interval3|}}}|
!{{{r3t|}}}
+
!{{{interval3|}}}
{{!}}{{{r3c|}}}}}
+
{{!}}{{{training3|}}}}}
 
|-
 
|-
{{#if: {{{r4t|}}}|
+
{{#if: {{{interval4|}}}|
!{{{r4t|}}}
+
!{{{interval4|}}}
|{{{r4c|}}}}}
+
{{!}}{{{training4|}}}}}
 
|-
 
|-
{{#if: {{{r5t|}}}|
+
{{#if: {{{interval5|}}}|
!{{{r5t|}}}
+
!{{{interval5|}}}
|{{{r5c|}}}}}
+
{{!}}{{{training5|}}}}}
 
|-
 
|-
{{#if: {{{r6t|}}}|
+
{{#if: {{{interval6|}}}|
!{{{r6t|}}}
+
!{{{interval6|}}}
|{{{r6c|}}}}}
+
{{!}}{{{training6|}}}}}
 
|-
 
|-
{{#if: {{{r7t|}}}|
+
{{#if: {{{interval7|}}}|
!{{{r7t|}}}
+
!{{{interval7|}}}
|{{{r7c|}}}}}
+
{{!}}{{{training7|}}}}}
 
|-
 
|-
{{#if: {{{r8t|}}}|
+
{{#if: {{{interval8|}}}|
!{{{r8t|}}}
+
!{{{interval8|}}}
|{{{r8c|}}}}}
+
{{!}}{{{training8|}}}}}
 
|-
 
|-
{{#if: {{{r9t|}}}|
+
{{#if: {{{interval9|}}}|
!{{{r9t|}}}
+
!{{{interval9|}}}
|{{{r9c|}}}}}
+
{{!}}{{{training9|}}}}}
 
|-
 
|-
{{#if: {{{r10t|}}}|
+
{{#if: {{{interval10|}}}|
!{{{r10t|}}}
+
!{{{interval10|}}}
|{{{r10c|}}}}}
+
{{!}}{{{training10|}}}}}
 
|}
 
|}
 
+
</includeonly>
 
+
 
+
<table style='width: 40em; margin-left: 3em; border: 1px solid #000; font-size: 90%;'>
+
<tr>
+
  <th class='title' colspan='3'>Training {{{title|SKILLNAME_NOT_GIVEN}}}</th>
+
</tr>
+
<tr>
+
  <th width='30%;'>{{{r1t|}}}</th>
+
  <td>{{{r1c|}}}</td>
+
</tr>{{#if:{{{r2t|}}}|<tr>
+
  <th>{{{r2t|}}}</th>
+
  <td>{{{r2c|}}}</td>
+
</tr>}}{{#if:{{{r3t|}}}|<tr>
+
  <th>{{{r3t|}}}</th>
+
  <td>{{{r3c|}}}</td>
+
</tr>}}{{#if:{{{r4t|}}}|<tr>
+
  <th>{{{r4t|}}}</th>
+
  <td>{{{r4c|}}}</td>
+
</tr>}}{{#if:{{{r5t|}}}|<tr>
+
  <th>{{{r5t|}}}</th>
+
  <td>{{{r5c|}}}</td>
+
</tr>}}{{#if:{{{r6t|}}}|<tr>
+
  <th>{{{r6t|}}}</th>
+
  <td>{{{r6c|}}}</td>
+
</tr>}}{{#if:{{{r7t|}}}|<tr>
+
  <th>{{{r7t|}}}</th>
+
  <td>{{{r7c|}}}</td>
+
</tr>}}{{#if:{{{r8t|}}}|<tr>
+
  <th>{{{r8t|}}}</th>
+
  <td>{{{r8c|}}}</td>
+
</tr>}}{{#if:{{{r9t|}}}|<tr>
+
  <th>{{{r9t|}}}</th>
+
  <td>{{{r9c|}}}</td>
+
</tr>}}{{#if:{{{r10t|}}}|<tr>
+
  <th>{{{r10t|}}}</th>
+
  <td>{{{r10c|}}}</td>
+
</tr>}}
+
</table>
+

Revision as of 05:59, 1 February 2012

Template:Training is designed for use on skill pages pages to display the optimal skill training based on the given skill interval.. It is designed to display the optimal skill training information based on the given skill interval.

Examples

Inside Page Output

{{training
|interval1=0-30
|training1=Purchase training from a Thief Guildmaster
|interval2=30-65
|training2=Stealth while wearing leather (add a piece at a time as it gets higher.) Don't use a helmet.
|interval3=65-95
|training3=Stealth while wearing studded leather (add a piece at a time as it gets higher.) Don't use a helmet.
|interval4=95-120
|training4=Stealth while wearing ringmail armor and a [[Close Helm]].
}}

Training Training
0-30 Purchase training from a Thief Guildmaster
30-65 Stealth while wearing leather (add a piece at a time as it gets higher.) Don't use a helmet.
65-95 Stealth while wearing studded leather (add a piece at a time as it gets higher.) Don't use a helmet.
95-120 Stealth while wearing ringmail armor and a Close Helm.

Template

{{Training
|interval1=
|training1=
|interval2=
|training2=
|interval3=
|training3=
|interval4=
|training4=
|interval5=
|training5=
|interval6=
|training6=
|interval7=
|training7=
|interval8=
|training8=
|interval9=
|training9=
|interval10=
|training10=
}}

Parameters

intervalx

  • Usage: Optional
  • Description: The intervalx parameter takes any value or string denoting the xth interval of the skill. This is used to generate the given interval of skill.
  • Valid Value(s): any value or string

trainingx

  • Usage: Optional
  • Description: The trainingx parameter takes any value or string denoting how to train the the xth interval of the skill. This is used to generate the given text for the training information.
  • Valid Value(s): any value or string