Template:Character line: Difference between revisions

From Semantic Stargate Wiki
mNo edit summary
No edit summary
 
Line 1: Line 1:
{{#switch: {{#expr: {{Character count| type = {{{type|mi}}} | series = {{{series|1}}} | season = {{{season|}}} }} - {{{start|0}}} }}
{{#switch: {{#expr: {{Character count| type = {{{type|mi}}} | series = {{{series|1}}} | season = {{{season|}}} }} - {{{start|0}}} }}
| 1 = {{{!}} align="center" {{!}}
| 1 = {{{!}} align="center" {{!}}
| 2 = {{{!}} align="center" width=25% {{!}}
| 2 = {{{!}} align="center" width=40% {{!}}
| 3 = {{{!}} align="center" width=50% {{!}}
| 3 = {{{!}} align="center" width=60% {{!}}
| 4 = {{{!}} align="center" width=75% {{!}}
| 4 = {{{!}} align="center" width=80% {{!}}
| 5  
| 5  
| #default = {{{!}} align="center" width=100% {{!}}
| #default = {{{!}} align="center" width=100% {{!}}

Latest revision as of 07:43, 21 August 2023

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

Usage

This template is used to count any category of characters

Syntax

{{Character line| series = | type = | season = | start = }}

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.
start No Makes an offset for the line. It must be a multiple of 5. A maximum of five character will appear on the line. 0

Examples

{{Character line | series = movie | type = mi | season = | start = 0}}

will give :