Template:RNGItem: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
mNo edit summary
 
(43 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><table class="Infobox" style="max-width:25%;float:left;border-color:{{{rarity}}}"><tr><th colspan="4" style="text-align:center;">{{{name}}}</th></tr>
<includeonly><infobox theme="RNG-Item" theme-source="rarity">
<tr><td colspan="4" style="text-align:center">[[File:{{{name}}}.png|25px]]</td></tr>
<title>
<tr><th style="text-align:center;" colspan="4">Stats</th></tr>
<default>{{{name}}}</default>
<tr><th>Bonus</th><td colspan="3">{{{bonus}}}</td></tr>
</title>
<tr><th>Unlock Requirement</th></tr>
<image>
<tr><td>Unlocked {{#if:{{{Achievement|}}}|by completing [[Achievements|{{{Achievement}}}]]|from the start}}</td></tr>
        <default>[[File:{{{name}}}.png]]</default>
</table></includeonly><noinclude>
    </image>
<pre>
    <header>Description</header>
Name: str
<data source="desc" />
Bonus: str
    <header>Increase per level</header>
Increment: float
<data source="increment" />
Rarity: Str
    <header>Unlock Requirement</header>
desc: str
<data source="achievement">
lvltext: str
        <format>Unlock this item by completing '[[Achievements|{{{achievement}}}]]' from {{{world}}}</format>
basevalue: float
        <default>Unlocked from the start</default>
maxlevel: int
</data>
</pre>
</infobox></includeonly><noinclude><pre>
{{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
}}
</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
}}