Difference between revisions of "Template:Appearances"

From Detective Conan Wiki
(just trying it out)
(Fixed wrong display on Taka'aki Morofushi Appearances (it was because of the quote) AND implemented the infamous negation system for appearances of characters like Conan and Ran!!! :D)
Line 1: Line 1:
<includeonly>{{#ifeq:{{PAGENAME}}|{{{2}}} Appearances|
+
<includeonly>{{#stats:{{{1}}}|{{{2}}}|{{{option|none}}}|{{#ifeq:{{{option}}}|inverse|{{Total {{{1}}}}}|0}}|{{PAGENAME}}|
{{#stats:{{{1}}}|{{{2}}}|show|
 
 
{{{3}}}
 
{{{3}}}
}}
 
|
 
{{#stats:{{{1}}}|{{{2}}}|calculate|
 
{{{3}}}
 
}}
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
Automatically displays or calculate the number of appearances for a given character. This template uses a unique [[Special:Version#Installed_extensions|DCW wiki extension]] specifically created for keeping track of character appearances in the show.
 
Automatically displays or calculate the number of appearances for a given character. This template uses a unique [[Special:Version#Installed_extensions|DCW wiki extension]] specifically created for keeping track of character appearances in the show.
Line 14: Line 8:
 
The following is a list of required or optional parameters:
 
The following is a list of required or optional parameters:
 
<pre>
 
<pre>
{{Appearances|<type>|<character>|
+
{{Appearances|<type>|<character>|option=<option>|
 
<list of appearances>
 
<list of appearances>
 
}}
 
}}
Line 20: Line 14:
 
type                  =    Type of appearance. Can be: chapters, episodes, movies, ovas, specials, openings or closings.
 
type                  =    Type of appearance. Can be: chapters, episodes, movies, ovas, specials, openings or closings.
 
character            =    Name of the character. E.g. "Shinichi Kudo"
 
character            =    Name of the character. E.g. "Shinichi Kudo"
 +
option                =    (Optional: will default to "none". Other choices are: inverse)
 
list of appearances  =    List of episodes/movies/etc... in which the character was present
 
list of appearances  =    List of episodes/movies/etc... in which the character was present
 
</pre>
 
</pre>

Revision as of 23:18, 22 December 2009

Automatically displays or calculate the number of appearances for a given character. This template uses a unique DCW wiki extension specifically created for keeping track of character appearances in the show.

Usage

The following is a list of required or optional parameters:

{{Appearances|<type>|<character>|option=<option>|
<list of appearances>
}}

type                  =    Type of appearance. Can be: chapters, episodes, movies, ovas, specials, openings or closings.
character             =    Name of the character. E.g. "Shinichi Kudo"
option                =    (Optional: will default to "none". Other choices are: inverse)
list of appearances   =    List of episodes/movies/etc... in which the character was present