Template talk:DW/Archive 1: Difference between revisions

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


:::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. '''[[User:CzechOut|<span style="background:blue;color:white">Czech</span><span style="background:red;color:white">Out</span>]]'''  [[User talk:CzechOut|☎]] | [[Special:Contributions/CzechOut|<font size="+1">✍</font>]] 18:14, May 28, 2010 (UTC)
:::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. '''[[User:CzechOut|<span style="background:blue;color:white">Czech</span><span style="background:red;color:white">Out</span>]]'''  [[User talk:CzechOut|☎]] | [[Special:Contributions/CzechOut|<font size="+1">✍</font>]] 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. —[[User:Effeff|ff]] 12:09, May 31, 2010 (UTC)

Revision as of 12:09, 31 May 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)