Difference between revisions of "Template:H2G2"

From blackwiki
Jump to navigation Jump to search
imported>HairyWombat
m (Typo)
imported>NinjaTazzyDevil
 
(2 intermediate revisions by 2 users not shown)
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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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|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 class="error" style="color:red">Error in template H2G2,radio: Second parameter not recognised</span>
 
         }} of the radio series
 
         }} of the radio series
  
Line 40: Line 40:
 
         | 5 = ''[[Mostly Harmless]]''
 
         | 5 = ''[[Mostly Harmless]]''
 
         | 6 = [[And Another Thing... (novel)|''And Another Thing...'']]
 
         | 6 = [[And Another Thing... (novel)|''And Another Thing...'']]
         | #default = <span style="color:red">Error in template H2G2,book: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,book: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 51: Line 51:
 
         | 5
 
         | 5
 
         | 6 = {{{2}}} of the [[The Hitchhiker's Guide to the Galaxy (TV series)#Episode {{{2}}}|TV series]]
 
         | 6 = {{{2}}} of the [[The Hitchhiker's Guide to the Galaxy (TV series)#Episode {{{2}}}|TV series]]
         | #default = <span style="color:red">Error in template H2G2,tv: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,tv: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 61: Line 61:
  
 
     | game =  
 
     | game =  
         the computer game {{#switch: {{{2}}}
+
         the video game {{#switch: {{{2}}}
         | 1 = [[The Hitchhiker's Guide to the Galaxy (computer game)|''The Hitchhiker's Guide to the Galaxy'']]
+
         | 1 = [[The Hitchhiker's Guide to the Galaxy (video game)|''The Hitchhiker's Guide to the Galaxy'']]
 
         | 2 = ''[[Starship Titanic]]''
 
         | 2 = ''[[Starship Titanic]]''
         | #default = <span style="color:red">Error in template H2G2,game: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,game: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 74: Line 74:
 
         | 4 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#The Quandary Phase|''The Quandary Phase'']]
 
         | 4 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#The Quandary Phase|''The Quandary Phase'']]
 
         | 5 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#The Quintessential Phase|''The Quintessential Phase'']]
 
         | 5 = [[The Hitchhiker's Guide to the Galaxy Tertiary to Quintessential Phases#The Quintessential Phase|''The Quintessential Phase'']]
         | #default = <span style="color:red">Error in template H2G2,phase: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,phase: Second parameter not recognised</span>
 
         }}
 
         }}
  
 
     | = {{#switch: {{{2|}}}
 
     | = {{#switch: {{{2|}}}
 
         | = <!-- If blanks, do nothing -->
 
         | = <!-- If blanks, do nothing -->
         | #default = <span style="color:red">Error in template H2G2: First parameter can not be blank</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2: First parameter can not be blank</span>
 
         }}
 
         }}
  
     | #default = <span style="color:red">Error in template H2G2: First parameter not recognised</span>
+
     | #default = <span class="error" style="color:red">Error in template H2G2: First parameter not recognised</span>
 
     }}
 
     }}
  
Line 89: Line 89:
 
     | radio =  
 
     | radio =  
 
         {{#switch: {{{2}}}
 
         {{#switch: {{{2}}}
         | 1 = fit the first
+
         | 1 = Fit the First
         | 2 = fit the second
+
         | 2 = Fit the Second
         | 3 = fit the third
+
         | 3 = Fit the Third
         | 4 = fit the fourth
+
         | 4 = Fit the Fourth
         | 5 = fit the fifth
+
         | 5 = Fit the Fifth
         | 6 = fit the sixth
+
         | 6 = Fit the Sixth
         | 7 = fit the seventh
+
         | 7 = Fit the Seventh
         | 8 = fit the eighth
+
         | 8 = Fit the Eighth
         | 9 = fit the ninth
+
         | 9 = Fit the Ninth
         | 10 = fit the tenth
+
         | 10 = Fit the Tenth
         | 11 = fit the eleventh
+
         | 11 = Fit the Eleventh
         | 12 = fit the twelfth
+
         | 12 = Fit the Twelfth
         | 13 = fit the thirteenth
+
         | 13 = Fit the Thirteenth
         | 14 = fit the fourteenth
+
         | 14 = Fit the Fourteenth
         | 15 = fit the fifteenth
+
         | 15 = Fit the Fifteenth
         | 16 = fit the sixteenth
+
         | 16 = Fit the Sixteenth
         | 17 = fit the seventeenth
+
         | 17 = Fit the Seventeenth
         | 18 = fit the eighteenth
+
         | 18 = Fit the Eighteenth
         | 19 = fit the nineteenth
+
         | 19 = Fit the Nineteenth
         | 20 = fit the twentieth
+
         | 20 = Fit the Twentieth
         | 21 = fit the twenty-first
+
         | 21 = Fit the Twenty-First
         | 22 = fit the twenty-second
+
         | 22 = Fit the Twenty-Second
         | 23 = fit the twenty-third
+
         | 23 = Fit the Twenty-Third
         | 24 = fit the twenty-fourth
+
         | 24 = Fit the Twenty-Fourth
         | 25 = fit the twenty-fifth
+
         | 25 = Fit the Twenty-Fifth
         | 26 = fit the twenty-sixth
+
         | 26 = Fit the Twenty-Sixth
         | #default = <span style="color:red">Error in template H2G2,radio: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,radio: Second parameter not recognised</span>
 
         }} of the radio series
 
         }} of the radio series
  
Line 126: Line 126:
 
         | 5 = ''Mostly Harmless''
 
         | 5 = ''Mostly Harmless''
 
         | 6 = ''And Another Thing...''
 
         | 6 = ''And Another Thing...''
         | #default = <span style="color:red">Error in template H2G2,book: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,book: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 137: Line 137:
 
         | 5
 
         | 5
 
         | 6 = {{{2}}} of the TV series
 
         | 6 = {{{2}}} of the TV series
         | #default = <span style="color:red">Error in template H2G2,tv: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,tv: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 143: Line 143:
 
         the 2005 movie {{#switch: {{{2}}}
 
         the 2005 movie {{#switch: {{{2}}}
 
         | 1 = ''The Hitchhiker's Guide to the Galaxy''
 
         | 1 = ''The Hitchhiker's Guide to the Galaxy''
         | #default = <span style="color:red">Error in template H2G2,movie: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,movie: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 150: Line 150:
 
         | 1 = ''The Hitchhiker's Guide to the Galaxy''
 
         | 1 = ''The Hitchhiker's Guide to the Galaxy''
 
         | 2 = ''Starship Titanic''
 
         | 2 = ''Starship Titanic''
         | #default = <span style="color:red">Error in template H2G2,game: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,game: Second parameter not recognised</span>
 
         }}
 
         }}
  
Line 160: Line 160:
 
         | 4 = ''The Quandary Phase''
 
         | 4 = ''The Quandary Phase''
 
         | 5 = ''The Quintessential Phase''
 
         | 5 = ''The Quintessential Phase''
         | #default = <span style="color:red">Error in template H2G2,phase: Second parameter not recognised</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2,phase: Second parameter not recognised</span>
 
         }}
 
         }}
  
 
     | = {{#switch: {{{2|}}}
 
     | = {{#switch: {{{2|}}}
 
         | = <!-- If blanks, do nothing -->
 
         | = <!-- If blanks, do nothing -->
         | #default = <span style="color:red">Error in template H2G2: First parameter can not be blank</span>
+
         | #default = <span class="error" style="color:red">Error in template H2G2: First parameter can not be blank</span>
 
         }}
 
         }}
  
     | #default = <span style="color:red">Error in template H2G2: First parameter not recognised</span>
+
     | #default = <span class="error" style="color:red">Error in template H2G2: First parameter not recognised</span>
 
     }}
 
     }}
  
| #default = <span style="color:red">Error in template H2G2: Link parameter not recognised</span>
+
| #default = <span class="error" style="color:red">Error in template H2G2: Link parameter not recognised</span>
 
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
 
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>

Latest revision as of 00:14, 31 January 2021

50px Template documentation[view] [edit] [history] [purge]

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:

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:

{{H2G2|radio|1|link=yes}} to {{H2G2|radio|26|link=yes}} for the radio episodes:

{{H2G2|phase|1|link=yes}} to {{H2G2|phase|5|link=yes}} for the radio phases:

{{H2G2|tv|1|link=yes}} to {{H2G2|tv|6|link=yes}} for the TV episodes:

{{H2G2|movie|1|link=yes}} for the film:

{{H2G2|game|1|link=yes}} and {{H2G2|game|2|link=yes}} for the computer games: