Difference between revisions of "Template:H2G2"

From blackwiki
Jump to navigation Jump to search
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)
imported>WOSlinker
(add class="error")
Line 29: Line 29:
 
         | 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 64: Line 64:
 
         | 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 (computer 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 115: Line 115:
 
         | 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>

Revision as of 20:25, 24 November 2019

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: