Grand Exchange Market Watch/Documentation
From the RuneScape Wiki, the wiki for all things RuneScape
- For the article, see Grand Exchange Market Watch
The Grand Exchange Market Watch grew from a need to track trading prices of the Grand Exchange without having to update the prices in the multiple articles for the same item. This article provides the documentation and technical background for editors to understand the workings of the Grand Exchange Market Watch.
Contents |
[edit] Introduction
Transclusion (the use of the template functionality of MediaWiki to include the same content in multiple articles without having to edit those articles separately) is used in the Grand Exchange Market Watch for an item's average trading price.
By updating the price in only one article (e.g. Exchange:Ranarr seed), the new price will also appear in:
- Ranarr seed's article Infobox template - Exchange price
- one or more pages of the Grand Exchange Market Watch
- another article such as Vinesweeper's Making money section which compare the prices of several items
See Special:Whatlinkshere/Exchange:Ranarr seed for the linkages.
[edit] Example
Updating the price of Ranarr seeds in Grand Exchange Market Watch/Farming will update the changes in the article Ranarr seed automatically since the Ranarr seed Infobox Item parameter 'exchange = gemw' which calls 'Template:GEPrice|Ranarr seed' for the price, which currently is '22,700' coins.
- Grand Exchange Market Watch/Farming - click edit Ranarr seed
- Exchange:Ranarr seed - update price and date
- which changes {{GEPrice|Ranarr seed}} = 22,700
- as well as {{GEItem|Ranarr seed}} =
Image Item Price Direction L. Alch. H. Alch. Store Last updated Ranarr seed 22,700 
7 11 edit history 00:23, 21 July 2008 (UTC)
[edit] GEMW templates used
- Template:ExchangeItem is the key foundation template for GEMW
- Template:GEItem
- Template:GEPrice
- Template:GEPriceUpdateGuide
Other templates:
[edit] Item article templates affected
[edit] Enhancements
[edit] Market Indexes
[edit] Price direction arrows
[edit] History graphs
Draft - Talk:Grand_Exchange_Market_Watch#History_Graphs
draft - User_talk:Robert_Horning#Price_History_Charts
[edit] Edit help
Draft - Talk:Grand_Exchange_Market_Watch#Adding_.22edit_help.22_when_manually_editing_exchange_prices
[edit] Applications beyond GEMW
- Vinesweeper's Making money section which compare the prices of several items as well as coins per points
- Yew longbow Profit analysis table between Hi alch and GE
- Smithing making money section which compares various profitability factors in relation to ores and bars.
- Party hat duplication glitch comparing current partyhat prices to before the glitch.
- Calculators/Barbarian mixes - costs of making barbarian mixes including the profit per Herblore experience point.
[edit] Technical issues
[edit] Template expansion limit
There is a limit of 2,097,152 bytes allowed for template expansion. When this limit is exceeded, template expansion stops working, the rest of the page just shows errors from incomplete expansions. For example:
- (#ifexpr: 0 or 0)
- (Template:GEPrice)
The actual expansion errors are written in the article's "Page Source" (Browser: IE:View-->Source, Firefox: View-->Page Source) as hidden comments '...Template:GEItem ... WARNING: template omitted, pre-expand include size too large'.
Example: problem when adding too many black and white items on Grand_Exchange_Market_Watch/Melee [1].
View 'Page source' on browser and search on 'Pre-expand':
Pre-expand include size: 2096906 bytes
Post-expand include size: 581635 bytes
Template argument size: 276200 bytes
Maximum: 2097152 bytes
[edit] Common errors/Troubleshooting
draft - Talk:Grand_Exchange_Market_Watch#Snakeskin_showing_up_as_Snake_hide_and_Yak-hide_going_to_Exchange:Yak_hide need to simplify...
- Expression error: Unrecognised punctuation character "," appearing in Direction column - click on 'edit' to edit corresponding Exchange: article and remove comma from Price value.
