Template:InfoSkill: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
(Created page with "<div class="Infobox"> <div class="Header">{{PAGENAME}}</div> <div class="HeaderImage" style="padding:2px 0 0">[[File:{{PAGENAME}}_Banner.png]]</div> <div class="SubHeader">Skill Info</div> <dl> <dt>Attack</dt> <dd>{{{attack}}}</dd> <dt>Health</dt> <dd>{{{health}}}</dd> <dt>Speed</dt> <dd>{{{speed}}}</dd> <dt>Experience</dt> <dd>{{{exp}}}</dd> </dl> <div class="SubHeader">Fighting</div> <dl> {{#if: {{{class|}}} | <dt>Class</dt> <dd>[[File:{{{class}}} Classicon.png|24px]]&...")
 
mNo edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="Infobox">
<includeonly><infobox theme="skillinfo">
<div class="Header">{{PAGENAME}}</div>
<title>
<div class="HeaderImage" style="padding:2px 0 0">[[File:{{PAGENAME}}_Banner.png]]</div>
<default>[[File:{{PAGENAME}} Skill Icon.png|30px|link=]] {{PAGENAME}}</default>
<div class="SubHeader">Skill Info</div>
</title>
<dl>
<image>
<dt>Attack</dt>
        <default>[[File:{{PAGENAME}}_Banner.png]]</default>
<dd>{{{attack}}}</dd>
    </image>
<dt>Health</dt>
    <header>Skill Info</header>
<dd>{{{health}}}</dd>
<data source="class">
<dt>Speed</dt>
<label>Class</label>
<dd>{{{speed}}}</dd>
        <format>{{ClassIcon|{{{class}}}|y}}</format>
<dt>Experience</dt>
</data>
<dd>{{{exp}}}</dd>
<data source="stat">
</dl>
<label>Main Stat</label>
<div class="SubHeader">Fighting</div>
        <format>{{StatIcon|{{{stat}}}}}</format>
<dl>
</data>
{{#if: {{{class|}}} |
<data source="tool">
<dt>Class</dt>
<label>Tool</label>
<dd>[[File:{{{class}}} Classicon.png|24px]]&nbsp;[[{{{class}}}]]</dd>
        <format>[[File:{{{toolicon}}}.png|24px|link=#{{{tool}}}]]&nbsp;[[#{{{tool}}}|{{{tool}}}]]</format>
}}
</data>
{{#if: {{{stat|}}} |
<data source="type">
<dt>Main Stat</dt>
<label>Skill Type</label>
<dd>[[File:{{{statname}}}.png|24px]]&nbsp;[[{{{stat}}}]]</dd>
</data>
}}
    <data source="world">
{{#if: {{{tool|}}} |
<label>World</label>
<dt>Tool</dt>
        <format>[[Worlds#{{{world|}}}|{{{world|}}}]]</format>
<dd>[[File:{{{toolname}}}.png|24px]]&nbsp;[[#{{{tool}}}|{{{tool}}}]]</dd>
</data>
}}
    <data source="subpages">
<dt>Skill Type</dt>
<label>Subpages</label>
<dd>{{{tool|}}}</dd>
        <format>{{Special:PrefixIndex/{{PAGENAME}}/|stripprefix=yes}}</format>
<dt>World</dt>
</data>
<dd>{{{world}}}</dd>
</infobox>[[Category:Skills]][[Category:{{PAGENAME}}]]</includeonly><noinclude>
{{#if: {{{subpages|}}} |
<pre>{{InfoSkill
<dt>Subpages</dt>
|class=class (optional)
<dd>{{Special:PrefixIndex/{{PAGENAME}}/|stripprefix=yes}}</dd>
|stat=stat (optional)
}}
|tool=tool type (optional)
</dl>
|toolicon=tool
{{#if: {{{hascard|}}} | {{#cargo_query:tables=Cards
|type=type (required)
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
|world=world (required)
|where= Title LIKE "{{PAGENAME}}" OR Title LIKE "{{PAGENAME}} Card"
|subpages=yes (optional)
|format=template
}}</pre>
|template=InfoCard/boxrow
[[Category:Infobox templates]]</noinclude>
|named args=yes
|default=
}}
}}
</div><noinclude>[[Category:Infobox templates]]</noinclude>

Latest revision as of 03:17, 4 March 2023

{{InfoSkill
|class=class (optional)
|stat=stat (optional)
|tool=tool type (optional)
|toolicon=tool
|type=type (required)
|world=world (required)
|subpages=yes (optional)
}}