Template:RNGItem: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="Infobox Detailbox Rarity-{{{rarity}}} RNG-Item">
<includeonly><infobox theme="RNG-Item" theme-source="rarity">
<tr><th class="Header">{{{name}}}</th></tr>
<title>
<tr><td class="HeaderImage">{{#ifexist:file:{{{name}}}_RNG.png|[[File:{{{name}}}_RNG.png{{!}}link=]]|[[File:{{{name}}}.png{{!}}link=]]}}</td></tr>
<default>{{{name}}}</default>
<tr><th class="SubHeader">Description</th></tr>
</title>
<tr><td>{{{desc}}}</td></tr>
<image>
<tr><th class="SubHeader">Increase per level</th></tr>
        <default>[[File:{{{name}}}.png]]</default>
<tr><td>{{{increment}}}</td></tr>
    </image>
<tr><th class="SubHeader">Unlock Requirement</th></tr>
    <header>Description</header>
<tr><td>{{#if:{{{achievement|}}}|Unlock this item by completing '[[Achievements|{{{achievement}}}]]' from {{{world}}}|Unlocked from the start}}</td></tr>
<data source="desc" />
</table></includeonly><noinclude>
    <header>Increase per level</header>
<pre>
<data source="increment" />
    <header>Unlock Requirement</header>
<data source="achievement">
        <format>Unlock this item by completing '[[Achievements|{{{achievement}}}]]' from {{{world}}}</format>
        <default>Unlocked from the start</default>
</data>
</infobox></includeonly><noinclude><pre>
{{RNGItem
{{RNGItem
|name=example
|name=example
Line 16: Line 22:
|increment=example
|increment=example
|achievement=what achievement unlocks this item, if unknown enter ???. If item is unlocked from the start, don't include this variable at all.
|achievement=what achievement unlocks this item, if unknown enter ???. If item is unlocked from the start, don't include this variable at all.
|world=Which world the achivement belongs to
|world=Which world the achievement belongs to
|maxlvl=example
|maxlvl=example
}}
}}
</pre>
</pre>[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 04:54, 27 February 2023

{{RNGItem
|name=example
|rarity=example (Common, Uncommon, Rare, Epic, Legendary)
|desc=example
|increment=example
|achievement=what achievement unlocks this item, if unknown enter ???. If item is unlocked from the start, don't include this variable at all.
|world=Which world the achievement belongs to
|maxlvl=example
}}