Gamepedia Help Wiki
Register
Advertisement

IncludeMatch Not Working

I'm trying to match

{{Tag|CommonGround}}


Regarding [https://help.gamepedia.com/DPL:Parameters:_Criteria_for_Page_Selection#includematch this syntax], the DPL statement<pre>
{{#dpl: 
    noresultsheader=  
    |uses=Template:Tag
    |includematch=/\|CommonGround/
}}

returns:

Extension:DynamicPageList (DPL), version 3.1.3: Warning: No parameter option supplied for 'CommonGround/'. (Missing '=')


Extension:DynamicPageList (DPL), version 3.1.3: Warning: Skipping bad option '/\' for parameter 'includematch'.

This DPL statement:

{{#dpl: 
    noresultsheader=  
    |uses=Template:Tag
    |includematch=/\|\s*CommonGround/s
}}

returns this error:

Extension:DynamicPageList (DPL), version 3.1.3: Warning: No parameter option supplied for '\s*CommonGround/s'. (Missing '=')


Extension:DynamicPageList (DPL), version 3.1.3: Warning: Skipping bad option '/\' for parameter 'includematch'.

What am i doing wrong?

Calling Multiple Templates with same parameters?

Hello,

I'm trying to create a workaround while we transition some templates, so that a few of our DPL lists will still display data from affected pages.

Basically, what I'm working with is as follows:

{{#dpl: debug=1
|category=3.5e
|category=User
|category=Deity
|category=Hero
|notcategory=Abandoned
|notcategory=Candidates for Deletion
|notcategory=Formatting Issues
|notcategory=Needs Balance
|notcategory=Stub
|notcategory=Wording Issues
|notcategory=Pantheon
|notcategory=Salient Ability
|notcategory=NPC
|notcategory=Uncategorized
|include={Deity}:align:port:favweap,{3.5e Deity}:align:port:favweap
|format=,¦- class="²{Odd-Even¦²{var:odd}²}²"\n¦ [[%PAGE%¦²{#replace:%PAGE%¦(3.5e Deity)¦}²]],\n,
|tablerow=¦¦%%,%%\n
}}|}

What I'm trying to achieve is related to the |Include Parameter. I need to be able to pull both templates, "Deity" and "3.5e Deity", and have their contents placed into the table in the same cells. They include the same parameters, and when using only one template, the table works flawlessly. The above example, however, pulls both templates information, but places the latter's in different cells stretching off the end of the established table.

Is there a way to use both templates? 207.130.206.10 16:01, 30 July 2015 (UTC)

Multiple 'category' parameters

The following is a service for those who have been scratching their heads over this effect as well. The (IMHO) bug is already reported.

It seems the semantics of multiple OR-combining category parameters being combined via "AND" is somehow broken. The following DPL should select pages from categories "DPL" or "Guides" that are also in categories "DPL Manual" or "Editing". Guides and Editing don't seem to share any pages with each other or the DPL/DPL Manual categories. They merely serve as "null operands" to use the OR separator. The DPL and DPL Manual categories have only a few pages in common, which I'd expect to be listed.

Instead, all pages from all four categories are listed:

{#dpl:
|category=DPL¦Guides
|category=DPL Manual¦Editing
}

For reference, same query without the "null operand" categories:

{#dpl:
|category=DPL
|category=DPL Manual
}


...and with only one "null operand" category:

{#dpl:
|category=DPL¦Guides
|category=DPL Manual
}


--Wormbo 11:01, 9 August 2015 (UTC)

Advertisement