Difference between revisions of "Template:Cast Data"

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
(+ sidebar parameters)
m (tweak)
 
(32 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
{| class="infobox" cellspacing="5"
 
{| class="infobox" cellspacing="5"
 
|-class="infoboxheader"
 
|-class="infoboxheader"
| colspan="2"|  
+
| colspan="2"|
 
{|  
 
{|  
 
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
 
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
| width="27" | {{#switch:{{{series|}}}
+
| width="27" | {{Series Icon|series={{{series|}}}}}
| tos
+
| width="{{#if:{{{series 2|}}}|27|0}}" | {{#if:{{{series 2|}}}|{{Series Icon|series={{{series 2|}}}}}|<!--null-->}}
| TOS={{Click
+
| width="{{#if:{{{series 3|}}}|27|0}}" | {{#if:{{{series 3|}}}|{{Series Icon|series={{{series 3|}}}}}|<!--null-->}}
| image = BSG 1978 Patch.png
 
| width = 25px
 
| height = 25px
 
| link = Battlestar Galactica (TOS)
 
}}
 
| rdm
 
| RDM
 
| #default= {{Click
 
| image = Colonial Seal.svg
 
| width = 25px
 
| height = 30px
 
| link = Battlestar Galactica (RDM)
 
}}  
 
| caprica
 
| Caprica= {{Click
 
| image = ColonialColors3.png
 
| width = 25px
 
| height = 25px
 
| link = Caprica (series)
 
}}  
 
| 1980= {{Click
 
| image = Stuart Zee.jpg
 
| width = 25px
 
| height = 25px
 
| link = Galactica 1980
 
}}  
 
}}
 
 
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
 
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
 
|}
 
|}
Line 86: Line 59:
 
}}
 
}}
 
|- class="hiddenStructure{{{site|}}}"
 
|- class="hiddenStructure{{{site|}}}"
| style="text-align: center" colspan="2" | <div class="plainlinks">[{{{site}}} Official Site]</div>
+
| style="text-align: center" colspan="2" | {{#if:{{{site archive|}}}|{{archivelink|url={{{site}}}|title=Official Site (archived)|live=N}}|<div class="plainlinks">[{{{site}}} Official Site]}}</div>
 
|- class="hiddenStructure{{{imdb|}}}"
 
|- class="hiddenStructure{{{imdb|}}}"
| style="text-align: center" colspan="2" | <div class="plainlinks">[http://us.imdb.com/name/nm{{{imdb}}} IMDb profile]</div>
+
| style="text-align: center" colspan="2" | <div class="plainlinks">[https://www.imdb.com/name/nm{{{imdb}}} IMDb profile]</div>
 
|}
 
|}
 
<div style="visibility:hidden; display:none;">
 
<div style="visibility:hidden; display:none;">
{{DEFAULTSORT:{{{sortkey}}}}}
+
{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}
 
{{#if:{{{nocat|}}}|<!-- Categories are to be added. -->|
 
{{#if:{{{nocat|}}}|<!-- Categories are to be added. -->|
 
<!-- The DIV removes the newlines that are generated by this code. ;-) -->
 
<!-- The DIV removes the newlines that are generated by this code. ;-) -->
Line 98: Line 71:
 
{{#switch:{{{series|}}}
 
{{#switch:{{{series|}}}
 
| 1980=[[Category: Cast (1980)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: 1980]]}}
 
| 1980=[[Category: Cast (1980)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: 1980]]}}
 +
| bac
 +
| BAC
 +
| Blood and Chrome
 +
| blood & chrome
 +
| b&c
 +
| B&C=[[Category: Cast (BAC)]] [[Category: Cast (RDM)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: BAC]] [[Category: RDM]]}}
 
| caprica
 
| caprica
| Caprica=[[Category: Cast (Caprica)]] [[Category: Cast (RDM)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: Caprica]] [[Category: RDM]]}}
+
| Caprica=[[Category: Cast (Caprica)]] [[Category: Cast (RDM)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: Caprica (series)]] [[Category: RDM]]}}
 
| rdm
 
| rdm
 
| RDM=[[Category: Cast (RDM)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: RDM]]}}
 
| RDM=[[Category: Cast (RDM)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: RDM]]}}
 +
| trs
 +
| TRS=[[Category: Cast (RDM)]] [[Category: Cast (TRS)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: RDM]] [[Category: TRS]]}}
 
| tos
 
| tos
 
| TOS=[[Category: Cast (TOS)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: TOS]]}}
 
| TOS=[[Category: Cast (TOS)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: TOS]]}}
 +
| tsc
 +
| TSC=[[Category: Cast (TSC)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: TSC]]}}
 +
| sds
 +
| SDS=[[Category: Cast (SDS)]] {{#if:{{{series 2|}}}|<!-- -->|[[Category: SDS]]}}
 
}}
 
}}
  
Line 110: Line 95:
 
{{#switch:{{{series|}}}
 
{{#switch:{{{series|}}}
 
| caprica
 
| caprica
| Caprica=[[Category: 1980]] [[Category: Caprica]] [[Category: RDM]]
+
| Caprica=[[Category: 1980]] [[Category: Caprica (series)]] [[Category: RDM]]
 
| rdm
 
| rdm
 
| RDM=[[Category: 1980]] [[Category: RDM]]
 
| RDM=[[Category: 1980]] [[Category: RDM]]
Line 117: Line 102:
 
| #default=[[Category: 1980]] [[Category: TOS]]
 
| #default=[[Category: 1980]] [[Category: TOS]]
 
}}
 
}}
 +
| bac
 +
| BAC
 +
| Blood and Chrome
 +
| blood & chrome
 +
| b&c
 +
| B&C=[[Category: Cast (BAC)]] [[Category: Cast (RDM)]]
 
| caprica
 
| caprica
 
| Caprica=[[Category: Cast (Caprica)]] [[Category: Cast (RDM)]]  
 
| Caprica=[[Category: Cast (Caprica)]] [[Category: Cast (RDM)]]  
 
{{#switch:{{{series|}}}
 
{{#switch:{{{series|}}}
| 1980=[[Category: 1980]] [[Category: Caprica]] [[Category: RDM]]
+
| 1980=[[Category: 1980]] [[Category: Caprica (series)]] [[Category: RDM]]
 
| tos
 
| tos
| TOS
+
| TOS=[[Category: Caprica (series)]] [[Category: RDM]] [[Category: TOS]]
| #default=[[Category: Caprica]] [[Category: RDM]] [[Category: TOS]]
+
| #default=[[Category: Caprica (series)]] [[Category: RDM]]
 
}}
 
}}
 
| rdm
 
| rdm
Line 136: Line 127:
 
| TOS=[[Category: Cast (TOS)]]  
 
| TOS=[[Category: Cast (TOS)]]  
 
{{#switch:{{{series|}}}
 
{{#switch:{{{series|}}}
 +
| bac
 +
| BAC
 +
| Blood and Chrome
 +
| blood & chrome
 +
| b&c
 +
| B&C=[[Category: BAC]] [[Category: RDM]]
 
| caprica
 
| caprica
| Caprica= [[Category: Caprica]] [[Category: RDM]]
+
| Caprica= [[Category: Caprica (series)]] [[Category: RDM]]
 
| #default= [[Category: {{{series}}}]]
 
| #default= [[Category: {{{series}}}]]
 
}}
 
}}
Line 144: Line 141:
 
}}
 
}}
 
}}
 
}}
<!-- Begin Sidebar -->
 
{{#if:{{{sidebar|}}}|
 
* See Also
 
 
{{#if:{{{Babylon 5|}}}|
 
** List of Babylon 5 Cast and Crew|Babylon 5 Cast and Crew}}
 
{{#if:{{{Dark Angel|}}}|
 
** List of Dark Angel Cast and Crew|Dark Angel Cast and Crew}}
 
{{#if:{{{GL|}}}|
 
** List of Glen Larson Productions Cast and Crew|Glen Larson Productions Cast and Crew}}
 
 
{{#if:{{{Stargate|}}}|
 
** List of Stargate Cast and Crew|Stargate Cast and Crew}}
 
{{#if:{{{Star Trek|}}}|
 
{{#switch:{{{series|}}}
 
| tos
 
| TOS=
 
** List of Star Trek Cast and Crew (TOS)|Star Trek Cast and Crew
 
| 1980=
 
** List of Star Trek Cast and Crew (1980)|Star Trek Cast and Crew
 
| Caprica
 
| caprica
 
| rdm
 
| RDM=
 
** List of Star Trek Cast and Crew (RDM)|Star Trek Cast and Crew
 
| #default=
 
** List of Star Trek Cast and Crew|Star Trek Cast and Crew
 
}}
 
}}
 
{{#if:{{{Star Wars|}}}|
 
** List of Star Wars Cast and Crew|Star Wars Cast and Crew}}
 
}}<!-- End sidebar.-->
 
 
</div>
 
</div>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
Line 190: Line 155:
 
| series=
 
| series=
 
| series 2=
 
| series 2=
 +
| series 3=
 
| credit=
 
| credit=
 
| showage=
 
| showage=
Line 201: Line 167:
 
| nationality=  
 
| nationality=  
 
| site=
 
| site=
 +
| site archive=
 
| imdb=  
 
| imdb=  
 
| nocat=
 
| nocat=
 
| sortkey=
 
| sortkey=
| sidebar=
 
| Babylon 5=
 
| Dark Angel=
 
| GL=
 
| Stargate
 
| Star Trek=
 
| Star Wars=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 216: Line 176:
 
=== Required parameters ===
 
=== Required parameters ===
 
* '''character''': The character this person plays. Use <code><nowiki><br /></nowiki></code> to insert more than one. Please wikify the character.
 
* '''character''': The character this person plays. Use <code><nowiki><br /></nowiki></code> to insert more than one. Please wikify the character.
* '''series''': The series the actor is a part of.
+
* '''series''': The series the actor is a part of: <code>TOS, 1980, RDM, Caprica, BAC, SDS, TSC</code>
 
* '''sortkey''': This tells the category system where this entry should go. (For [[Richard Hatch]], the sortkey would be "Hatch, Richard"—without quotes—thus telling the software to alphabetize by his last name.)  
 
* '''sortkey''': This tells the category system where this entry should go. (For [[Richard Hatch]], the sortkey would be "Hatch, Richard"—without quotes—thus telling the software to alphabetize by his last name.)  
  
Line 223: Line 183:
 
** '''size''': By default, the size will be limited to 200px. If this need to be increased enter the number here.
 
** '''size''': By default, the size will be limited to 200px. If this need to be increased enter the number here.
 
** '''credit''': If you are using a ''copyrighted'' image '''with permission''', enter it here the details of the copyright. Otherwise place the copyright on the [[:md:Main Page|Media Wiki]] image page itself the correct [[:md:BWM:ITP|image tags]] per the [[:md:Main Page|Media Wiki]] Image tagging policy.
 
** '''credit''': If you are using a ''copyrighted'' image '''with permission''', enter it here the details of the copyright. Otherwise place the copyright on the [[:md:Main Page|Media Wiki]] image page itself the correct [[:md:BWM:ITP|image tags]] per the [[:md:Main Page|Media Wiki]] Image tagging policy.
* '''series 2''': The second series the actor is a part of, if applicable. (e.g. [[Richard Hatch]], [[Richard Lynch]])
+
* '''series 2''': The second series the actor is a part of, if applicable. (e.g. [[Richard Hatch]], [[Richard Lynch]]) Codes are <code>TOS, 1980, RDM, Caprica, BAC, SDS, TSC</code>
 +
* '''series 3''': Like "series 2" for a third series the actor is involved in.
 
* '''showage''': Type <code>N</code> or <code>n</code> in order to hide the age of the cast member in question, in the event that the full date of birth (or death) is unknown.
 
* '''showage''': Type <code>N</code> or <code>n</code> in order to hide the age of the cast member in question, in the event that the full date of birth (or death) is unknown.
 
* '''born_month''': The month number that the actor was born.
 
* '''born_month''': The month number that the actor was born.
Line 235: Line 196:
 
** <code>Earth</code> as to indicate from the planet Earth
 
** <code>Earth</code> as to indicate from the planet Earth
 
* '''site''': The '''''official''''' website of the actor. This field '''is not for fan websites or other unofficial websites'''. Any unofficial websites using this parameter should be removed and placed in an External links section in the article itself.  
 
* '''site''': The '''''official''''' website of the actor. This field '''is not for fan websites or other unofficial websites'''. Any unofficial websites using this parameter should be removed and placed in an External links section in the article itself.  
 +
* '''site archive''': If the site is offline, but exists at the Wayback Machine, type "Y" or "y" (sans quotes).
 
* '''imdb''': The ID number on their IMDB page. Include only the numbers, '''not''' the two letter prefix. (i.e. 123456 instead of nm123456)
 
* '''imdb''': The ID number on their IMDB page. Include only the numbers, '''not''' the two letter prefix. (i.e. 123456 instead of nm123456)
 
* '''nocat:''' Insert '''Y''' to disable automatic categorization. Typically, this is done for articles that require more complex categorization techniques, and thus the categories need to be entered in manually.
 
* '''nocat:''' Insert '''Y''' to disable automatic categorization. Typically, this is done for articles that require more complex categorization techniques, and thus the categories need to be entered in manually.
  
=== Sidebar parameters ===
+
[[Category:Infobox|Cast]]
 
 
* '''sidebar''': Insert '''Y''' to ''enable'' the sidebar. This is used for the "List of...''' series.
 
* '''Babylon 5''': Insert '''Y''' if the person was on or involved with ''Babylon 5'' or its spinoff series.
 
* '''Dark Angel''': Insert '''Y''' if the person was on or involved with ''Dark Angel''.
 
* '''GL''': Insert '''Y''' if the person was on or involved in a series produced by Glen Larson Productions.
 
* '''Stargate''': Insert '''Y''' if the person was on or involved with ''Stargate'' or its spinoff series.
 
* '''Star Trek''': Insert '''Y''' if the person was on or involved with ''Star Trek'' or its spinoff series.
 
* '''Star Wars''': Insert '''Y''' if the person was on or involved with ''Star Wars'' or a ''Star Wars'' related production (i.e. ''Clone Wars'').
 
  
[[Category:Infobox|Cast]]
+
[[de: Vorlage:Castdaten]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:42, 18 January 2021

Documentation

This template is used to place summary information on a cast member on all Battlestar Wiki biography articles. It provides lower case parameters only.

By default, this template employs automatic categorization, thus removing the need to manually add categories to most cast articles. Should the need arise to disable it, use the nocat attribute as stated in this documentation. Doing this, however, requires that you manually add the categories to the end of the article text.

Usage

{{Cast Data
| image=
| size=
| series=
| series 2=
| series 3=
| credit=
| showage=
| born_month= 
| born_day= 
| born_year= 
| death_month= 
| death_day= 
| death_year= 
| character= 
| nationality= 
| site=
| site archive=
| imdb= 
| nocat=
| sortkey=
}}

Required parameters

  • character: The character this person plays. Use <br /> to insert more than one. Please wikify the character.
  • series: The series the actor is a part of: TOS, 1980, RDM, Caprica, BAC, SDS, TSC
  • sortkey: This tells the category system where this entry should go. (For Richard Hatch, the sortkey would be "Hatch, Richard"—without quotes—thus telling the software to alphabetize by his last name.)

Optional parameters

  • image: The filename of the image. Do not include the Image: prefix.
    • size: By default, the size will be limited to 200px. If this need to be increased enter the number here.
    • credit: If you are using a copyrighted image with permission, enter it here the details of the copyright. Otherwise place the copyright on the Media Wiki image page itself the correct image tags per the Media Wiki Image tagging policy.
  • series 2: The second series the actor is a part of, if applicable. (e.g. Richard Hatch, Richard Lynch) Codes are TOS, 1980, RDM, Caprica, BAC, SDS, TSC
  • series 3: Like "series 2" for a third series the actor is involved in.
  • showage: Type N or n in order to hide the age of the cast member in question, in the event that the full date of birth (or death) is unknown.
  • born_month: The month number that the actor was born.
  • born_day: The day number that the actor was born.
  • born_year: The full year that the actor was born. (e.x. 1971)
  • death_month: The month number that the actor died.
  • death_day: The day number that the actor died.
  • death_year: The full year that the actor died. (e.x. 1971)
  • nationality: Uses the flag template.
    • US, UK, or others. For a full listing of possible country codes please visit IANA's Root-Zone Index
    • Earth as to indicate from the planet Earth
  • site: The official website of the actor. This field is not for fan websites or other unofficial websites. Any unofficial websites using this parameter should be removed and placed in an External links section in the article itself.
  • site archive: If the site is offline, but exists at the Wayback Machine, type "Y" or "y" (sans quotes).
  • imdb: The ID number on their IMDB page. Include only the numbers, not the two letter prefix. (i.e. 123456 instead of nm123456)
  • nocat: Insert Y to disable automatic categorization. Typically, this is done for articles that require more complex categorization techniques, and thus the categories need to be entered in manually.