This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:EpisodesCreatedInline: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
use sortkey instead of firstedit
imported>MiamiVolts
fix links
 
Line 1: Line 1:
<includeonly>{{#if:{{{who|}}}|{{#if:{{{type|}}}}|{{#if:{{{count|}}}|{{#if:{{{english|}}}|{{EnglishList|text={{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/
<includeonly>{{#if:{{{who|}}}|{{#if:{{{type|}}}}|{{#if:{{{count|}}}|{{#if:{{{english|}}}|{{EnglishList|text={{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/
|count={{{count}}}|format=,''[[%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|count={{{count}}}|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/
|count={{{count}}}|format=,''[[%PAGE%¦%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|count={{{count}}}|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/
|count={{{count}}}|format=,''[[%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|count={{{count}}}|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#if:{{{english|}}}|{{EnglishList|text={{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,''[[%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,''[[%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}<!--end ifcount-->}}<!--end iftype-->}}<!--end ifwho-->}}</includeonly><noinclude>
|count={{{count}}}|format=,''[[%PAGE%¦%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|count={{{count}}}|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#if:{{{english|}}}|{{EnglishList|text={{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,''[[%PAGE%¦%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}|{{#sub:{{DPLSearch|result={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,''[[%PAGE%¦%TITLE%]]''&#44; &#x0020;,,}}|who={{#replace:{{{who}}}|&#39;|'}}|search={{#dpl:|debug=1|category=Episodes|uses=Template:Episode sidebar|ordermethod=sortkey|include={Episode sidebar}:{{{type}}}|includematch=/{{{type}}}[^{{pipe}}]*{{#replace:{{{who}}}|&#39;|'}}/|format=,&rarr;&rarr;,,&rarr;}}}}|0|-14}}}}<!--end ifcount-->}}<!--end iftype-->}}<!--end ifwho-->}}</includeonly><noinclude>
==Usage==
==Usage==
<pre>
<pre>

Latest revision as of 20:08, 10 February 2009

Usage

{{EpisodesCreatedInline
  |type=<directedby|writtenby>
  |who=<person's name to search for>
  |count=<optional argument to limit the # of results>
  |english=<optional argument; set to true to output as an english list
            An english list is a list with last element preceded by the word "and".>
}}

Dynamically produces a list of all of the episodes created by an episode crew member, limited to specified type. Use as many times on an article/userpage as desired.

Notes

  • The # required for count is not necessarily equal to the max # of results you want to see. It appears to vary, and may change in an upcoming release.
  • This template works by using DPL to pull names from the fields of the Episode sidebar used on episode articles.
  • To output in bulleted list format with section headers, see Template:EpisodesCreated.