Template:Regional Goods: Difference between revisions

From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude>{{#dpl: | category={{{1}}}/Regional Goods | skipthispage=no | include={Used In}:resale price | table=class="{{#if:{{{insert|}}}|inserted-table|horizon-table npc-table table-sm}} {{{cssclasses|}}}"{{#if:{{{insert|}}}||,Item,Price}} }} </onlyinclude></includeonly> == Usage == Template that allows to display the goods from Category:Regional Merchants. *First parameter is mandatory and is the '''Region''' *Optional parameter ''insert'' can be...")
 
mNo edit summary
Line 2: Line 2:
| category={{{1}}}/Regional Goods
| category={{{1}}}/Regional Goods
| skipthispage=no
| skipthispage=no
| include={Used In}:resale price
| include={Used In¦Regional Goods.dpl}
| table=class="{{#if:{{{insert|}}}|inserted-table|horizon-table npc-table table-sm}} {{{cssclasses|}}}"{{#if:{{{insert|}}}||,Item,Price}}
| table=class="{{#if:{{{insert|}}}|inserted-table|horizon-table npc-table table-sm}} {{{cssclasses|}}}"{{#if:{{{insert|}}}||,Item,Price}}
}}
}}
Line 8: Line 8:
== Usage ==
== Usage ==
Template that allows to display the goods from [[:Category:Regional Merchants]].  
Template that allows to display the goods from [[:Category:Regional Merchants]].  
For details on the row formatting, look into the dpl phantom template [[Template:Regional Goods.dpl]]


*First parameter is mandatory and is the '''Region'''
*First parameter is mandatory and is the '''Region'''

Revision as of 11:16, 22 August 2024

Usage

Template that allows to display the goods from Category:Regional Merchants.

For details on the row formatting, look into the dpl phantom template Template:Regional Goods.dpl

  • First parameter is mandatory and is the Region
  • Optional parameter insert can be specified to format the table without headings and a surrounding box so it can fit into a table cell.
  • Optional parameter cssclasses can be used to specify further css classes to format the table.

Examples

Usage as ordinary table

{{Regional Goods|Elshimo Uplands}}
Item Price
Rattan Lumber 40~41 gil
Cinnamon 51~53 gil
Cattleya 291~306 gil
Pamamas ~20 gil


Usage as inserted table into a surrounding table

{| class="horizon-table npc-table table-sm"
! Goods
|-
| {{Regional Goods|Elshimo Uplands|insert=true}}
|}
Goods
Rattan Lumber 40~41 gil
Cinnamon 51~53 gil
Cattleya 291~306 gil
Pamamas ~20 gil