Template:Regional Goods: Difference between revisions
imported>Aramachus 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..." |
imported>Aramachus mNo edit summary |
||
| Line 2: | Line 2: | ||
| category={{{1}}}/Regional Goods |
| category={{{1}}}/Regional Goods |
||
| skipthispage=no |
| skipthispage=no |
||
| include={Used In |
| 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}}
Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Regional_Goods: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'cl1.cl_to' in 'ON' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Regional_Goods Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Elshimo_Uplands/Regional_Goods'))) WHERE p.page_is_redirect = 0 LIMIT 500 </code>
Usage as inserted table into a surrounding table
{| class="horizon-table npc-table table-sm"
! Goods
|-
| {{Regional Goods|Elshimo Uplands|insert=true}}
|}
| Goods |
|---|
Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Regional_Goods: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'cl1.cl_to' in 'ON' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Regional_Goods Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Elshimo_Uplands/Regional_Goods'))) WHERE p.page_is_redirect = 0 LIMIT 500 </code> |