Template:Character count/doc: Difference between revisions
(Created page with "{{Documentation subpage}} <!-- Please place categories and interwikis where indicated at the bottom of this page --> == Usage == This template is used to count any category o...") |
(→Syntax) |
||
Line 9: | Line 9: | ||
<pre>{{Character count| series = | type = | season = }}</pre> | <pre>{{Character count| series = | type = | season = }}</pre> | ||
=== Parameters === | |||
All parameters has to be used in lowercase. | |||
{| class="wikitable" width = 100% | |||
! Parameter | |||
! Mandatory | |||
! Description | |||
! Default value | |||
|- | |||
| <code>series</code> | |||
| Yes | |||
| Determines the series or the movie where the characters belong. Available values: | |||
* 1, sg1, SG1, SG-1 or sg-1: ''[[Stargate SG-1]]'' | |||
* a, A, atl, ATL, Atlantis, atlantis, sga or SGA: ''[[Stargate Atlantis]]'' | |||
* u, U, sgu, SGU, universe or Universe: ''[[Stargate Universe]]'' | |||
* film, movie or Stargate: {{ep|Stargate}} | |||
* aot or AOT: ''[[Stargate: The Ark of Truth]]'' | |||
* sc or SC: ''[[Stargate: Continuum]]'' | |||
| 1 | |||
|- | |||
| <code>type</code> | |||
| Yes | |||
| Determine the type of character of a series or a movie | |||
* Ma, ma, main or Main: Main characters (available for movies and series) | |||
* Su, su, supporting, Supporting: Supporting characters (available only for movies) | |||
* re, Re, recurring or Recurring: Recurring characters (available only for series) | |||
* os, Os, one shot or One shot: "One shot" characters (available only for series) | |||
* mi, Mi, minor, Minor or #default: Minor characters (available for movies and series) | |||
* me, Me, mentionned or Mentionned: Mentionned only characters (available for movies and series) | |||
| Minor | |||
|- | |||
| <code>season</code> | |||
| No | |||
| If used, it will count the number of characters only for a season; if not it will count the number of characters for a series. Available only for series. | |||
| | |||
|} | |||
=== Examples === | |||
<pre>{{Character count| series = movie | type = mi | season = }}</pre> | |||
will give : {{Character count| series = movie | type = mi | season = }} | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Templates using Semantic MediaWiki]] | [[Category:Templates using Semantic MediaWiki]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 02:51, 8 February 2016
This is a documentation subpage for Template:Character count. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template is used to count any category of characters
Syntax
{{Character count| series = | type = | season = }}
Parameters
All parameters has to be used in lowercase.
Parameter | Mandatory | Description | Default value |
---|---|---|---|
series
|
Yes | Determines the series or the movie where the characters belong. Available values:
|
1 |
type
|
Yes | Determine the type of character of a series or a movie
|
Minor |
season
|
No | If used, it will count the number of characters only for a season; if not it will count the number of characters for a series. Available only for series. |
Examples
{{Character count| series = movie | type = mi | season = }}
will give : 26