Template:StoryTitle: Difference between revisions
No edit summary |
No edit summary |
||
(43 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{#explode:{{PAGENAME}}|(|1}} | <includeonly>{{#switch:{{#explode:{{PAGENAME}}|(|1}} | ||
|audio story)={{#replace:{{PAGENAME}}|(audio story)|}} | |||
|unproduced audio story)={{#replace:{{PAGENAME}}|(unproduced audio story)|}} | |||
|audio anthology)={{#replace:{{PAGENAME}}|(audio anthology)|}} | |||
|audio series)={{#replace:{{PAGENAME}}|(audio series)|}} | |||
|BBC audio story)={{#replace:{{PAGENAME}}|(BBC audio story)|}} | |||
|BBV audio story)={{#replace:{{PAGENAME}}|(BBV audio story)|}} | |||
|BF audio story)={{#replace:{{PAGENAME}}|(BF audio story)|}} | |||
|CC audio story)={{#replace:{{PAGENAME}}|(CC audio story)|}} | |||
|BFM audio story)={{#replace:{{PAGENAME}}|(BFM audio story)|}} | |||
|BFBS audio story)={{#replace:{{PAGENAME}}|(BFBS audio story)|}} | |||
|BFTW audio story)={{#replace:{{PAGENAME}}|(BFTW audio story)|}} | |||
|Torchwood One audio story)={{#replace:{{PAGENAME}}|(Torchwood One audio story)|}} | |||
|11DC audio story)={{#replace:{{PAGENAME}}|(11DC audio story)|}} | |||
|UNIT audio story)={{#replace:{{PAGENAME}}|(UNIT audio story)|}} | |||
|ST audio story)={{#replace:{{PAGENAME}}|(ST audio story)|}} | |||
|comic story)={{#replace:{{PAGENAME}}|(comic story)|}} | |comic story)={{#replace:{{PAGENAME}}|(comic story)|}} | ||
|DWA comic story)={{#replace:{{PAGENAME}}|(DWA comic story)|}} | |||
|DWAN comic story)={{#replace:{{PAGENAME}}|(DWAN comic story)|}} | |||
|DWBIT comic story)={{#replace:{{PAGENAME}}|(DWBIT comic story)|}} | |||
|DWM comic story)={{#replace:{{PAGENAME}}|(DWM comic story)|}} | |||
|TVC comic story)={{#replace:{{PAGENAME}}|(TVC comic story)|}} | |||
|graphic novel)={{#replace:{{PAGENAME}}|(graphic novel)|}} | |||
|omnibus)={{#replace:{{PAGENAME}}|(omnibus)|}} | |||
|novel)={{#replace:{{PAGENAME}}|(novel)|}} | |novel)={{#replace:{{PAGENAME}}|(novel)|}} | ||
|unproduced novel)={{#replace:{{PAGENAME}}|(unproduced novel)|}} | |||
|NA novel)={{#replace:{{PAGENAME}}|(NA novel)|}} | |||
|NSA novel)={{#replace:{{PAGENAME}}|(NSA novel)|}} | |||
|BNA novel)={{#replace:{{PAGENAME}}|(BNA novel)|}} | |||
|MA novel)={{#replace:{{PAGENAME}}|(MA novel)|}} | |||
|novelisation)={{#replace:{{PAGENAME}}|(novelisation)|}} | |||
|short story)={{#replace:{{PAGENAME}}|(short story)|}} | |||
|unproduced short story)={{#replace:{{PAGENAME}}|(unproduced short story)|}} | |||
|BE short story)={{#replace:{{PAGENAME}}|(BE short story)|}} | |||
|Erimem short story)={{#replace:{{PAGENAME}}|(Erimem short story)|}} | |||
|DWAN short story)={{#replace:{{PAGENAME}}|(DWAN short story)|}} | |||
|DWS short story)={{#replace:{{PAGENAME}}|(DWS short story)|}} | |||
|DWM short story)={{#replace:{{PAGENAME}}|(DWM short story)|}} | |||
|K9 short story)={{#replace:{{PAGENAME}}|(K9 short story)|}} | |||
|ST short story)={{#replace:{{PAGENAME}}|(ST short story)|}} | |||
|VD short story)={{#replace:{{PAGENAME}}|(VD short story)|}} | |||
|FP short story)={{#replace:{{PAGENAME}}|(FP short story)|}} | |||
|WEB short story)={{#replace:{{PAGENAME}}|(WEB short story)|}} | |||
|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)|}} | ||
|audio | |1996)={{#replace:{{PAGENAME}}|(1996)|}} | ||
| | |CON episode)={{#replace:{{PAGENAME}}|(CON episode)|}} | ||
| | |TD episode)={{#replace:{{PAGENAME}}|(TD episode)|}} | ||
|DWE episode)={{#replace:{{PAGENAME}}|(DWE episode)|}} | |||
|Unleashed episode)={{#replace:{{PAGENAME}}|(Unleashed episode)|}} | |||
|ODWP episode)={{#replace:{{PAGENAME}}|(ODWP episode)|}} | |||
|documentary)={{#replace:{{PAGENAME}}|(documentary)|}} | |||
|audio documentary)={{#replace:{{PAGENAME}}|(audio documentary)|}} | |||
|home video)={{#replace:{{PAGENAME}}|(home video)|}} | |||
|unproduced home video)={{#replace:{{PAGENAME}}|(unproduced home video)|}} | |||
|webcast)={{#replace:{{PAGENAME}}|(webcast)|}} | |||
|unproduced webcast)={{#replace:{{PAGENAME}}|(unproduced webcast)|}} | |||
|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)|}} | |||
|unproduced stage play)={{#replace:{{PAGENAME}}|(unporduced stage play)|}} | |||
|home media)={{#replace:{{PAGENAME}}|(home media)|}} | |||
|soundtrack)={{#replace:{{PAGENAME}}|(soundtrack)|}} | |||
|anthology)={{#replace:{{PAGENAME}}|(anthology)|}} | |||
|unproduced anthology)={{#replace:{{PAGENAME}}|(unproduced anthology)|}} | |||
|series)={{#replace:{{PAGENAME}}|(series)|}} | |||
|reference book)={{#replace:{{PAGENAME}}|(reference book)|}} | |||
|illustration)={{#replace:{{PAGENAME}}|(illustration)|}} | |||
|feature)={{#replace:{{PAGENAME}}|(feature)|}} | |||
|poem)={{#replace:{{PAGENAME}}|(poem)|}} | |||
|in-universe)={{#replace:{{PAGENAME}}|(in-universe)|}} | |||
|fan work)={{#replace:{{PAGENAME}}|(fan work)|}} | |||
|#default={{PAGENAME}} | |#default={{PAGENAME}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[category:Title templates]] | [[category:Title templates]][[Category:Templates deliberately classified as "unknown"]] | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:04, 23 August 2024
{{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.)