Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template talk:Cast Data: Difference between revisions

Discussion page of Template:Cast Data
Latest comment: 13 years ago by Joe Beaudoin Jr. in topic Defaultsort bug
Shane (talk | contribs)
Joe Beaudoin Jr. (talk | contribs)
m Text replacement - "Peter Farago" to "April Arcus"
 
(33 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{archive-header
{{archive-header
| archivenumber = 01
| archivenumber = 1
| number = 1
| number = 1
| start = March 19, 2006
| start = March 19, 2006
| end = November 27, 2006
| end = November 27, 2006
| items = {{archive-item|01|Template reasoning}} {{archive-item|01|We don't need the image credit field...}} {{archive-item|01|Design of the Header}}
| items = {{archive-item|1|Template reasoning}} {{archive-item|1|We don't need the image credit field...}} {{archive-item|1|Design of the Header}}
|}}
|}}


Line 18: Line 18:
::::Is it just me, or does no one use {{tl|age}}? It's quite useful, and maybe it should be incorporated into this template. --[[User:Catrope|Catrope]] 13:48, 24 February 2007 (CST)
::::Is it just me, or does no one use {{tl|age}}? It's quite useful, and maybe it should be incorporated into this template. --[[User:Catrope|Catrope]] 13:48, 24 February 2007 (CST)
:::I figured a lot of the templates would have to change. I'll post an example of what would be required to change for this to work. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 13:58, 24 February 2007 (CST)
:::I figured a lot of the templates would have to change. I'll post an example of what would be required to change for this to work. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 13:58, 24 February 2007 (CST)
Code be code ''[[John Colicos]]'':
<pre>
{{Star Data
| image = John_Colicos.jpg
| born_month= 12
| born_day= 10
| born_year= 1928
| death_month= 3
| death_day= 6
| death_year= 2000
| character= [[Baltar (TOS)|Lord Baltar]]
| nationality= CA
| site=
| imdb= 0171475
}}
</pre>
* '''born_month''', '''born_day''', and '''born_year''': If these fields are filled out {{tl|Birth date and age}}. This will be overridden if ''all'' three death dates are entered and revert to just the date, and use [[:Category:Date/Time Related Templates|templates]] to show the date.
* '''death_month''', '''death_day''', and '''death_year''': If these fields are filled out {{tl|Death date and age}} will output actors death age. It will not update the age as the days go on.
:A bitch to code, I agree, but I'm willing to try nevertheless. I will have to create a temporary template again (see also discussion below), and my gut feeling says {{tl|ifdef}} will be useful. --[[User:Catrope|Catrope]] 14:44, 24 February 2007 (CST)
::I already got the code in my head, we just all have to discuss this first. It has to be agreed upon because then there is a TON of pages to update. Tons. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 14:50, 24 February 2007 (CST)
:::Alright, I agree anyway. Maybe call a vote on this? --[[User:Catrope|Catrope]] 14:58, 24 February 2007 (CST)
::::[[User:Shane/Testing Area]] has the code and example. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 11:27, 25 February 2007 (CST)
:::::Just to let those people know, I am going to update the main code tonight, so this is a project for me. Hope you come an join in! [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 17:19, 18 April 2007 (CDT)
::::::I'd love to help, but I've been busy with my [[BW:DD|first proposed policy]] this afternoon. I will try to do some dates this evening. --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 10:26, 19 April 2007 (CDT)
::::::Managed to do 22 of them. Currently, the first 60 in [[Special:Whatlinkshere/Template:Star Data|the list]] are done, out of roughly 250. [[:Category:Cast]] has 276 members however, weird ^^. Anyway, I'm off to bed, will continue tomorrow (if Shane hasn't done them all by then). --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 16:27, 19 April 2007 (CDT)
:::::::I'll finshed where you left off. :-) [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 16:39, 19 April 2007 (CDT)


== Dual nationality ==
== Dual nationality ==
[[User:Silly Dan|Silly Dan]] [[Talk:Colm Feore|requested]] that the infobox for [[Colm Feore|an actor]] specify two nationalities. Because I couldn't edit this template (locked for obvious security reasons), I created a [[Template:Star data multinational|new template]] with an extra parameter for a second nationality. It's [[Colm Feore|up and working]], so could someone with admin access incorporate this parameter into this template? (Preferably Shane, he'll be able to see whether my template inadvertently breaks anything.) --[[User:Catrope|Catrope]] 13:48, 24 February 2007 (CST)
[[User:Silly Dan|Silly Dan]] [[Talk:Colm Feore|requested]] that the infobox for [[Colm Feore|an actor]] specify two nationalities. Because I couldn't edit this template (locked for obvious security reasons), I created a [[Template:Star data multinational|new template]] with an extra parameter for a second nationality. It's [[Colm Feore|up and working]], so could someone with admin access incorporate this parameter into this template? (Preferably Shane, he'll be able to see whether my template inadvertently breaks anything.) --[[User:Catrope|Catrope]] 13:48, 24 February 2007 (CST)
:Good idea, but actors are really only one primary nationality. We record where their born, not where they hold citizenship. Also, if you want to make a suggestion to a template, post it here first and we can work on it. For obvious reasons the other template you created was deleted because we can already do that without a template. I can see about adding a field that changes the nationally into an input to add more than one flag. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 13:53, 24 February 2007 (CST)
:Good idea, but actors are really only one primary nationality. We record where their born, not where they hold citizenship. Also, if you want to make a suggestion to a template, post it here first and we can work on it. For obvious reasons the other template you created was deleted because we can already do that without a template. I can see about adding a field that changes the nationally into an input to add more than one flag. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 13:53, 24 February 2007 (CST)
::I see. If specifying multiple nationalities is not supposed to happen in the first place, that's OK. I agree a new template wasn't necessary, but since I can't edit the existing template, I decided to copy&edit it to {{tl|Star data multinational}} as a temporary solution, until you could merge my parameter into the primary template. --[[User:Catrope|Catrope]] 13:59, 24 February 2007 (CST)
:::The problem with this also, if your born in America your American. If your born in Canada, your Canadian. You come to the US your a US Cit, but that's not your nationality. So this might be moot. Maybe not upgrade the '''nationality''' field, but create a '''citizenship''' field. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 14:07, 24 February 2007 (CST)
::::That's not only a good idea, but also much cleaner and simpler to implement. It doesn't need {{tl|ifdef}}, for one thing. On a side note, wouldn't it be useful to keep {{tl|ifdef}} around just in case? --[[User:Catrope|Catrope]] 14:13, 24 February 2007 (CST)
:::::No. The avg. user, at least here, doesn't ever use templates. [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 14:16, 24 February 2007 (CST)
::::::I know that, but for us template makers, {{tl|ifdef}} has the potential to make life easier and templates cleaner. --[[User:Catrope|Catrope]] 14:17, 24 February 2007 (CST)
== Vote ==
Proposed addition of fields ''birth_day'', ''birth_month'', ''birth_year'', ''death_day'', ''death_month'' and ''death_year'' to this template, in order to automatically calculate an actor's age. See also [[Template talk:Star Data#Proposal for new fields to be added|the discussion above]] and [[User:Shane/Testing Area|a working example]]. The code is ready for use, but loads of pages would have to be updated.
* Date Started: {{dateahead|{{JD|2007|03  |6}}|0}}
* Date Ending: {{dateahead|{{JD|2007|03  |6}}|7}}
Instructions: Use <nowiki>{{Support}}, {{Oppose}}, {{Abstain}}, and {{Neutral}}</nowiki>, supported by a reason and appropriately signed using the four tildes (<nowiki>~~~~</nowiki>).
Other users are encouraged to vote as well, simply use {{tl|vote}} to add your vote. Refer to [[Template:Vote]] for complete instructions.
# [[User:Joe Beaudoin Jr.|Joe Beaudoin Jr.]] - {{Support}}. Why not? -- [[User:Joe Beaudoin Jr.|Joe Beaudoin]] <sup>[[User talk:Joe Beaudoin Jr.|So say we all]] - [[Battlestar Wiki:Site support|Donate]]</sup> 09:41, 6 March 2007 (CST)
# [[User:CalculatinAvatar|CalculatinAvatar]] - {{Abstain}}. Automatic [[Battlestar Wiki:Leave of Absence|leave of absence]] due to inactivity.
# [[User:Day|Day]] - {{Abstain}}. Automatic [[Battlestar Wiki:Leave of Absence|leave of absence]] due to inactivity.
# [[User:Gougef|FrankieG]] - {{Support}} --[[User:Gougef|FrankieG]] 10:18, 6 March 2007 (CST)
# [[User:Mercifull|Mercifull]] -
# [[User:April Arcus|April Arcus]] -
# [[User:Serenity|Serenity]] - {{Support}} --[[User:Serenity|Serenity]] 09:46, 6 March 2007 (CST)
# [[User:Shane|Shane]] - {{support}} [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 09:42, 6 March 2007 (CST)
# [[User:Spencerian|Spencerian]] -
# [[User:Steelviper|Steelviper]] - {{Support}} Resistance is futile. --[[User:Steelviper|Steelviper]] 09:45, 6 March 2007 (CST)
# [[User:Talos|Talos]] -
# [[User:Catrope|Catrope]] - {{support}} It's a nice improvement, and I volunteer for updating the actor pages. --[[User:Catrope|Catrope]] 09:32, 6 March 2007 (CST)
== Reason for Move ==
Because we ''are'' adding the new fields to the template on everyone's page is to add the dates sperate so the age is figured out automaticly. But how the heck will we know which ones are done and which ones are? Well simple.
Take this as an example...
* [[Special:Whatlinkshere/Template:Star_Data]] - Shows all the pages using "Star Data"
* [[Edward James Olmos]] - Template was changed from "Star Data" to "Cast Data" and the new fields were updated.
* [[Special:Whatlinkshere/Template:Star_Data]] - It's now not in this list so it's completed.
I am working from the list from top down, mercifull was working on it from bottom up. So start in the middle. While your at it, also check the categories to make sure everything is in order.
Hope I made this clear! [[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 04:43, 20 April 2007 (CDT)
== Problem With Series 2 Parameter ==
When I was updating some of the infoboxes for actors that appeared in both BSG [RDM] and in the prequel series Caprica, I noticed that if I used the parameters "series" for RDM and "series 2" for Caprica, that one of the categories added to the bottom of the page would be TOS. Why is TOS being added as a category when the TOS identifier isn't used anywhere in the infobox? To see this error for yourself, just look at the [[Christian Tessier]] page, go to edit, disable the "nocat" parameter (remove the y) and click on the show preview button. Once the preview is loaded, look at the bottom of the page and you will see TOS as a category, even though the actor in question was never on TOS and none of the series codes used should be linked to TOS. If someone could explain why this happening and fix it so that it stops happening, I would greatly appreciate it. --[[User:JoyaOscura|JoyaOscura]] 04:00, 10 February 2010 (UTC)
: Probably a syntax issue... I'll look into it a bit later. Thank you for the heads-up! -- [[User:Joe Beaudoin Jr.|Joe Beaudoin]] <sup>[[User talk:Joe Beaudoin Jr.|So say we all]] - [[Battlestar Wiki:Site support|Donate]] - [[bsp:|Battlestar Pegasus]]</sup> 04:06, 10 February 2010 (UTC)
: Fixed. I don't see any other issues, but if some arise, just let us know! Thanks again, Joya! -- [[User:Joe Beaudoin Jr.|Joe Beaudoin]] <sup>[[User talk:Joe Beaudoin Jr.|So say we all]] - [[Battlestar Wiki:Site support|Donate]] - [[bsp:|Battlestar Pegasus]]</sup> 20:26, 10 February 2010 (UTC)
== Defaultsort bug ==
If the sortkey parameter is not specified, the page will be sorted incorrectly, under <nowiki>{{sortkey}}</nowiki>. You should change it to: <nowiki>{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</nowiki> [[User:Nx|Nx]] 09:32, 2 December 2010 (UTC)
: Bugfix implemented! Thank you, Nx! -- [[User:Joe Beaudoin Jr.|Joe Beaudoin]] <sup>[[User talk:Joe Beaudoin Jr.|So say we all]] - [[Battlestar Wiki:Site support|Donate]]</sup> 16:10, 2 December 2010 (UTC)

Latest revision as of 01:58, 11 April 2020

Template reasoning, We don't need the image credit field..., Design of the Header,


Proposal for new fields to be added

  • Nationality of actor/actress (including flag UK UK)
  • Date of birth
  • Date of death (optional and mainly for TOS actors)
  • Age (automaticly worked out by a formula by DOB etc?)

--Mercifull (Talk/Contribs) 05:09, 28 November 2006 (CST)

I'm game. Shane (T - C - E) 13:57, 28 November 2006 (CST)
I added the new parameters, is there a way of making it look a bit neater on the pages though? as you can see here the text is squished up against the edges rather than being 50/50 across --Mercifull (Talk/Contribs) 05:12, 30 November 2006 (CST)
Fixed and I have {{age}} online to work out age: {{age|1982|5|3}} Shane (T - C - E) 10:00, 30 November 2006 (CST)
Is it just me, or does no one use {{age}}? It's quite useful, and maybe it should be incorporated into this template. --Catrope 13:48, 24 February 2007 (CST)
I figured a lot of the templates would have to change. I'll post an example of what would be required to change for this to work. Shane (T - C - E) 13:58, 24 February 2007 (CST)

Code be code John Colicos:

{{Star Data
| image = John_Colicos.jpg
| born_month= 12
| born_day= 10
| born_year= 1928
| death_month= 3
| death_day= 6
| death_year= 2000
| character= [[Baltar (TOS)|Lord Baltar]] 
| nationality= CA
| site=
| imdb= 0171475
}}
  • born_month, born_day, and born_year: If these fields are filled out {{Birth date and age}}. This will be overridden if all three death dates are entered and revert to just the date, and use templates to show the date.
  • death_month, death_day, and death_year: If these fields are filled out {{Death date and age}} will output actors death age. It will not update the age as the days go on.
A bitch to code, I agree, but I'm willing to try nevertheless. I will have to create a temporary template again (see also discussion below), and my gut feeling says {{ifdef}} will be useful. --Catrope 14:44, 24 February 2007 (CST)
I already got the code in my head, we just all have to discuss this first. It has to be agreed upon because then there is a TON of pages to update. Tons. Shane (T - C - E) 14:50, 24 February 2007 (CST)
Alright, I agree anyway. Maybe call a vote on this? --Catrope 14:58, 24 February 2007 (CST)
User:Shane/Testing Area has the code and example. Shane (T - C - E) 11:27, 25 February 2007 (CST)
Just to let those people know, I am going to update the main code tonight, so this is a project for me. Hope you come an join in! Shane (T - C - E) 17:19, 18 April 2007 (CDT)
I'd love to help, but I've been busy with my first proposed policy this afternoon. I will try to do some dates this evening. --Catrope(Talk to me or e-mail me) 10:26, 19 April 2007 (CDT)
Managed to do 22 of them. Currently, the first 60 in the list are done, out of roughly 250. Category:Cast has 276 members however, weird ^^. Anyway, I'm off to bed, will continue tomorrow (if Shane hasn't done them all by then). --Catrope(Talk to me or e-mail me) 16:27, 19 April 2007 (CDT)
I'll finshed where you left off. :-) Shane (T - C - E) 16:39, 19 April 2007 (CDT)

Dual nationality

Silly Dan requested that the infobox for an actor specify two nationalities. Because I couldn't edit this template (locked for obvious security reasons), I created a new template with an extra parameter for a second nationality. It's up and working, so could someone with admin access incorporate this parameter into this template? (Preferably Shane, he'll be able to see whether my template inadvertently breaks anything.) --Catrope 13:48, 24 February 2007 (CST)

Good idea, but actors are really only one primary nationality. We record where their born, not where they hold citizenship. Also, if you want to make a suggestion to a template, post it here first and we can work on it. For obvious reasons the other template you created was deleted because we can already do that without a template. I can see about adding a field that changes the nationally into an input to add more than one flag. Shane (T - C - E) 13:53, 24 February 2007 (CST)
I see. If specifying multiple nationalities is not supposed to happen in the first place, that's OK. I agree a new template wasn't necessary, but since I can't edit the existing template, I decided to copy&edit it to {{Star data multinational}} as a temporary solution, until you could merge my parameter into the primary template. --Catrope 13:59, 24 February 2007 (CST)
The problem with this also, if your born in America your American. If your born in Canada, your Canadian. You come to the US your a US Cit, but that's not your nationality. So this might be moot. Maybe not upgrade the nationality field, but create a citizenship field. Shane (T - C - E) 14:07, 24 February 2007 (CST)
That's not only a good idea, but also much cleaner and simpler to implement. It doesn't need {{ifdef}}, for one thing. On a side note, wouldn't it be useful to keep {{ifdef}} around just in case? --Catrope 14:13, 24 February 2007 (CST)
No. The avg. user, at least here, doesn't ever use templates. Shane (T - C - E) 14:16, 24 February 2007 (CST)
I know that, but for us template makers, {{ifdef}} has the potential to make life easier and templates cleaner. --Catrope 14:17, 24 February 2007 (CST)

Vote

Proposed addition of fields birth_day, birth_month, birth_year, death_day, death_month and death_year to this template, in order to automatically calculate an actor's age. See also the discussion above and a working example. The code is ready for use, but loads of pages would have to be updated.

  • Date Started: Tuesday, March 6, 2007 at 12:00 (UTC)
  • Date Ending: Tuesday, March 13, 2007 at 12:00 (UTC)

Instructions: Use {{Support}}, {{Oppose}}, {{Abstain}}, and {{Neutral}}, supported by a reason and appropriately signed using the four tildes (~~~~).

Other users are encouraged to vote as well, simply use {{vote}} to add your vote. Refer to Template:Vote for complete instructions.

  1. Joe Beaudoin Jr. - Support. Why not? -- Joe Beaudoin So say we all - Donate 09:41, 6 March 2007 (CST)
  2. CalculatinAvatar - Abstain. Automatic leave of absence due to inactivity.
  3. Day - Abstain. Automatic leave of absence due to inactivity.
  4. FrankieG - Support --FrankieG 10:18, 6 March 2007 (CST)
  5. Mercifull -
  6. April Arcus -
  7. Serenity - Support --Serenity 09:46, 6 March 2007 (CST)
  8. Shane - Support Shane (T - C - E) 09:42, 6 March 2007 (CST)
  9. Spencerian -
  10. Steelviper - Support Resistance is futile. --Steelviper 09:45, 6 March 2007 (CST)
  11. Talos -
  12. Catrope - Support It's a nice improvement, and I volunteer for updating the actor pages. --Catrope 09:32, 6 March 2007 (CST)

Reason for Move

Because we are adding the new fields to the template on everyone's page is to add the dates sperate so the age is figured out automaticly. But how the heck will we know which ones are done and which ones are? Well simple.

Take this as an example...

I am working from the list from top down, mercifull was working on it from bottom up. So start in the middle. While your at it, also check the categories to make sure everything is in order.

Hope I made this clear! Shane (T - C - E) 04:43, 20 April 2007 (CDT)

Problem With Series 2 Parameter

When I was updating some of the infoboxes for actors that appeared in both BSG [RDM] and in the prequel series Caprica, I noticed that if I used the parameters "series" for RDM and "series 2" for Caprica, that one of the categories added to the bottom of the page would be TOS. Why is TOS being added as a category when the TOS identifier isn't used anywhere in the infobox? To see this error for yourself, just look at the Christian Tessier page, go to edit, disable the "nocat" parameter (remove the y) and click on the show preview button. Once the preview is loaded, look at the bottom of the page and you will see TOS as a category, even though the actor in question was never on TOS and none of the series codes used should be linked to TOS. If someone could explain why this happening and fix it so that it stops happening, I would greatly appreciate it. --JoyaOscura 04:00, 10 February 2010 (UTC)Reply

Probably a syntax issue... I'll look into it a bit later. Thank you for the heads-up! -- Joe Beaudoin So say we all - Donate - Battlestar Pegasus 04:06, 10 February 2010 (UTC)Reply
Fixed. I don't see any other issues, but if some arise, just let us know! Thanks again, Joya! -- Joe Beaudoin So say we all - Donate - Battlestar Pegasus 20:26, 10 February 2010 (UTC)Reply

Defaultsort bug

If the sortkey parameter is not specified, the page will be sorted incorrectly, under {{sortkey}}. You should change it to: {{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}} Nx 09:32, 2 December 2010 (UTC)Reply

Bugfix implemented! Thank you, Nx! -- Joe Beaudoin So say we all - Donate 16:10, 2 December 2010 (UTC)Reply