Difference between revisions of "Template:H2G2"
imported>HairyWombat m (Typo) |
imported>Sroc (capitalise radio episode titles ("Fit the First", etc.) per talk page, per MOS:CT, consistent with titles used in the radio series articles) |
||
| Line 3: | Line 3: | ||
| yes = {{#switch: {{{1|}}} | | yes = {{#switch: {{{1|}}} | ||
| radio = {{#switch: {{{2}}} | | radio = {{#switch: {{{2}}} | ||
| − | | 1 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the First| | + | | 1 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the First|Fit the First]] |
| − | | 2 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Second| | + | | 2 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Second|Fit the Second]] |
| − | | 3 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Third| | + | | 3 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Third|Fit the Third]] |
| − | | 4 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Fourth| | + | | 4 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Fourth|Fit the Fourth]] |
| − | | 5 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Fifth| | + | | 5 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Fifth|Fit the Fifth]] |
| − | | 6 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Sixth| | + | | 6 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Sixth|Fit the Sixth]] |
| − | | 7 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Seventh| | + | | 7 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Seventh|Fit the Seventh]] |
| − | | 8 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Eighth| | + | | 8 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Eighth|Fit the Eighth]] |
| − | | 9 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Ninth| | + | | 9 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Ninth|Fit the Ninth]] |
| − | | 10 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Tenth| | + | | 10 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Tenth|Fit the Tenth]] |
| − | | 11 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Eleventh| | + | | 11 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Eleventh|Fit the Eleventh]] |
| − | | 12 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Twelfth| | + | | 12 = [[The Hitchhiker's Guide to the Galaxy Primary and Secondary Phases#Fit the Twelfth|Fit the Twelfth]] |
| − | | 13 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Thirteenth| | + | | 13 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Thirteenth|Fit the Thirteenth]] |
| − | | 14 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Fourteenth| | + | | 14 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Fourteenth|Fit the Fourteenth]] |
| − | | 15 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Fifteenth| | + | | 15 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Fifteenth|Fit the Fifteenth]] |
| − | | 16 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Sixteenth| | + | | 16 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Sixteenth|Fit the Sixteenth]] |
| − | | 17 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Seventeenth| | + | | 17 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Seventeenth|Fit the Seventeenth]] |
| − | | 18 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Eighteenth| | + | | 18 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Eighteenth|Fit the Eighteenth]] |
| − | | 19 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Nineteenth| | + | | 19 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Nineteenth|Fit the Nineteenth]] |
| − | | 20 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twentieth| | + | | 20 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twentieth|Fit the Twentieth]] |
| − | | 21 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-First| | + | | 21 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-First|Fit the Twenty-First]] |
| − | | 22 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Second| | + | | 22 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Second|Fit the Twenty-Second]] |
| − | | 23 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Third| | + | | 23 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Third|Fit the Twenty-Third]] |
| − | | 24 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Fourth| | + | | 24 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Fourth|Fit the Twenty-Fourth]] |
| − | | 25 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Fifth| | + | | 25 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Fifth|Fit the Twenty-Fifth]] |
| − | | 26 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Sixth| | + | | 26 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#Fit the Twenty-Sixth|Fit the Twenty-Sixth]] |
| #default = <span style="color:red">Error in template H2G2,radio: Second parameter not recognised</span> | | #default = <span style="color:red">Error in template H2G2,radio: Second parameter not recognised</span> | ||
}} of the radio series | }} of the radio series | ||
| Line 89: | Line 89: | ||
| radio = | | radio = | ||
{{#switch: {{{2}}} | {{#switch: {{{2}}} | ||
| − | | 1 = | + | | 1 = Fit the First |
| − | | 2 = | + | | 2 = Fit the Second |
| − | | 3 = | + | | 3 = Fit the Third |
| − | | 4 = | + | | 4 = Fit the Fourth |
| − | | 5 = | + | | 5 = Fit the Fifth |
| − | | 6 = | + | | 6 = Fit the Sixth |
| − | | 7 = | + | | 7 = Fit the Seventh |
| − | | 8 = | + | | 8 = Fit the Eighth |
| − | | 9 = | + | | 9 = Fit the Ninth |
| − | | 10 = | + | | 10 = Fit the Tenth |
| − | | 11 = | + | | 11 = Fit the Eleventh |
| − | | 12 = | + | | 12 = Fit the Twelfth |
| − | | 13 = | + | | 13 = Fit the Thirteenth |
| − | | 14 = | + | | 14 = Fit the Fourteenth |
| − | | 15 = | + | | 15 = Fit the Fifteenth |
| − | | 16 = | + | | 16 = Fit the Sixteenth |
| − | | 17 = | + | | 17 = Fit the Seventeenth |
| − | | 18 = | + | | 18 = Fit the Eighteenth |
| − | | 19 = | + | | 19 = Fit the Nineteenth |
| − | | 20 = | + | | 20 = Fit the Twentieth |
| − | | 21 = | + | | 21 = Fit the Twenty-First |
| − | | 22 = | + | | 22 = Fit the Twenty-Second |
| − | | 23 = | + | | 23 = Fit the Twenty-Third |
| − | | 24 = | + | | 24 = Fit the Twenty-Fourth |
| − | | 25 = | + | | 25 = Fit the Twenty-Fifth |
| − | | 26 = | + | | 26 = Fit the Twenty-Sixth |
| #default = <span style="color:red">Error in template H2G2,radio: Second parameter not recognised</span> | | #default = <span style="color:red">Error in template H2G2,radio: Second parameter not recognised</span> | ||
}} of the radio series | }} of the radio series | ||
Revision as of 12:35, 10 November 2013
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
Link parameter
Use 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
{{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 computer game The Hitchhiker's Guide to the Galaxy
- the computer game Starship Titanic
| The above documentation is transcluded from Template:H2G2/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |