Template:Output-Format: Difference between revisions
From Exiled Kingdoms Wiki
mNo edit summary |
mNo edit summary |
||
(39 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
[[Category:Templates]] | |||
{{Documentation}} | |||
{{ | |||
</noinclude> | </noinclude> | ||
{{#switch:{{{Format}}} | {{#switch:{{{Format}}} | ||
| | |GenPageCall= | ||
{{ | {{:{{{1}}}|{{{2}}}|{{{3|}}}}} | ||
| | |genSel={{{{{{Step|}}}}}} | ||
|AreaTbl= | |||
{{!}}- | {{!}}- | ||
{{!}}[[{{{ | {{!}}[[{{{Name}}}]]{{!}}{{!}}{{{Out}}}{{!}}{{!}}{{{Twn}}}{{!}}{{!}}{{{Dng}}}{{!}}{{!}}{{{Bld}}}{{!}}{{!}}{{{Difficulty|}}}{{!}}{{!}}{{{LevelL|}}}{{!}}{{!}}{{{LevelH|}}}{{!}}{{!}}{{{Quest|}}}{{!}}{{!}}{{{Town|}}}{{!}}{{!}}{{{Dungeon|}}}{{!}}{{!}}{{{Adjacent|}}} | ||
|ArmCityTbl= | |ArmCityTbl= | ||
{{!}}- | {{!}}- | ||
{{!}}[[{{{Arm}}}]]{{!}}{{!}}{{{Cost|}}}{{!}}{{!}}{{#if:{{{Armor|}}}|<code>+{{{Armor}}} AR</code> }} {{#if:{{{Health|}}}| <code>+{{{Health}}} HP</code> }} {{#if:{{{Mana|}}}| <code>+{{{Mana}}} MP</code> }} {{#if:{{{Element|}}}| <code>+{{{ | {{!}}[[{{{Arm}}}]]{{!}}{{!}}{{{Cost|}}}{{!}}{{!}}{{#if:{{{Armor|}}}|<code>+{{{Armor}}} AR</code> }} {{#if:{{{Health|}}}| <code>+{{{Health}}} HP</code> }} {{#if:{{{Mana|}}}| <code>+{{{Mana}}} MP</code> }} {{#if:{{{Element|}}}| <code>+{{{Elem_Res}}} {{{Element}}}</code> }} {{#if:{{{Trait|}}}| <code>+{{{Trait_Bonus}}} {{{Trait}}}</code> }} | ||
|ArmCityTblx= | |ArmCityTblx= | ||
<tr> | <tr> | ||
<td>[[{{{Arm}}}]]</td> | <td>[[{{{Arm}}}]]</td> | ||
<td>{{{Cost|}}}</td> | <td>{{{Cost|}}}</td> | ||
<td>{{#if:{{{Armor|}}}|<code>+{{{Armor}}} AR</code> }} {{#if:{{{Health|}}}| <code>+{{{Health}}} HP</code> }} {{#if:{{{Mana|}}}| <code>+{{{Mana}}} MP</code> }} {{#if:{{{Element|}}}| <code>+{{{ | <td>{{#if:{{{Armor|}}}|<code>+{{{Armor}}} AR</code> }} {{#if:{{{Health|}}}| <code>+{{{Health}}} HP</code> }} {{#if:{{{Mana|}}}| <code>+{{{Mana}}} MP</code> }} {{#if:{{{Element|}}}| <code>+{{{Elem_Res}}} {{{Element}}}</code> }} {{#if:{{{Trait|}}}| <code>+{{{Trait_Bonus}}} {{{Trait}}}</code> }}</td> | ||
</tr> | </tr> | ||
| | |ArmSub={{!}}- | ||
{{!}}- | {{!}}[[File:{{{Icon}}}{{!}}64px{{!}}link={{{Arm}}}]]{{!}}{{!}}[[{{{Arm}}}]]{{!}}{{!}}{{{Class}}}{{!}}{{!}}{{{Armor|}}}{{!}}{{!}}{{{Health|}}}{{!}}{{!}}{{{Mana|}}}{{!}}{{!}}{{{Attribute|}}}{{!}}{{!}}{{{Element|}}} {{{Elem_Res|}}}{{!}}{{!}}{{{Trait|}}} {{{Trait_Bonus|}}} | ||
{{!}}[[File:{{{Icon}}}{{!}}64px{{!}}link={{{ | |ArmTbl= | ||
| | |||
{{!}}- | {{!}}- | ||
{{!}}[[ | {{!}}[[{{{Arm}}}]]{{!}}{{!}}{{{Groups}}}{{!}}{{!}}{{{Slot}}}{{!}}{{!}}{{{CWar}}}{{!}}{{!}}{{{CRog}}}{{!}}{{!}}{{{CCle}}}{{!}}{{!}}{{{CMag}}}{{!}}{{!}}{{{CAll}}}{{!}}{{!}}{{{Armor|}}}{{!}}{{!}}{{{Health|}}}{{!}}{{!}}{{{Mana|}}}{{!}}{{!}}{{{Attribute|}}}{{!}}{{!}}{{#if:{{{Element|}}}|{{{Element}}}}}{{!}}{{!}}{{{Elem_Res}}}{{!}}{{!}}{{#if:{{{Trait|}}}|{{{Trait}}}}}{{!}}{{!}}{{{Trait_Bonus|}}}{{!}}{{!}}{{{Description}}} | ||
{{!}} | |||
{{!}} | |||
| | |||
{ | |||
|ItmCityTbl={{!}}- | |ItmCityTbl={{!}}- | ||
{{!}}[[{{{Itm}}}]]{{!}}{{!}}{{{Cost|}}}{{!}}{{!}}{{#if:{{{Effect|}}}|{{{Effect}}} <code>{{{ | {{!}}[[{{{Itm}}}]]{{!}}{{!}}{{{Cost|}}}{{!}}{{!}}{{#if:{{{Effect|}}}|{{{Effect}}} <code>{{{Effect_Amount}}}</code> {{#if: | ||
{{{ | {{{Duration_Range|}}}| For <code>{{{Duration_Range}}}</code> }}}} {{{Description|}}} | ||
|ItmCityTblx= | |ItmCityTblx= | ||
<tr> | <tr> | ||
<td>[[{{{Itm}}}]]</td> | <td>[[{{{Itm}}}]]</td> | ||
<td>{{{Cost}}}</td> | <td>{{{Cost}}}</td> | ||
<td>{{#if:{{{Effect|}}}|{{{Effect}}} <code>{{{ | <td>{{#if:{{{Effect|}}}|{{{Effect}}} <code>{{{Effect_Amount}}}</code> {{#if: | ||
{{{ | {{{Duration_Range|}}}| For <code>{{{Duration_Range}}}</code> }}}} {{{Description|}}} </td> | ||
</tr> | </tr> | ||
|ItmSub= | |||
{{!}}- | |||
{{!}}[[File:{{{Icon}}}{{!}}64px{{!}}link={{{Itm}}}]]{{!}}{{!}}[[{{{Itm}}}]]{{!}}{{!}}{{{Class|All}}}{{!}}{{!}}{{{Stackable|}}}{{!}}{{!}}{{{Value|0}}}{{!}}{{!}}{{{Quest|}}}{{!}}{{!}}{{{Effect|}}}{{!}}{{!}}{{{Effect_Amount|}}}{{!}}{{!}}{{{Duration_Range|}}}{{!}}{{!}}{{{Description|}}} | |||
|ItmSubx= | |ItmSubx= | ||
<tr> | <tr> | ||
Line 73: | Line 47: | ||
<td>{{{Quest|}}}</td> | <td>{{{Quest|}}}</td> | ||
<td>{{{Effect|}}}</td> | <td>{{{Effect|}}}</td> | ||
<td>{{{ | <td>{{{Effect_Amount|}}}</td> | ||
<td>{{{ | <td>{{{Duration_Range|}}}</td> | ||
<td>{{{Description|}}}</td> | <td>{{{Description|}}}</td> | ||
</tr> | </tr> | ||
|ItmTbl= | |||
{{!}}- | |||
{{!}}[[File:{{{Icon}}}{{!}}64px{{!}}link={{{Itm}}}]]{{!}}{{!}}[[{{{Itm}}}]]{{!}}{{!}}{{{Groups}}}{{!}}{{!}}{{{Class|All}}}{{!}}{{!}}{{{Stackable|}}}{{!}}{{!}}{{{Value|0}}}{{!}}{{!}}{{{Quest|}}}{{!}}{{!}}{{{Effect|}}}{{!}}{{!}}{{{Effect_Amount|}}}{{!}}{{!}}{{{Duration_Range|}}}{{!}}{{!}}{{{Description|}}} | |||
|CityItems={{!}}- | |||
{{!}}[[{{{Itm}}}]]{{!}}{{!}}{{{Value}}}{{!}}{{!}}{{{Description|}}} | |||
|MobSub= | |MobSub= | ||
== {{{Mob}}} == | |||
{{#ifexist:File:{{{Icon}}}|[[File:{{{Icon}}}|200px|left]]}} | {{#ifexist:File:{{{Icon}}}|[[File:{{{Icon}}}|200px|left]]}} | ||
{{{ | {{{Long_Description|}}}{{#if:{{{Location|}}}|: | ||
===Locations=== | |||
{{columns |2| | {{columns |2| | ||
{{{Location}}} | {{{Location|}}}}}}}{{#if:{{{Quest|}}}|: | ||
}} | ===Quests=== | ||
}} | {{columns |2| | ||
{{{Quest|}}}}}}} | |||
{{{!}} class="wikitable sortable" style="text-align: center" | {{{!}} class="wikitable sortable" style="text-align: center" | ||
! '''Level L/H''' | ! '''Level L/H''' | ||
! '''Armor''' | ! '''Armor''' | ||
! '''HP''' | ! '''HP''' | ||
! '''Drops''' | |||
{{!}}- | |||
{{!}}{{{LevelL|}}}/{{{LevelH|}}}{{!}}{{!}}{{{Armor|}}}{{!}}{{!}}{{{HP|}}}{{!}}{{!}}{{{Drops|}}} | |||
{{!}}} | |||
{{{!}} class="wikitable sortable" style="text-align: center" | |||
! '''Damage''' | ! '''Damage''' | ||
! ''' | ! '''Extra Damage''' | ||
! ''' | ! '''Attack Spd''' | ||
! '''Critical''' | |||
! '''Resistances''' | |||
! '''Skills''' | |||
{{!}}- | {{!}}- | ||
{{!}}{{{ | {{!}}{{{Base_damage|}}}{{!}}{{!}}{{{Extra_damage|}}}{{!}}{{!}}{{{Attack_Speed|}}}{{!}}{{!}}{{{Critical|}}}{{!}}{{!}}{{{Resistances|}}}{{!}}{{!}}{{{Skills|}}} | ||
{{!}}} | {{!}}} | ||
---- | ---- | ||
|MobTbl= | |MobTbl= | ||
{{!}}- | {{!}}- | ||
{{!}}[[{{{ | {{!}}[[{{{Groups}}}#{{{Mob}}}{{!}}{{{Mob}}}]]{{!}}{{!}}{{{LevelL|}}}/{{{LevelH|}}}{{!}}{{!}}{{#if:{{{Groups|}}}|[[{{{Groups|}}}]]}}{{!}}{{!}}{{{Class|}}}{{!}}{{!}}{{{HP|}}}{{!}}{{!}}{{{Armor|}}}{{!}}{{!}}{{{DPS|}}}{{!}}{{!}}{{{Quest|}}}{{!}}{{!}}{{{Drops|}}} | ||
| | |npcTbl= | ||
{{!}}- | |||
{{!}}[[{{{npc}}}]]{{!}}{{!}}{{{Faction|}}}{{!}}{{!}}{{{Location1|}}}{{!}}{{!}}{{{Location2|}}}{{!}}{{!}}{{#if:{{{Quest|}}}|{{{Quest|}}}|{{{Actions|}}}}} | |||
|npcInv={{{Inventory|}}} | |||
|npcSel={{{{{{Step|}}}}}} | |||
|QstTbl= | |||
{{!}}- | {{!}}- | ||
{{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}Link={{{ | {{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}Link={{{Qst}}}]]|{{#ifexist: File:{{{Qst}}}.png|[[File:{{{Qst}}}.png{{!}}32x32px{{!}}Link={{{Qst}}}]]}}}} [[{{{Qst}}}]]{{!}}{{!}}{{{LocStart}}}{{!}}{{!}}{{{Giver}}}{{!}}{{!}}{{{Completable}}}{{!}}{{!}}{{{Outcome1}}}{{!}}{{!}}{{{Reputation1}}}{{!}}{{!}}{{{Reward1}}}{{!}}{{!}}{{{Outcome2}}}{{!}}{{!}}{{{Reputation2|}}}{{!}}{{!}}{{{Reward2|}}}{{!}}{{!}}{{{Outcome3|}}}{{!}}{{!}}{{{Reputation3}}}{{!}}{{!}}{{{Reward3|}}} | ||
|SkillSubA= | |SkillSubA= | ||
{{!}}- | {{!}}- | ||
Line 113: | Line 105: | ||
{{!}}- | {{!}}- | ||
{{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}link={{{Skill}}}]]}} [[{{{Skill}}}]]{{!}}{{!}}{{{EffectSummary}}}{{!}}{{!}}{{{CostSummary}}}{{!}}{{!}}{{{CooldownSummary|}}}{{!}}{{!}}{{{Description}}} | {{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}link={{{Skill}}}]]}} [[{{{Skill}}}]]{{!}}{{!}}{{{EffectSummary}}}{{!}}{{!}}{{{CostSummary}}}{{!}}{{!}}{{{CooldownSummary|}}}{{!}}{{!}}{{{Description}}} | ||
| | |SkillSubC= | ||
{{!}}- | |||
{{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}link={{{Skill}}}]]}} [[{{{Skill}}}]]{{!}}{{!}}{{{EffectSummary}}}{{!}}{{!}}{{{CostSummary}}}{{!}}{{!}}{{{CooldownSummary|}}}{{!}}{{!}}{{{ManaCostSummary}}}{{!}}{{!}}{{{Description}}} | |||
|SkillTbl= | |||
{{!}}- | |||
{{!}}{{#ifexist: File:{{{Icon}}} |[[File:{{{Icon}}}{{!}}32x32px{{!}}Link={{{Skill}}}]]}} [[{{{Skill}}}]]{{!}}{{!}}{{{CWar}}}{{!}}{{!}}{{{CRog}}}{{!}}{{!}}{{{CCle}}}{{!}}{{!}}{{{Gen}}}{{!}}{{!}}{{{Adv}}}{{!}}{{!}}{{{EffectSummary}}}{{!}}{{!}}{{{CostSummary}}}{{!}}{{!}}{{{CooldownSummary|}}}{{!}}{{!}}{{{ManaCostSummary|}}}{{!}}{{!}}{{{Prerequisite|}}}{{!}}{{!}}{{{Description}}} | |||
|WpnCityTbl={{!}}- | |||
{{!}}[[{{{Wpn}}}]]{{!}}{{!}}{{{Cost|}}}{{!}}{{!}}<code>{{{Type}}}</code> <code>DMG: {{{Min}}}-{{{Max}}}{{#if:{{{Element|}}}|, +{{{Elem_Dam}}} {{{Element}}}}}</code> <code>Spd: {{{Speed}}}</code> <code>Crit: {{{Crit}}}%</code> {{#if:{{{Attribute|}}}| <code>{{{Attribute}}}</code> }} | |||
|WpnCityTblx= | |||
<tr> | |||
<td>[[{{{Wpn}}}]]</td> | |||
<td>{{{Cost|}}}</td> | |||
<td><code>{{{Type}}}</code> <code>DMG: {{{Min}}}-{{{Max}}}{{#if:{{{Element|}}}|, +{{{Elem_Dam}}} {{{Element}}}}}</code> <code>Spd: {{{Speed}}}</code> <code>Crit: {{{Crit}}}%</code> {{#if:{{{Attribute|}}}| <code>{{{Attribute}}}</code> }}</td> | |||
</tr> | |||
|WpnSub= | |||
{{!}}- | |||
{{!}}[[File:{{{Icon}}}{{!}}64px{{!}}link={{{Wpn}}}]]{{!}}{{!}}[[{{{Wpn}}}]]{{!}}{{!}}{{{Class}}}{{!}}{{!}}{{{Category}}}{{!}}{{!}}{{{Min}}}{{!}}{{!}}{{{Max}}}{{!}}{{!}}{{{Speed}}}{{!}}{{!}}{{{Crit}}}{{!}}{{!}}{{{Attribute}}}{{!}}{{!}}{{{Element}}} {{{Elem_Dam}}} | |||
|WpnTbl= | |||
{{!}}- | |||
{{!}}[[{{{Wpn}}}]]{{!}}{{!}}{{{Groups|}}}{{!}}{{!}}{{{Type}}}{{!}}{{!}}{{{CWar|}}}{{!}}{{!}}{{{CRog|}}}{{!}}{{!}}{{{CCle|}}}{{!}}{{!}}{{{Min}}}{{!}}{{!}}{{{Max}}}{{!}}{{!}}{{{Speed}}}{{!}}{{!}}{{{Crit}}}{{!}}{{!}}{{{Attribute|}}}{{!}}{{!}}{{{Element|}}}{{!}}{{!}}{{{Elem_Dam|}}}{{!}}{{!}}{{{Description|}}} | |||
}} | }} |
Latest revision as of 23:37, 17 December 2016
AreabyName
AreaTbl
{{AreabyName|areaname|AreaTbl}}
ArmorbyName
ArmSub
{{ArmorbyName|armorname|ArmSub}}
ArmTbl
{{ArmorbyName|armorname|ArmTbl}}
ArmCityTbl
{{ArmorbyName|armorname|ArmCityTbl}}
ArmCityTblx
{{ArmorbyName|armorname|ArmCityTblx}}
General Use
genSel
Select an individual field from any byName db
{{..byName|..name|genSel|Output-Format|..FieldName}}
ItembyName
ItmSub
{{ItembyName|itemname|ItmSub}}
ItmTbl
{{ItembyName|itemname|ItmTbl}}
CityItems
{{ItembyName|itemname|CityItems}}
ItmCityTbl
{{ItembyName|itemname|ItmCityTbl}}
ItmCityTblx
{{ItembyName|itemname|ItmCityTblx}}
ItmSubx
{{ItembyName|itemname|ItmSubx}}
MobbyName
MobSub
For filling out an individual mob section in the mob sub template
{{MobbyName|mobname|MobSub}}
MobTbl
{{MobbyName|mobname|MobTbl}}
NPCbyName
npcTbl
{{NPCbyName|npcname|npcTbl}}
npcInv
Posts only what npc sells
{{NPCbyName|npcname|npcInv}}
QuestbyName
QstTbl
{{QuestbyName|questname|QstTbl}}
SkillbyName
SkillIndv
{{SkillbyName|skillname|SkillIndv}}
SkillSubA
Advanced Skills
{{SkillbyName|skillname|SkillSubA}}
SkillSubC
Class skills
{{SkillbyName|skillname|SkillSubC}}
SkillSubG
General Skills
{{SkillbyName|skillname|SkillSubG}}
SkillTbl
{{SkillbyName|skillname|SkillTbl}}
WeaponbyName
WpnSub
{{WeaponbyName|weaponname|WpnSub}}
WpnTbl
{{WeaponbyName|weaponname|WpnTbl}}
WpnCityTbl
{{WeaponbyName|weaponname|WpnCityTbl}}
WpnCityTblx
{{WeaponbyName|weaponname|WpnCityTblx}}
Entry Setup
Entries are going to be used from a byName db and generally only want the table filling portion here.
The more elaborate setups should go in the ..Sub pages.
|..AreausedForwhat=
ArmCityTbl = Armor - City Pages - merchant Table
{{!}} {{!}} {{{First item}}} {{!}}{{!}} {{{Second}}}
You'll have to know the table layout before making the entries and reference the ..byName field names to get the data you want