Difference between revisions of "User:Caledor92/Sandbox2"
Jump to navigation
Jump to search
>Caledor92 |
>Caledor92 |
||
| Line 1: | Line 1: | ||
| − | {{ | + | <noinclude>{{doc}}[[Category:Templates]]<!-- |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | [[ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | + | // Cargo Declare |
| − | + | -->{{#cargo_declare: | |
| − | | | + | _table=Abilities |
| − | | | + | |Id=Integer |
| − | | | + | |GenericName=String |
| + | |Name=String | ||
| + | |Details=Wikitext (size=3000) | ||
| + | |AbilityIconName=String | ||
| + | |AbilityGroup=Integer | ||
| + | |PartyPowerWeight=Integer | ||
| + | |AbilityLimitedGroupId1=Integer | ||
| + | |AbilityLimitedGroupId2=Integer | ||
| + | |AbilityLimitedGroupId3=Integer | ||
| + | }}</noinclude><includeonly><!-- | ||
| + | |||
| + | // Storing values to Cargo Table | ||
| + | -->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#cargo_store: | ||
| + | _table=Abilities | ||
| + | |Id={{{Id|}}} | ||
| + | |GenericName={{{GenericName|}}} | ||
| + | |Name={{{Name|}}} | ||
| + | |Details={{{Details|}}} | ||
| + | |AbilityIconName={{#replace:{{{AbilityIconName|}}}| |_}} | ||
| + | |AbilityGroup={{{AbilityGroup|}}} | ||
| + | |PartyPowerWeight={{{PartyPowerWeight|}}} | ||
| + | |AbilityLimitedGroupId1={{{AbilityLimitedGroupId1|}}} | ||
| + | |AbilityLimitedGroupId2={{{AbilityLimitedGroupId2|0}}} | ||
| + | |AbilityLimitedGroupId3={{{AbilityLimitedGroupId3|0}}} | ||
| + | }} | ||
| + | | }}<!-- | ||
| + | |||
| + | // Template Display Content | ||
| + | --><div class="panel" style="margin:auto;max-width:800px"> | ||
| + | <div class="panel-heading">{{{Name|{{PAGENAME}}}}}</div> | ||
| + | <div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center"> | ||
| + | <div style="width:350px;text-align:center">{{#ifexist: File:{{{AbilityIconName|}}}.png | [[File:{{{AbilityIconName|}}}.png|60px]] | [[File:Unknown.png|160px|link=File:{{{AbilityIconName|}}}.png]] }}</div> | ||
| + | <div class="skill-levels skill-details" style="flex-grow:1;text-align:center"> | ||
| + | <p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p> | ||
| + | <div style="flex-grow:1;text-align:center"> | ||
| + | <div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Details|No details yet.}}}</div> | ||
| + | </div> | ||
| + | |||
| + | {{TermDescription|Might Value|{{{PartyPowerWeight|}}} }} | ||
| + | {{TermDescription|Generic Name|[[{{{GenericName|}}}]] }} | ||
| + | {{TermDescription|Wyrmprint Ability Cap|{{#cargo_query:tables=AbilityLimitedGroup|fields=AbilityLimitedText|where=Id="{{{AbilityLimitedGroupId1|}}}"|default=N/A}}}} | ||
| + | </div> | ||
| + | </div> | ||
| + | <div style="padding:1em;"> | ||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Adventurers With This Ability</p> | ||
| + | {{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11= "{{{Id|}}}" OR Abilities12= "{{{Id|}}}" OR Abilities13= "{{{Id|}}}" OR Abilities14= "{{{Id|}}}" OR Abilities21= "{{{Id|}}}" OR Abilities22= "{{{Id|}}}" OR Abilities23= "{{{Id|}}}" OR Abilities24= "{{{Id|}}}" OR Abilities31= "{{{Id|}}}" OR Abilities32= "{{{Id|}}}" OR Abilities33= "{{{Id|}}}" OR Abilities34= "{{{Id|}}}"|format=ul|group by=_pageName|default= | ||
| + | :''There are no adventurers with this ability.''|order by= ElementalTypeId ASC, WeaponTypeId ASC, Rarity DESC, Id DESC, FullName ASC}} | ||
| + | |||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Wyrmprints With This Ability</p> | ||
| + | {{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11= "{{{Id|}}}" OR Abilities12= "{{{Id|}}}" OR Abilities13= "{{{Id|}}}" OR Abilities21= "{{{Id|}}}" OR Abilities22= "{{{Id|}}}" OR Abilities23= "{{{Id|}}}" OR Abilities31= "{{{Id|}}}" OR Abilities32= "{{{Id|}}}" OR Abilities33= "{{{Id|}}}"|format=ul|group by=_pageName|default= | ||
| + | :''There are no wyrmprints with this ability.''|order by= Rarity DESC, ReleaseDate DESC, BaseId DESC}} | ||
| + | |||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Dragons With This Ability</p> | ||
| + | {{#cargo_query:tables=Dragons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11= "{{{Id|}}}" OR Abilities12= "{{{Id|}}}" OR Abilities21= "{{{Id|}}}" OR Abilities22= "{{{Id|}}}"|format=ul|group by=_pageName|default= | ||
| + | :''There are no dragons with this ability.''|order by= ElementalTypeId ASC, Rarity DESC, Id DESC, FullName ASC}} | ||
| + | |||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Weapons With This Ability</p> | ||
| + | {{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 01 ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Abilities11= "{{{Id|}}}" OR Abilities21= "{{{Id|}}}"|format=ul|group by=_pageName|default= | ||
| + | :''There are no weapons with this ability.''|order by= ElementalTypeId ASC, TypeId ASC, Rarity DESC, Id DESC, WeaponName ASC}} | ||
| + | |||
| + | [[Category:Abilities]][[Category:{{{GenericName|}}} Ability]]</includeonly> | ||
Revision as of 18:33, 20 October 2019
Error: #cargo_declare must be called from a template page.