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, without using DynamicPageList3.


Usage on an agent page:
Usage on an agent page:
    == Documented Incidents ==
    ''This list updates automatically when incident pages link to this agent.''
     {{IncidentsForAgent}}              <!-- uses the current page -->
     {{IncidentsForAgent}}              <!-- uses the current page -->
or
    or
     {{IncidentsForAgent|Agent:David_Kim}}  <!-- explicit page name -->
     {{IncidentsForAgent|Agent:David_Kim}}  <!-- specify page explicitly -->


This template uses DynamicPageList3 (#dpl) with the "linksto" parameter
This template simply links to the built–in
and does *not* use any regex parameters.
[[Special:WhatLinksHere]] page for the agent.
</noinclude><includeonly>
</noinclude><includeonly>
{{#dpl:
<div class="agent-incidents-list" style="margin:0.5em 0 0.2em 0;">
| linksto          = {{{1|{{FULLPAGENAME}}}}}
* [[Special:WhatLinksHere/{{{1|{{FULLPAGENAME}}}}}|Browse incident pages that link to this agent]]
| ordermethod      = lastedit
</div>
| order            = descending
| rows            = 50
| includepage      =
| mode            = unordered
| noresultsheader  = ''No incident pages are currently linked to this agent.''
}}
</includeonly>
</includeonly>