Template:StoryTitle: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#explode:{{PAGENAME}}|(|1}}
<includeonly>{{#switch:{{#explode:{{PAGENAME}}|(|1}}
|audio story)={{#replace:{{PAGENAME}}|(audio story)|}}
|audio story)={{#replace:{{PAGENAME}}|(audio story)|}}
|unproduced audio story)={{#replace:{{PAGENAME}}|(unproduced audio story)|}}
|audio anthology)={{#replace:{{PAGENAME}}|(audio anthology)|}}
|audio anthology)={{#replace:{{PAGENAME}}|(audio anthology)|}}
|audio series)={{#replace:{{PAGENAME}}|(audio series)|}}
|audio series)={{#replace:{{PAGENAME}}|(audio series)|}}
Line 23: Line 24:
|omnibus)={{#replace:{{PAGENAME}}|(omnibus)|}}
|omnibus)={{#replace:{{PAGENAME}}|(omnibus)|}}
|novel)={{#replace:{{PAGENAME}}|(novel)|}}
|novel)={{#replace:{{PAGENAME}}|(novel)|}}
|unproduced novel)={{#replace:{{PAGENAME}}|(unproduced novel)|}}
|NA novel)={{#replace:{{PAGENAME}}|(NA novel)|}}
|NA novel)={{#replace:{{PAGENAME}}|(NA novel)|}}
|NSA novel)={{#replace:{{PAGENAME}}|(NSA novel)|}}
|NSA novel)={{#replace:{{PAGENAME}}|(NSA novel)|}}
Line 29: Line 31:
|novelisation)={{#replace:{{PAGENAME}}|(novelisation)|}}
|novelisation)={{#replace:{{PAGENAME}}|(novelisation)|}}
|short story)={{#replace:{{PAGENAME}}|(short story)|}}
|short story)={{#replace:{{PAGENAME}}|(short story)|}}
|unproduced short story)={{#replace:{{PAGENAME}}|(unproduced short story)|}}
|BE short story)={{#replace:{{PAGENAME}}|(BE short story)|}}
|BE short story)={{#replace:{{PAGENAME}}|(BE short story)|}}
|Erimem short story)={{#replace:{{PAGENAME}}|(Erimem short story)|}}
|Erimem short story)={{#replace:{{PAGENAME}}|(Erimem short story)|}}
Line 41: Line 44:
|TV series)={{#replace:{{PAGENAME}}|(TV series)|}}
|TV series)={{#replace:{{PAGENAME}}|(TV series)|}}
|TV story)={{#replace:{{PAGENAME}}|(TV story)|}}
|TV story)={{#replace:{{PAGENAME}}|(TV story)|}}
|unproduced TV story)={{#replace:{{PAGENAME}}|(unproduced TV story)|}}
|1996)={{#replace:{{PAGENAME}}|(1996)|}}
|1996)={{#replace:{{PAGENAME}}|(1996)|}}
|CON episode)={{#replace:{{PAGENAME}}|(CON episode)|}}
|CON episode)={{#replace:{{PAGENAME}}|(CON episode)|}}
|TD episode)={{#replace:{{PAGENAME}}|(TD episode)|}}
|TD episode)={{#replace:{{PAGENAME}}|(TD episode)|}}
|DWE episode)={{#replace:{{PAGENAME}}|(DWE episode)|}}
|DWE episode)={{#replace:{{PAGENAME}}|(DWE episode)|}}
|Unleashed episode)={{#replace:{{PAGENAME}}|(Unleashed episode)|}}
|ODWP episode)={{#replace:{{PAGENAME}}|(ODWP episode)|}}
|documentary)={{#replace:{{PAGENAME}}|(documentary)|}}
|documentary)={{#replace:{{PAGENAME}}|(documentary)|}}
|audio documentary)={{#replace:{{PAGENAME}}|(audio documentary)|}}
|home video)={{#replace:{{PAGENAME}}|(home video)|}}
|home video)={{#replace:{{PAGENAME}}|(home video)|}}
|unproduced home video)={{#replace:{{PAGENAME}}|(unproduced home video)|}}
|webcast)={{#replace:{{PAGENAME}}|(webcast)|}}
|webcast)={{#replace:{{PAGENAME}}|(webcast)|}}
|unproduced webcast)={{#replace:{{PAGENAME}}|(unproduced webcast)|}}
|video game)={{#replace:{{PAGENAME}}|(video game)|}}
|video game)={{#replace:{{PAGENAME}}|(video game)|}}
|unproduced video game)={{#replace:{{PAGENAME}}|(unproduced video game)|}}
|game)={{#replace:{{PAGENAME}}|(game)|}}
|unproduced game)={{#replace:{{PAGENAME}}|(unproduced game)|}}
|stage play)={{#replace:{{PAGENAME}}|(stage play)|}}
|stage play)={{#replace:{{PAGENAME}}|(stage play)|}}
|unproduced stage play)={{#replace:{{PAGENAME}}|(unporduced stage play)|}}
|home media)={{#replace:{{PAGENAME}}|(home media)|}}
|home media)={{#replace:{{PAGENAME}}|(home media)|}}
|soundtrack)={{#replace:{{PAGENAME}}|(soundtrack)|}}
|soundtrack)={{#replace:{{PAGENAME}}|(soundtrack)|}}
|anthology)={{#replace:{{PAGENAME}}|(anthology)|}}
|anthology)={{#replace:{{PAGENAME}}|(anthology)|}}
|unproduced anthology)={{#replace:{{PAGENAME}}|(unproduced anthology)|}}
|series)={{#replace:{{PAGENAME}}|(series)|}}
|series)={{#replace:{{PAGENAME}}|(series)|}}
|reference book)={{#replace:{{PAGENAME}}|(reference book)|}}
|reference book)={{#replace:{{PAGENAME}}|(reference book)|}}
Line 58: Line 72:
|feature)={{#replace:{{PAGENAME}}|(feature)|}}
|feature)={{#replace:{{PAGENAME}}|(feature)|}}
|poem)={{#replace:{{PAGENAME}}|(poem)|}}
|poem)={{#replace:{{PAGENAME}}|(poem)|}}
|in-universe)={{#replace:{{PAGENAME}}|(in-universe)|}}
|fan work)={{#replace:{{PAGENAME}}|(fan work)|}}
|#default={{PAGENAME}}
|#default={{PAGENAME}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Latest revision as of 15:04, 23 August 2024

Instructions for {{StoryTitle}}
{{StoryTitle}} is a shorthand that you can use on story pages to refer to the title of that story. It can save a lot of key strokes. For instance, imagine you're on the page, An Incident Concerning the Continual Bombardment of the Phobos Colony (short story). Without this template, you'd be obliged to type out the entire title, because using {{PAGENAME}} would also include the pesky (short story) disambiguator.

Howver, if you type {{StoryTitle}} on the page An Incident Concerning the Continual Bombardment of the Phobos Colony (short story), it will return An Incident Concerning the Continual Bombardment of the Phobos Colony

This template works on any story page that is entitled with a proper disambiguation term, or "dab term". Please see our list of disambiguation terms for a complete list of valid dab terms.

It is "harmless" on any other type of page, in that it will simply return the PAGENAME.

Isn't this similar to another template?

Yeah, there are a lot of these dab-removing templates around.

  • This one is for removing the dab within the text of the page itself. For instance, if you are at Midnight (TV story), and you want to get rid of "(TV story)" just use {{StoryTitle}}. It's particularly useful in the {{{name}}} variable of the {{Infobox Story}} template.
  • If you want to make sure that the title of a page gets properly italicized — but the dab term doesn't — you want {{title dab away}}.
  • If you want the ability to remove the (TV story) bit of Midnight (TV story) on another page — say this one — then you'd use {{Da|Midnight (TV story)}} and get Midnight . Well, you wouldn't go to all that trouble — a pipe switch is much quicker — but another template would find {{da}} quite helpful.

Future

This template is easily adaptable to other disambiguators. If you'd like to see it expanded to other uses, please leave a message at Template talk:StoryTitle, detailing your request, and then leave a message for SOTO, Tangerineduel or indeed Bongolium500, reminding us to take a look at your note on Template talk:StoryTitle. (It's useful to keep the actual, substantive requests in one place, as with Template talk:Wales crew, so that we can refer back to it the future.)


Template classification

This template has been deliberately classed as "unknown" for technical reasons.