Template:Character count: Difference between revisions

From Semantic Stargate Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{lc: {{{series|1}}} }} | film | movie | stargate = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate (film)]] | aot | ark of truth | stargate: the ark of truth = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: The Ark of Truth]] | sc | continuum | stargate: continuum = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: Continuum]] | 1 | sg1 | sg-1 | stargate sg-1 = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | a | atl | sga | atlantis | stargate atlantis = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | u | sgu | universe | stargate universe = [[{{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Universe{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] }}<!--  
{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{lc: {{{series|1}}} }} | film | movie | stargate = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate (film)]] | aot | ark of truth | stargate: the ark of truth = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: The Ark of Truth]] | sc | continuum | stargate: continuum = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: Continuum]] | 1 | sg1 | sg-1 | stargate sg-1 = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | a | atl | sga | atlantis | stargate atlantis = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | u | sgu | universe | stargate universe = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Universe{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] }}<!--  
  -->| format = count<!--  
  -->| format = count<!--  
  -->| searchlabel =<!--  
  -->| searchlabel =<!--  
  -->| link = none }}<!--  
  -->| link = none }}<!--  
  --><noinclude>{{Documentation}}</noinclude>
  --><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:05, 22 March 2022

0

Documentation icon Template documentation[view] [edit] [history] [purge]

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
  • 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
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