Template:Character line: Difference between revisions

From Semantic Stargate Wiki
(Created page with "{{#switch: {{#expr: {{Character count| type = {{{type|mi}}} | series = {{{series|1}}} | season = {{{season|}}} }} - {{{start|0}}} }} | 1 = {{{!}} align="center" {{!}} | 2 = {{...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
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=32% {{!}}
| 2 = {{{!}} align="center" width=40% {{!}}
| 3 = {{{!}} align="center" width=48% {{!}}
| 3 = {{{!}} align="center" width=60% {{!}}
| 4 = {{{!}} align="center" width=64% {{!}}
| 4 = {{{!}} align="center" width=80% {{!}}
| 5  
| 5  
| #default = {{{!}} align="center" width=80% {{!}}
| #default = {{{!}} align="center" width=100% {{!}}
}}
}}
|- valign=top
|- valign=top
{{#ask: [[Category:Characters]] {{#switch: {{{series|1}}} | film | movie | Stargate = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate (movie)]] | aot | AOT = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate: The Ark of Truth]] | sc | SC = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate: Continuum]] | 1 | sg1 | SG1 | SG-1 | sg-1 = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate SG-1{{#if: {{{season|}}} |  Season {{{season|}}} }}]] | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate Atlantis{{#if: {{{season|}}} |  Season {{{season|}}} }}]] | u | U | sgu | SGU | universe | Universe = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate Universe{{#if: {{{season|}}} |  Season {{{season|}}} }}]] }} [[Character from the main reality::true]]
{{#ask: [[Category:Characters]] {{#switch: {{{series|1}}} | film | movie | Stargate = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::Stargate (movie)]] | aot | AOT = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::Stargate: The Ark of Truth]] | sc | SC = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::Stargate: Continuum]] | 1 | sg1 | SG1 | SG-1 | sg-1 = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] | u | U | sgu | SGU | universe | Universe = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = One shot | mi | Mi | minor | Minor | #default = Minor | me | Me | mentioned | Mentioned = Mentioned }} character of::<q>[[Season::Stargate Universe{{#if: {{{season|}}} | &#32;Season {{{season|}}} }}]]</q>]] }} [[Character from the main reality::true]]
  | ?Name
  | ?Name
  | ?Infobox image
  | {{#switch: {{{series|1}}} | #default = ?Infobox image | film | movie | Stargate = ?Stargate infobox image | aot | AOT = ?Stargate: The Ark of Truth infobox image | sc | SC = ?Stargate: Continuum infobox image | 1 | sg1 | SG1 | SG-1 | sg-1 = ?Stargate SG-1 Season {{{season|}}} infobox image | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = ?Stargate Atlantis Season {{{season|}}} infobox image | u | U | sgu | SGU | universe | Universe = ?Stargate Universe Season {{{season|}}} infobox image }}
  | {{#switch: {{{series|1}}} | film | movie | Stargate = ?Deceased in Stargate (film) | aot | AOT = ?Deceased in Stargate: The Ark of Truth | sc | SC = ?Deceased in Stargate: Continuum | 1 | sg1 | SG1 | SG-1 | sg-1 = ?Deceased in Stargate SG-1{{#if: {{{season|}}} | &#32;Season {{{season|}}} }} | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = ?Deceased in Stargate Atlantis{{#if: {{{season|}}} | &#32;Season {{{season|}}} }} | u | U | sgu | SGU | universe | Universe = ?Deceased in Stargate Universe{{#if: {{{season|}}} | &#32;Season {{{season|}}} }} }}
  | {{#switch: {{{series|1}}} | film | movie | Stargate = ?Deceased in Stargate (film) | aot | AOT = ?Deceased in Stargate: The Ark of Truth | sc | SC = ?Deceased in Stargate: Continuum | 1 | sg1 | SG1 | SG-1 | sg-1 = ?Deceased in Stargate SG-1 Season {{{season|}}} | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = ?Deceased in Stargate Atlantis Season {{{season|}}} | u | U | sgu | SGU | universe | Universe = ?Deceased in Stargate Universe Season {{{season|}}} }}
  | link = none
  | link = none
  | format = template
  | format = template

Latest revision as of 08: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 :