Template:StoryTitle: Difference between revisions
No edit summary Tag: sourceedit |
(adding dab term (DWAN comic story)) Tag: sourceedit |
||
Line 9: | Line 9: | ||
|comic story)={{#replace:{{PAGENAME}}|(comic story)|}} | |comic story)={{#replace:{{PAGENAME}}|(comic story)|}} | ||
|DWA comic story)={{#replace:{{PAGENAME}}|(DWA 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)|}} | |DWBIT comic story)={{#replace:{{PAGENAME}}|(DWBIT comic story)|}} | ||
|DWM comic story)={{#replace:{{PAGENAME}}|(DWM comic story)|}} | |DWM comic story)={{#replace:{{PAGENAME}}|(DWM comic story)|}} |
Revision as of 20:55, 6 May 2017
{{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.)