Template:Teammate: Difference between revisions

From Semantic Stargate Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!-- Wikipedia link
<includeonly><!-- putting a full name in User namespace (for tracking) -->{{#ifeq: {{NAMESPACE}} | User | {{!}}-
{{!}} }}<!-- Wikipedia link
  -->{{#if: {{{link|}}} | {{((}}w:{{{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
Line 9: Line 10:


  -->{{#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> }}<!--  
  -->{{#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 {{#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}})
  -->| {{#ifeq: {{NAMESPACE}} | User | {{!!}} | &#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 worked 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}}{{#ifeq: {{NAMESPACE}} | User | | ) }}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}<!-- putting a template sample in User namespace (for tracking) -->{{#ifeq: {{NAMESPACE}} | User | {{!!}} <tt><nowiki>{{Teammate | link = </nowiki>{{{link|}}} <nowiki>| rtitle = </nowiki>{{{rtitle|}}} <nowiki>| title = </nowiki>{{{title|}}} <nowiki>| year = </nowiki>{{{year|}}} <nowiki>| type = </nowiki>{{type| {{{type|}}} }} <nowiki>}}</nowiki></tt> }}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 07:29, 13 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