User:Rmkane/Template:Exp items: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Creating a multiple experience item template.)
 
(Fixing if-conditions.)
Line 1: Line 1:
<includeonly><onlyinclude>{{if empty|{{{1|}}}||{{User:Rmkane/Template:Exp item|{{{1}}}|{{{2}}}}}}}
<includeonly><onlyinclude>{{#if empty|{{{1|}}}||{{User:Rmkane/Template:Exp item|{{{1}}}|{{{2}}}}}}}
{{if empty|{{{3|}}}||{{User:Rmkane/Template:Exp item|{{{3}}}|{{{4}}}}}}}
{{#if empty|{{{3|}}}||{{User:Rmkane/Template:Exp item|{{{3}}}|{{{4}}}}}}}
{{if empty|{{{5|}}}||{{User:Rmkane/Template:Exp item|{{{5}}}|{{{6}}}}}}}
{{#if empty|{{{5|}}}||{{User:Rmkane/Template:Exp item|{{{5}}}|{{{6}}}}}}}
{{if empty|{{{7|}}}||{{User:Rmkane/Template:Exp item|{{{7}}}|{{{8}}}}}}}
{{#if empty|{{{7|}}}||{{User:Rmkane/Template:Exp item|{{{7}}}|{{{8}}}}}}}
{{if empty|{{{9|}}}||{{User:Rmkane/Template:Exp item|{{{9}}}|{{{10}}}}}}}
{{#if empty|{{{9|}}}||{{User:Rmkane/Template:Exp item|{{{9}}}|{{{10}}}}}}}
{{if empty|{{{11|}}}||{{User:Rmkane/Template:Exp item|{{{11}}}|{{{12}}}}}}}
{{#if empty|{{{11|}}}||{{User:Rmkane/Template:Exp item|{{{11}}}|{{{12}}}}}}}
{{if empty|{{{13|}}}||{{User:Rmkane/Template:Exp item|{{{13}}}|{{{14}}}}}}}
{{#if empty|{{{13|}}}||{{User:Rmkane/Template:Exp item|{{{13}}}|{{{14}}}}}}}
{{if empty|{{{15|}}}||{{User:Rmkane/Template:Exp item|{{{15}}}|{{{16}}}}}}}
{{#if empty|{{{15|}}}||{{User:Rmkane/Template:Exp item|{{{15}}}|{{{16}}}}}}}
{{if empty|{{{17|}}}||{{User:Rmkane/Template:Exp item|{{{17}}}|{{{18}}}}}}}
{{#if empty|{{{17|}}}||{{User:Rmkane/Template:Exp item|{{{17}}}|{{{18}}}}}}}
{{if empty|{{{19|}}}||{{User:Rmkane/Template:Exp item|{{{19}}}|{{{20}}}}}}}</onlyinclude></includeonly>
{{#if empty|{{{19|}}}||{{User:Rmkane/Template:Exp item|{{{19}}}|{{{20}}}}}}}</onlyinclude></includeonly>
<noinclude>{{User:Rmkane/Template:Exp_items/doc}}</noinclude>
<noinclude>{{User:Rmkane/Template:Exp_items/doc}}</noinclude>

Revision as of 00:39, 29 July 2016


Usage

{{Exp item| <name1> | <count1> | <name2>? | <count2>? | ... | <nameN> | <countN> }}

Parameters

name[]
Names of the items.
count[]
Number of that items.

Examples

Markup Result
{{Exp items|Poké Ball|1|Great Ball|5|Ultra Ball|10}} Poké Ball GO Poké Ball.png×1}}

{{#if empty|Great Ball||GO Great Ball.png×5}} {{#if empty|Ultra Ball||GO Ultra Ball.png×10}} {{#if empty|||[[File:GO {{{7}}}.png|24px|link={{{7}}}]]×{{{8}}}}} {{#if empty|||[[File:GO {{{9}}}.png|24px|link={{{9}}}]]×{{{10}}}}} {{#if empty|||[[File:GO {{{11}}}.png|24px|link={{{11}}}]]×{{{12}}}}} {{#if empty|||[[File:GO {{{13}}}.png|24px|link={{{13}}}]]×{{{14}}}}} {{#if empty|||[[File:GO {{{15}}}.png|24px|link={{{15}}}]]×{{{16}}}}} {{#if empty|||[[File:GO {{{17}}}.png|24px|link={{{17}}}]]×{{{18}}}}} {{#if empty|||[[File:GO {{{19}}}.png|24px|link={{{19}}}]]×{{{20}}}}}

{{Exp items|Potion|15|Super Potion|20|Hyper Potion|25|Max Potion|50}} Potion GO Potion.png×15}}

{{#if empty|Super Potion||GO Super Potion.png×20}} {{#if empty|Hyper Potion||GO Hyper Potion.png×25}} {{#if empty|Max Potion||GO Max Potion.png×50}} {{#if empty|||[[File:GO {{{9}}}.png|24px|link={{{9}}}]]×{{{10}}}}} {{#if empty|||[[File:GO {{{11}}}.png|24px|link={{{11}}}]]×{{{12}}}}} {{#if empty|||[[File:GO {{{13}}}.png|24px|link={{{13}}}]]×{{{14}}}}} {{#if empty|||[[File:GO {{{15}}}.png|24px|link={{{15}}}]]×{{{16}}}}} {{#if empty|||[[File:GO {{{17}}}.png|24px|link={{{17}}}]]×{{{18}}}}} {{#if empty|||[[File:GO {{{19}}}.png|24px|link={{{19}}}]]×{{{20}}}}}

{{Exp items|Revive|100|Max Revive|250}} Revive GO Revive.png×100}}

{{#if empty|Max Revive||GO Max Revive.png×250}} {{#if empty|||[[File:GO {{{5}}}.png|24px|link={{{5}}}]]×{{{6}}}}} {{#if empty|||[[File:GO {{{7}}}.png|24px|link={{{7}}}]]×{{{8}}}}} {{#if empty|||[[File:GO {{{9}}}.png|24px|link={{{9}}}]]×{{{10}}}}} {{#if empty|||[[File:GO {{{11}}}.png|24px|link={{{11}}}]]×{{{12}}}}} {{#if empty|||[[File:GO {{{13}}}.png|24px|link={{{13}}}]]×{{{14}}}}} {{#if empty|||[[File:GO {{{15}}}.png|24px|link={{{15}}}]]×{{{16}}}}} {{#if empty|||[[File:GO {{{17}}}.png|24px|link={{{17}}}]]×{{{18}}}}} {{#if empty|||[[File:GO {{{19}}}.png|24px|link={{{19}}}]]×{{{20}}}}}

{{Exp items|Razz Berry|500|Incense|1,000|Lucky Egg|1,500|Egg Incubator|5,000|Lure Module|10,000}} Razz Berry GO Razz Berry.png×500}}

{{#if empty|Incense||GO Incense.png×1,000}} {{#if empty|Lucky Egg||GO Lucky Egg.png×1,500}} {{#if empty|Egg Incubator||GO Egg Incubator.png×5,000}} {{#if empty|Lure Module||GO Lure Module.png×10,000}} {{#if empty|||[[File:GO {{{11}}}.png|24px|link={{{11}}}]]×{{{12}}}}} {{#if empty|||[[File:GO {{{13}}}.png|24px|link={{{13}}}]]×{{{14}}}}} {{#if empty|||[[File:GO {{{15}}}.png|24px|link={{{15}}}]]×{{{16}}}}} {{#if empty|||[[File:GO {{{17}}}.png|24px|link={{{17}}}]]×{{{18}}}}} {{#if empty|||[[File:GO {{{19}}}.png|24px|link={{{19}}}]]×{{{20}}}}}