User:A morris/sandbox: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
imported>A morris
imported>A morris
Line 1: Line 1:
== Buy types ==
== Buy types ==
{{t|Object}}
buy = Yes/No
<dpl>
<dpl>
uses=Template:Object
uses=Template:Object
include={object}:buy
include={object}:buy
namespace=
includematch=/\|\s*buy\s*=\s*[Yy]es/s
includematch=/\|\s*buy\s*=\s*[Nn]o/s
table= class="wikitable sortable",Object,Buy type
resultsheader=\nNumber of objects = %PAGES%\n
noresultsheader= \nNo matching objects found.\n
allowcachedresults=true
allowcachedresults=true
</dpl>
buy /= value in {{t|GetObjectCats}} ("Buy mode", additional regexp for includenotmatch not working)

<dpl>
uses=Template:Object
include={object}:buy
namespace=
namespace=
includenotmatch=/\|\s*buy\s*=\s*[Bb]uy [Mm]ode/s,/\|\s*buy\s*=\s*[Bb]uild [Mm]ode/s,/\|\s*buy\s*=\s*[Cc]ommunity [Ll]ot/s,/\|\s*buy\s*=\s*[Ll]imited/s,/\|\s*buy\s*=\s*[Ee]dit [Tt]own [Mm]ode/s,/\|\s*buy\s*=\s*[Aa]ward/s
table= class="wikitable sortable",Object,Buy type
resultsheader=\nNumber of objects = %PAGES%\n
noresultsheader= \nNo matching objects found.\n
allowcachedresults=true
</dpl>
</dpl>