Template:StoreTableHead/Sandbox/doc: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1:
{{Documentation}}
{{invokes|StoreTableHead}}
 
The '''StoreTableHead''' template is to be used in conjunction with {{t|StoreLine}} provide a listing of items that are found in a shop. It also helps to provide a uniform look of how the shop information is presented for all articles about shop on the wiki.
 
==Usage==
<pre>{{StoreTableHead|sellmultiplierSellMultiplier=1300|buymultiplierBuyMultiplier=400|deltaDelta=30}}
{{StoreLine|nameName=Pot|stockStock=5|restock=9962000}}
{{StoreLine|nameName=Jug|stockStock=2|restock=}}
{{StoreLine|nameName=Empty jug pack|stockStock=5|gemw=No|restock=10}}
{{StoreLine|nameName=Shears|stockStock=2|restock=10}}
{{StoreLine|nameName=Bucket|stockStock=3|restock=10}}
{{StoreLine|nameName=Empty bucket pack|stockStock=15|gemw=no|restock=10}}
{{StoreLine|nameName=Bowl|stockStock=2|restock=10}}
{{StoreLine|nameName=Pot|displaynameDisplayName=Another pot|stockStock=5|restock=10}}
{{StoreLine|nameName=Empty jug pack|stockStock=5|gemw=No|restock=10}}
{{StoreLine|nameName=Fletching cape|stockStock=5|smwname=Fletching cape#Untrimmed|gemw=no|sellSell=99000|buy=N/A|restockBuy=N/A}}
{{StoreLine|name=Elven top (yellow)|stock=100|image=Elven top (white).png|restock=1}}
{{StoreTableBottom}}</pre>
 
Line 22 ⟶ 20:
 
{{StoreTableHead|sellmultiplier=1300|buymultiplier=400|delta=30}}
{{StoreLine|name=Pot|stock=5|restock=9962000}}
{{StoreLine|name=Jug|stock=2|restock=}}
{{StoreLine|name=Empty jug pack|stock=5|gemw=No|restock=10}}
{{StoreLine|name=Shears|stock=2|restock=10}}
{{StoreLine|name=Bucket|stock=3|restock=10}}
{{StoreLine|name=Empty bucket pack|stock=15|gemw=no|restock=10}}
{{StoreLine|name=Bowl|stock=2|restock=10}}
{{StoreLine|name=Pot|displayname=Another pot|stock=5|restock=10}}
{{StoreLine|name=Empty jug pack|stock=5|gemw=No|restock=10}}
{{StoreLine|name=Fletching cape|stock=5|smwname=Fletching cape#Untrimmed|gemw=no|sell=99000|buy=N/A|restock=N/A}}
{{StoreLine|name=Elven top (yellow)|stock=100|image=Elven top (white).png|restock=1}}
{{StoreTableBottom}}
 
==Parameters==
*'''sellmultiplierSellMultiplier:''' the store's sell markup
*'''buymultiplierBuyMultiplier:''' the store's buy margin
*'''deltaDelta:''' the store's price change for over/understocking
 
===Optional===
*'''namenotesNameNotes:''' additional text information for autogenerated store lists (e.g. Karamja gloves or Pisc favour)
*'''currencyCurrency:''' defaults to "Coins"
*'''smw:''' set to "Nono" to prevent indexing of this table into {{t|Store locations list}}. Use this to prevent duplicates (e.g. the store is shown on the store page AND the npc page)
*'''hideimagehideGE''' set to "yes" to hide the imageGE column, for(if examplenone forof storesthe thatitems sellare thingstradeable thaton don'tGE) necessarily- haveyou astill fittingneed iconto (e.g.set abstractgemw=yes unlocksfor orthe abilities)StoreLine template
*'''hidegehideBuy''' set to "yes" to hide the GEBuy price column (if none of the items are tradeable on GE) - you still need to set gemwBuy=yesN/A for the StoreLine template
*'''hidebuy''' set to "yes" to hide the Buy price column (if none of the items are tradeable on GE) - you still need to set Buy=N/A for the StoreLine template
*'''hidestock''' set to "yes" to hide the Stock column (useful for minigame and dialogue shops where everything has infinite stock)
*'''hiderestock''' set to "yes" to hide the restock time column
*'''hidecaption''' set to "yes" to hide the table caption
*'''column1:''' Add an additional column with this as contents
*'''column2:''' Add an additional column with this as contents
Line 58 ⟶ 51:
*[[Template:GEHeader]]
 
<includeonly>[[Category:Table templates]][[Category:Store table templates]]</includeonly>