Template:IncidentsForAgent: Difference between revisions

No edit summary
Undo revision 4144 by Heeladams (talk)
Tag: Undo
 
(3 intermediate revisions by the same user not shown)
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, without using DynamicPageList3.


Usage:
Usage on an agent page:
  {{IncidentsForAgent}}                 – use the current page
 
  {{IncidentsForAgent|Agent:David_Kim}} specify an agent page explicitly
    == Documented Incidents ==
</noinclude>
    ''This list updates automatically when incident pages link to this agent.''
<includeonly>
 
{{#dpl:
    {{IncidentsForAgent}}             <!-- uses the current page -->
| namespace          = Incident
    or
| linksto            = {{{1|{{FULLPAGENAME}}}}}
    {{IncidentsForAgent|Agent:David_Kim}} <!-- specify page explicitly -->
| allowcachedresults = true
 
| ordermethod        = lastedit
This template simply links to the built–in
| order              = descending
[[Special:WhatLinksHere]] page for the agent.
| mode              = unordered
</noinclude><includeonly>
| noresultsheader    = ''No incidents have been linked to this agent yet.''
<div class="agent-incidents-list" style="margin:0.5em 0 0.2em 0;">
}}
* [[Special:WhatLinksHere/{{{1|{{FULLPAGENAME}}}}}|Browse incident pages that link to this agent]]
</div>
</includeonly>
</includeonly>