Template talk:DW/Archive 1: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 21: Line 21:


::::::I'm in favour of removing the templates from use, but I think they can remain as a project that ''could'' likely be fixed in the future. --[[User:Tangerineduel|Tangerineduel]] 12:53, July 21, 2010 (UTC)
::::::I'm in favour of removing the templates from use, but I think they can remain as a project that ''could'' likely be fixed in the future. --[[User:Tangerineduel|Tangerineduel]] 12:53, July 21, 2010 (UTC)
:::::::I've been reading through the [[Template:DW/Text]] for this, which is where it all issues seem to stem from. The Text page is transcluded across all the other templates which seems to account for all the red-links.
:::::::I'm still not convinced and am with Doug86 on this front, a sentence on the page such as ''"Acutally entering a disambiguated name into this template will not produce the desired results."''. I think we need to have story citation as straight forward as possible, and this is telling people ''not'' to include the full title of the article.
:::::::As to how to resolve this, we either need to blanket much of the text page with "nowikis" to prevent redlinks or delete the page.
:::::::However, several users have worked on this template so, maybe moving it out of the template space to somewhere else and then add "no wikis" to it, rather than deleting the page. --[[User:Tangerineduel|Tangerineduel]] 14:10, July 28, 2010 (UTC)

Revision as of 14:10, 28 July 2010

How does this work for those stories that have TV story on the end like Frontios - [[Frontios (TV story)|Frontios]]? --Tangerineduel 07:37, May 24, 2010 (UTC)

Almost had it but it is quite tricky. You would have to use the code {{#if: but I couldn't get it. ☆The Solar Dragon (Talk)☆ 07:52, May 24, 2010 (UTC)
For now, you can use {{DW|Frontios (TV story){{!}}Frontios}}Template:DW. I was thinking about making it possible to add multiple stories in one template, which makes it harder to specify an alternate name in the template. I.e. I'm torn between:
What do you think would be more useful? —ff 07:56, May 24, 2010 (UTC)
I've opted for the second option and made it possible to add up to ten stories. You can still add an alternate text, but you need to use the somewhat hackish exclamation mark template ({{!}}). Please let me know what you think. —ff 08:44, May 24, 2010 (UTC)
  • Example: {{DW|Blink|Frontios (TV story){{!}}Frontios|The Time of Angels|Flesh and Stone}}Template:DW
Working on the disambig problem. Give me a bit of time here. Temporarily might experience problems with this template. CzechOut | 15:43, May 28, 2010 (UTC)
Okay, this problem solved. However, I really don't like template:Story link and so I completely excised it from the code. This is a standalone template. It'll be MUCH harder trying to use a "centralized" template and feeding off that than it would be to just have individualized templates for each prefix. There are two reasons for this. First, and most imporantly, the template really must have the same name as the prefix code as the range itself for people to remember and use it. If I have to remember to type {{Story link|Prefix=BFA|1=The Condemned}}, that's not saving me ANY time. In fact, it's harder. And if I create a
which runs [[:Template:Story link}} within it, then I run the risk of falling foul of an ((#if:)) parser.  Way simpler just to copy and paste the code into new, standalone templates  The second reason is that disambiguation challenge is different on every line.  Comic stories are disambiguated (comic story), audios as (audio story), novels as (novel).  Yes, you could nest all these #if clauses togther into one all -purpose Swiss Army knife, but why?   It's so much simpler just to cut, paste, and make prefix-appropriate changes to the prefix in question.  
Oh, and in case you haven't read the documentation, the solution to the disambig problem was to go with exactly the reverse idea. You don't enter "EpName (TV story)", and lop it off. You type in "Ep Name", then check to see whether it needs to be added on in the background. CzechOut | 18:14, May 28, 2010 (UTC)
I changed Template:Story link/Item to link to “… (TV story)”, too, if that page exists. IMHO it is much cleaner if this distinction is made once and not ten times. Also, adding new suffixes, such as “… (novel)” is much easier. That said, I don't think it's worth arguing about, since I hope those templates don't need any maintenance. —ff 12:09, May 31, 2010 (UTC)
You're absolutely right: my solution is not particularly "readable". Most people would take one look at it and think, "There's gotta be an easier, or neater, way." But the thing is, the end user gets a template that works like they'd expect with an absolute minimum of keystrokes. And that's why I don't understand why you'd want to update Template:Story link and its dependent templates? I'm not getting why someone want to type {{Story link|prefix=TW|1=Everything Changes}} when they can just type {{TW|Everything Changes}}? I mean, I understand it's good because it's flexible and elegant from a code view, but in terms of the number of keystrokes the user requires to call it, surely it's a lot longer? I was actually going to put Template:Story link up for deletion until I saw you were updating it. Is there some reason to keep it around that I'm just not seeing? CzechOut | 00:37, June 1, 2010 (UTC)
I updated it because it used to be the template used by Template:DW and Template:TW. The two used to be implemented in a way that could be copy-and-pasted easily and keep all the logic in Template:Story link. I didn't see that somebody already copied the spaghetti code to the TW template, so I thought I'd at least do that template some good.
I still favor the Story-link-based implementation. For end-users, there is no difference in usage – they use the front-end templates such as DW. For people maintaining or creating new templates, the code is much cleaner and easier to understand. And even with copy-and-paste: handling code that you understand is much better than blindly copying something you don't understand – the code required for the "front-end templates" is really easy to understand. —ff 07:31, June 3, 2010 (UTC)
For some reason all the template docs and an assortment of other things (see Special:WhatLinksHere&target=The_Time_of_Angels_(TV_story) for a complete list) is linking to The Time of Angels (TV story), except it's not, the links aren't red-linking but its still showing up in the 'wanted pages'.
On second thoughts maybe just have a look at the Special:WantedPages and see the other pages that are redlinking with links showing up for them almost all of them stemming from the templates. --Tangerineduel 15:31, July 9, 2010 (UTC)
I've noticed this as well, but kept putting off bringing it up. Personally, I'm in favor of removing this template and others like it altogether, not just because of this but also because it would just be too much work to fix all the other pages to conform to this format. Doug86 16:05, July 9, 2010 (UTC)
I'm in favour of removing the templates from use, but I think they can remain as a project that could likely be fixed in the future. --Tangerineduel 12:53, July 21, 2010 (UTC)
I've been reading through the Template:DW/Text for this, which is where it all issues seem to stem from. The Text page is transcluded across all the other templates which seems to account for all the red-links.
I'm still not convinced and am with Doug86 on this front, a sentence on the page such as "Acutally entering a disambiguated name into this template will not produce the desired results.". I think we need to have story citation as straight forward as possible, and this is telling people not to include the full title of the article.
As to how to resolve this, we either need to blanket much of the text page with "nowikis" to prevent redlinks or delete the page.
However, several users have worked on this template so, maybe moving it out of the template space to somewhere else and then add "no wikis" to it, rather than deleting the page. --Tangerineduel 14:10, July 28, 2010 (UTC)