This is the template sandbox page for Template:H2G2 (diff). See also the companion subpage for test cases. |
This template inserts references to the various The Hitchhiker's Guide to the Galaxy versions into Wikipedia articles. The links can be very long-winded, so this template makes them easy and consistent.
Compare:
[[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Fourteenth|fit the fourteenth]] of the radio series
with:
{{H2G2|radio|14|link=yes}}
The template inserts text suitable for use in a list or sentence. This makes pages easy to edit — with shorter, much shorter sources. I tried doing Adams' quotes on Twitter on Towel Day, and he's not very 140 characters.
Articles that can benefit include:
- List of minor The Hitchhiker's Guide to the Galaxy characters
- Places in The Hitchhiker's Guide to the Galaxy
- Phrases from The Hitchhiker's Guide to the Galaxy
So ...
BRIANTIST (talk) 18:45, 28 May 2009 (UTC)
Usage
editLink parameter
editUse of the template should include the link parameter. Specifying link=yes will transclude text which is linked, and link=no unlinked text. Apart from the linking, the text is identical. The default is to transclude unlinked text.
Examples
edit{{H2G2|book|1|link=yes}} to {{H2G2|book|6|link=yes}} for the novels:
- the novel The Hitchhiker's Guide to the Galaxy
- the novel The Restaurant at the End of the Universe
- the novel Life, the Universe and Everything
- the novel So Long, and Thanks for All the Fish
- the novel Mostly Harmless
- the novel And Another Thing...
{{H2G2|radio|1|link=yes}} to {{H2G2|radio|26|link=yes}} for the radio episodes:
- Fit the First of the radio series
- Fit the Twenty-Sixth of the radio series
{{H2G2|phase|1|link=yes}} to {{H2G2|phase|5|link=yes}} for the radio phases:
- the radio series The Primary Phase
- the radio series The Secondary Phase
- the radio series The Tertiary Phase
- the radio series The Quandary Phase
- the radio series The Quintessential Phase
{{H2G2|tv|1|link=yes}} to {{H2G2|tv|6|link=yes}} for the TV episodes:
{{H2G2|movie|1|link=yes}} for the film:
- the 2005 movie The Hitchhiker's Guide to the Galaxy
{{H2G2|game|1|link=yes}} and {{H2G2|game|2|link=yes}} for the computer games:
- the video game The Hitchhiker's Guide to the Galaxy
- the video game Starship Titanic