Heroes Wiki:Sandbox: Difference between revisions
imported>MiamiVolts No edit summary |
imported>MiamiVolts Example |
||
| Line 7: | Line 7: | ||
{{#sub: {{#replace:{{#dpl:|category=Issues|uses=Template:Graphic Novel sidebar|ordermethod=firstedit|include={Graphic Novel sidebar}:artby|includematch=/Jason Badower/|mode=inline|inlinetext=,  }}|[[Jason Badower]]|}}|9}} |
{{#sub: {{#replace:{{#dpl:|category=Issues|uses=Template:Graphic Novel sidebar|ordermethod=firstedit|include={Graphic Novel sidebar}:artby|includematch=/Jason Badower/|mode=inline|inlinetext=,  }}|[[Jason Badower]]|}}|9}} |
||
This is the original Hardvice got working, but using a fake template |
This is the original Hardvice got working, but using a fake template. |
||
{{#dpl:|category=Issues|uses=Template:Graphic Novel sidebar|ordermethod=firstedit|include={Graphic Novel sidebar} dpl2|includematch=/artby[^{{pipe}}]*Jason Badower/|format=,,,|}} |
{{#dpl:|category=Issues|uses=Template:Graphic Novel sidebar|ordermethod=firstedit|include={Graphic Novel sidebar} dpl2|includematch=/artby[^{{pipe}}]*Jason Badower/|format=,,,|}} |
||
This is a version using my template that uses sub to strip the search term. |
|||
{{User:MiamiVolts/DPLSearch|result={{#dpl:|category=Issues|uses=Template:Graphic Novel sidebar|ordermethod=firstedit|include={Graphic Novel sidebar}:artby|includematch=/artby[^{{pipe}}]*Jason Badower/|format=,* ''[[%TITLE%]]''\n,,|}}|search=[[Jason Badower]]}} |
|||
Revision as of 06:57, 19 December 2007
Art by Jason Badower
This method uses userformat mode, strips out the search and also trims off an extra comma and space from the end:
Extension:DynamicPageList3 (DPL3), version 3.6.1: Error: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect: The DynamicPageList3 extension (version 3.6.1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 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><
This method uses inline mode, strips out the search and also trims off an extra comma and space from the beginning:
ion:DynamicPageList3 (DPL3), version 3.6.1: Error: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect: The DynamicPageList3 extension (version 3.6.1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 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></code>
This is the original Hardvice got working, but using a fake template.
Extension:DynamicPageList3 (DPL3), version 3.6.1: Error: MediaWiki\Extension\DynamicPageList3\Query::buildAndSelect: The DynamicPageList3 extension (version 3.6.1) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList3 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></code>
This is a version using my template that uses sub to strip the search term. User:MiamiVolts/DPLSearch