Template:IncidentsForAgent: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
Lists incident pages that link to a given agent page.
Lists incident pages that link to a given agent page.
Usage (inside agent page): {{IncidentsForAgent}}
 
Optional: {{IncidentsForAgent|Agent:John Doe}}
Usage:
Requires: DynamicPageList / DynamicPageList3.
  {{IncidentsForAgent}}                 – use the current page
</noinclude><includeonly>
  {{IncidentsForAgent|Agent:David_Kim}} – specify an agent page explicitly
<DynamicPageList>
</noinclude>
namespace   = Main
<includeonly>
category    = Incidents
{{#dpl:
linksto     = {{{1|{{PAGENAME}}}}}
| namespace         = Incident
ordermethod = lastedit
| linksto           = {{{1|{{FULLPAGENAME}}}}}
order       = descending
| allowcachedresults = true
count        = 50
| ordermethod       = lastedit
suppresserrors = true
| order             = descending
</DynamicPageList>
| mode              = unordered
| noresultsheader    = ''No incidents have been linked to this agent yet.''
}}
</includeonly>
</includeonly>