User:Chrislee33/Infobox exchange

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search

Coding[edit | edit source]

The program code for gemw is in Template:Infobox Item. <pre> {{#ifeq: {{lc:{{{tradable|yes}}} }} | no | {{!}}- |{{!}}- !nowrap="nowrap"{{!}}[[Prices#Grand Exchange Price{{!}}Exchange price]] {{!}} {{#if:{{{exchange|}}} |{{ {{#ifeq:{{lc:{{{exchange|}}} }} | gemw | GEPrice | empty }}|{{PAGENAME}}}} {{#ifeq:{{lc:{{{exchange|}}} }}|gemw| coins <small>[{{fullurl:Exchange:{{PAGENAME}}|action=edit&editintro=GEMW\Edithelp}} update]</small>| {{{exchange}}} coins }} |Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} </pre> {| class="wikitable infobox plainlinks" style="width:30%; align:right; text-align:center;" |+ '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}''' |- !nowrap="nowrap"|[[Tradable]]? | {{#if:{{{tradable|}}}|{{{tradable}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} {{#ifeq: {{lc:{{{tradable|yes}}}}} | no | {{!}}- | {{!}}- !nowrap="nowrap"{{!}}[[Prices#Grand Exchange Price{{!}}Exchange price]] {{!}} {{#if:{{{exchange|}}}|{{{{#ifeq:{{lc:{{{exchange|}}}}} | gemw | GEPrice | empty }}|{{PAGENAME}}}}{{#ifeq:{{lc:{{{exchange|}}}}}|gemw| coins <small>[{{fullurl:Exchange:{{PAGENAME}}|action=edit&editintro=GEMW\Edithelp}} update]</small>|{{{exchange}}} coins }}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} {{!}}- }} |} {{Infobox exchange test | name = |header=Not tradable | tradable = No | exchange = }} {{Infobox exchange test | name = |header=Using 1200 | tradable = Yes | exchange = 1200 }} {{Infobox exchange test | name = |header=Using template GEPrice | tradable = Yes | exchange = {{GEPrice|Bones}} }} {{Infobox exchange test | name = |header= Using template GEPriceUpdate | tradable = Yes | exchange = {{GEPriceUpdate|Bones}} }} {{Infobox exchange test | name = |header=Using template GEPrice and Exchange Bones with action=edit | tradable = Yes | exchange = {{GEPrice|Bones}} <small>[{{fullurl:Exchange:Bones|action=edit}} update]</small> }} {{Infobox exchange test | name = Bones |header=Using gemw | tradable = Yes | exchange = gemw }} To view the actual coding, edit Template:Infobox Item.