Template:IncidentsForAgent: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:
Lists incident pages that link to a given agent page.
Lists incident pages that link to a given agent page.


Usage:
Usage on an agent page:
  {{IncidentsForAgent}}                 – use the current page
    {{IncidentsForAgent}}             <!-- uses the current page -->
  {{IncidentsForAgent|Agent:David_Kim}} – specify an agent page explicitly
or
</noinclude>
    {{IncidentsForAgent|Agent:David_Kim}} <!-- explicit page name -->
<includeonly>
 
This template uses DynamicPageList3 (#dpl) with the "linksto" parameter
and does *not* use any regex parameters.
</noinclude><includeonly>
{{#dpl:
{{#dpl:
  | namespace         = Incident
  | linksto         = {{{1|{{FULLPAGENAME}}}}}
| linksto            = {{{1|{{FULLPAGENAME}}}}}
  | ordermethod      = lastedit
  | allowcachedresults = true
  | order            = descending
  | ordermethod        = lastedit
| rows            = 50
  | order              = descending
  | includepage      =  
  | mode               = unordered
  | mode             = unordered
  | noresultsheader   = ''No incidents have been linked to this agent yet.''
  | noresultsheader = ''No incident pages are currently linked to this agent.''
}}
}}
</includeonly>
</includeonly>