Grand Exchange Market Watch/Documentation
- 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.
Introduction[muokkaa | muokkaa wikitekstiä]
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.
Example[muokkaa | muokkaa wikitekstiä]
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 '40 800' coins.
- Grand Exchange Market Watch/Farming - click edit Ranarr seed
- Exchange:Ranarr seed - update price and date
- which changes {{GEPrice|Ranarr seed}} = 40 800
- as well as {{GEItem|Ranarr seed}} = Malline:GEHeader
| width=300 align=left | Ranarr seed | 40 800
|
| 7 | 11 | | style="white-space:nowrap; font-size:85%" | view • • graph | 5631 | 12:03, 1 December 2009 (UTC) |-
|}
GEMW templates used[muokkaa | muokkaa wikitekstiä]
- Template:ExchangeItem is the key foundation template for GEMW
- Template:ExcgDefault - organizes what gets displayed on the "exchange" pages when viewed
- Template:ExcgTable - organizes data on each line for each piece of the GEMW data
- Template:GEItem
- Template:GEPrice - returns just the price of the item from the GE
- Template:GEIcon
- Template:GEMWHelp
Other templates:
- Template:! - a work around for allowing templates to create the pipe character --> | <--
Item article templates affected[muokkaa | muokkaa wikitekstiä]
Enhancements[muokkaa | muokkaa wikitekstiä]
Market Indexes[muokkaa | muokkaa wikitekstiä]
Price direction arrows[muokkaa | muokkaa wikitekstiä]
History graphs[muokkaa | muokkaa wikitekstiä]
Draft - Talk:Grand_Exchange_Market_Watch#History_Graphs
draft - User_talk:Robert_Horning#Price_History_Charts
Edit help[muokkaa | muokkaa wikitekstiä]
Applications beyond GEMW[muokkaa | muokkaa wikitekstiä]
- 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.
Technical issues[muokkaa | muokkaa wikitekstiä]
Template expansion limit[muokkaa | muokkaa wikitekstiä]
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
Common errors/Troubleshooting[muokkaa | muokkaa wikitekstiä]
draft - Talk:Grand_Exchange_Market_Watch/Archive_1#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.