Template:IncidentsForAgent: Difference between revisions

No edit summary
Tag: Reverted
Undo revision 4144 by Heeladams (talk)
Tag: Undo
 
Line 1: Line 1:
<noinclude>
<noinclude>
Lists incidents that link to the current agent.
Lists incident pages that link to a given agent page, without using DynamicPageList3.


Usage on an agent page:
Usage on an agent page:
    {{IncidentsForAgent}}


You can optionally override the target page:
    == Documented Incidents ==
     {{IncidentsForAgent|Some Other Page Name}}
    ''This list updates automatically when incident pages link to this agent.''
 
    {{IncidentsForAgent}}              <!-- uses the current page -->
    or
     {{IncidentsForAgent|Agent:David_Kim}} <!-- specify page explicitly -->
 
This template simply links to the built–in
[[Special:WhatLinksHere]] page for the agent.
</noinclude><includeonly>
</noinclude><includeonly>
<dynamicpagelist>
<div class="agent-incidents-list" style="margin:0.5em 0 0.2em 0;">
category    = Incidents
* [[Special:WhatLinksHere/{{{1|{{FULLPAGENAME}}}}}|Browse incident pages that link to this agent]]
linksto    = {{{1|{{PAGENAME}}}}}
</div>
ordermethod = lastedit
order      = descending
count      = 50
</dynamicpagelist>
</includeonly>
</includeonly>