Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!
Difference between revisions of "Template:SkillPage"
(Initial formulation. Create sidebar and usage documentation.) |
(Fix missing }'s, and template loop. Add Example page formatting.) |
||
Line 1: | Line 1: | ||
− | < | + | <noinclude> |
+ | <table width="100%"> | ||
+ | <tr><td> | ||
+ | ==Template== | ||
+ | </td></tr> | ||
+ | <tr><td> | ||
+ | </noinclude> | ||
+ | <table cellpadding="2" cellspacing="2" style="float: right; width: 250px; padding: 6px; margin: 0 0 1em 1em; font-size: 0.83em; background-color: #f7f8ff; border:1px solid #8888aa;"> | ||
<tr style="background: #ccccff"> | <tr style="background: #ccccff"> | ||
<th colspan="2" style="text-align: center;"> | <th colspan="2" style="text-align: center;"> | ||
− | <big>{{ | + | <big>{{#ifexist: File:{{{Icon}}}| [[File:{{{Icon}}}]] | <font color="DarkRed">'''(Icon missing: [[File:{{{Icon}}}]])'''</font> }} '''{{{Name}}}'''</big> |
</th> | </th> | ||
</tr> | </tr> | ||
+ | {{#if:{{{Video}}|| | ||
<tr> | <tr> | ||
<td colspan="2" style="padding-right:1.5em">{{youtube tn|{{{Video}}} }}</td> | <td colspan="2" style="padding-right:1.5em">{{youtube tn|{{{Video}}} }}</td> | ||
</tr> | </tr> | ||
+ | }} | ||
<tr> | <tr> | ||
− | <td colspan="2" style="text-align:center" | + | <td colspan="2" style="text-align:center">{{{Type2|}}} {{{Type}}}</td> |
− | |||
− | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="text-align:right">Class:</th> | <th style="text-align:right">Class:</th> | ||
− | <td>{{#switch:{{{Gender | + | <td>{{#switch:{{{Gender}}}|Both = [[Male {{{Class}}}]] and [[Female {{{Class}}}]]|Female=[[Female {{{Class}}}]]|Male=[[Male {{{Class}}}]]|Default=[[{{{Class}}}]] }}</td> |
− | |Both = [[Male {{{Class}}}]] and [[Female {{{Class}}}]] | ||
− | |Female=[[Female {{{Class}}}]] | ||
− | |Male=[[Male {{{Class}}}]] | ||
− | |Default=[[{{{Class}}}]] }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="text-align:right">Command:</th> | <th style="text-align:right">Command:</th> | ||
− | <td>{{#if:{{{Command | + | <td>{{#if:{{{Command}}}|None|{{{Command}}} }}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="text-align:right">Prerequisite Level:</th> | <th style="text-align:right">Prerequisite Level:</th> | ||
− | <td>{{#if:{{{PrerequisiteLevel | + | <td>{{#if:{{{PrerequisiteLevel}}}|None|{{{PrerequisiteLevel}}} }}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="text-align:right">Prerequisite Skills:</th> | <th style="text-align:right">Prerequisite Skills:</th> | ||
− | <td>{{#if:{{{PrerequisiteSkill | + | <td>{{#if:{{{PrerequisiteSkill}}}|None|{{{PrerequisiteSkill}}} }}</td> |
</tr> | </tr> | ||
</table> | </table> | ||
− | </ | + | <noinclude></td></tr> |
− | < | + | <tr><td> |
− | + | ==Usage== | |
− | + | </td></tr> | |
− | =Usage= | + | <tr><td> |
<pre>{{SkillData Skill Name|Format=FormatSkill Page}}</pre> | <pre>{{SkillData Skill Name|Format=FormatSkill Page}}</pre> | ||
Produces a page like this without the useage text. | Produces a page like this without the useage text. | ||
+ | </td></tr> | ||
+ | <tr><td> | ||
+ | ==Example== | ||
+ | </td></tr> | ||
+ | <tr><td> | ||
+ | {{SkillData Needle Throw|Format=FormatSkill Page}} | ||
+ | </td></tr></table> | ||
</noinclude> | </noinclude> |
Revision as of 13:52, 6 April 2015
Template | ||||||||||||
| ||||||||||||
Usage | ||||||||||||
{{SkillData Skill Name|Format=FormatSkill Page}} Produces a page like this without the useage text. | ||||||||||||
Example | ||||||||||||