Template talk:DW/Archive 1

From Tardis Wiki, the free Doctor Who reference
Revision as of 18:14, 28 May 2010 by CzechOut (talk | contribs)

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)