Difference between revisions of "Template:Teammate"

From Semantic Stargate Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!-- Wikipedia link -->{{#if: {{{link|}}} | {{((}}wikipedia:{{{link}}}{{!}} }}<!-- -->{{#if: {{{rtitle|}}} | {{{rtitle}}} | {{#if: {{{title|}}} | ''{{{title}}}...")
 
Line 1: Line 1:
 
<includeonly><!-- Wikipedia link
 
<includeonly><!-- Wikipedia link
  -->{{#if: {{{link|}}} | {{((}}wikipedia:{{{link}}}{{!}} }}<!--  
+
  -->{{#if: {{{link|}}} | {{((}}w:{{{link}}}{{!}} }}<!--  
 
  -->{{#if: {{{rtitle|}}} | {{{rtitle}}} | {{#if: {{{title|}}} | ''{{{title}}}'' }} }}<!-- Display of the title
 
  -->{{#if: {{{rtitle|}}} | {{{rtitle}}} | {{#if: {{{title|}}} | ''{{{title}}}'' }} }}<!-- Display of the title
 
  -->{{#if: {{{link|}}} | {{))}} }}<!-- End of link display
 
  -->{{#if: {{{link|}}} | {{))}} }}<!-- End of link display
 
  --><!--  
 
  --><!--  
  
### If there are some teamates ###
+
### If there are some teammates ###
  
  
  -->{{#if: {{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> }}{{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> }}  
+
  -->{{#if: {{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q> }}{{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{type|{{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q> }}<!--
      | &#32;(with {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> | format = list }}{{#if: {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> }} |&#32;as cast}}{{#if: {{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> }} | {{#if: {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> }} | , and&#32; }}{{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{#switch: {{{type|}}} | series | TV series | TV | tv | tv series = TV Series | mini-series | Mini-Series | TV mini-series | TV Mini-Series =  TV Mini-Series | TV movie | TV Movie = TV Movie | film | movie | Film | Movie | #default = Film | short | Short = Short | video | Video = Video | vg | VG | game | Game = Game}})]] [[prov::!{{PAGENAME}}]]</q> | format = list }} as crew}})
+
-->| &#32;(with {{#if: {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q>}} | {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q> | ?Name | format = list | template = Link | link = none | sep = ,&#32; }} as cast{{#if: {{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q> }} | , and&#32;}} }}{{#if: {{#ask: [[Category:Persons]] <q>[[Has played in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q>}} | {{#ask: [[Category:Persons]] <q>[[Has worked in::{{{title|}}} ({{{year|}}} {{type| {{{type|}}} }})]] [[prov::!{{PAGENAME}}]]</q> | ?Name | format = list | template = Link | link = none | sep = ,&#32; }} as crew}})
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 09:24, 12 June 2019

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

Usage

This template is used to display a film or TV show including the teammates of an actor. Inside an actor's article, it excludes the actor's name from the list of teammates (thanks to the "Prov" property).

Syntax

Copy/paste the following inside the article.

{{Teammate
 | link    = 
 | rtitle  = 
 | title   = 
 | year    = 
 | type    = 
}}

Inline version:

{{Teammate| link =  | rtitle =  | title =  | year =  | type = }}

Examples

{{Teammate
 | link    = CSI: Miami
 | rtitle  = 
 | title   = CSI: Miami
 | year    = 2002
 | type    = TV
}}

gives:

CSI: Miami (with Christopher John Fields, Salli Richardson-Whitfield, Derek Webster as cast, and J. Gregory Evans as crew)

See also