Difference between revisions of "Template:H2G2/doc"

From blackwiki
Jump to navigation Jump to search
imported>HairyWombat
(Added one more to the list of articles (and made it a list))
imported>HairyWombat
(Update to include "link=yes/no" parameter)
Line 9: Line 9:
 
with:  
 
with:  
  
  '''<nowiki>{{H2G2|radio|14}}</nowiki>'''
+
  '''<nowiki>{{H2G2|radio|14|link=yes}}</nowiki>'''
  
 
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.
 
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.
Line 27: Line 27:
 
=== Usage ===
 
=== Usage ===
  
'''<nowiki>{{H2G2|book|1}}</nowiki>''' to '''<nowiki>{{H2G2|book|6}}</nowiki>''' link to the novels:
+
==== Link parameter ====
  
* {{H2G2|book|1}}
+
Use of the template should include the link parameter. Specifying '''link=yes''' will include text which is linked, and '''link=no''' unlinked text. Apart from the linking, the text is identical.
* {{H2G2|book|2}}
 
* {{H2G2|book|3}}
 
* {{H2G2|book|4}}
 
* {{H2G2|book|5}}
 
* {{H2G2|book|6}}
 
  
'''<nowiki>{{H2G2|radio|1}}</nowiki>''' to '''<nowiki>{{H2G2|radio|26}}</nowiki>''' link to the radio episodes:
+
==== Examples ====
  
* {{H2G2|radio|1}}
+
'''<nowiki>{{H2G2|book|1|link=yes}}</nowiki>''' to '''<nowiki>{{H2G2|book|6|link=yes}}</nowiki>''' link to the novels:
* {{H2G2|radio|26}}
 
  
'''<nowiki>{{H2G2|phase|1}}</nowiki>''' to '''<nowiki>{{H2G2|phase|5}}</nowiki>''' link to the radio phases:
+
* {{H2G2|book|1|link=yes}}
 +
* {{H2G2|book|2|link=yes}}
 +
* {{H2G2|book|3|link=yes}}
 +
* {{H2G2|book|4|link=yes}}
 +
* {{H2G2|book|5|link=yes}}
 +
* {{H2G2|book|6|link=yes}}
  
* {{H2G2|phase|1}}
+
'''<nowiki>{{H2G2|radio|1|link=yes}}</nowiki>''' to '''<nowiki>{{H2G2|radio|26|link=yes}}</nowiki>''' link to the radio episodes:
* {{H2G2|phase|2}}
 
* {{H2G2|phase|3}}
 
* {{H2G2|phase|4}}
 
* {{H2G2|phase|5}}
 
  
'''<nowiki>{{H2G2|tv|1}}</nowiki>''' to '''<nowiki>{{H2G2|tv|6}}</nowiki>''' link to the TV episodes:
+
* {{H2G2|radio|1|link=yes}}
 +
* {{H2G2|radio|26|link=yes}}
  
* {{H2G2|tv|1}}
+
'''<nowiki>{{H2G2|phase|1|link=yes}}</nowiki>''' to '''<nowiki>{{H2G2|phase|5|link=yes}}</nowiki>''' link to the radio phases:
* {{H2G2|tv|6}}
 
  
'''<nowiki>{{H2G2|movie|1}}</nowiki>''' for the film:
+
* {{H2G2|phase|1|link=yes}}
 +
* {{H2G2|phase|2|link=yes}}
 +
* {{H2G2|phase|3|link=yes}}
 +
* {{H2G2|phase|4|link=yes}}
 +
* {{H2G2|phase|5|link=yes}}
  
* {{H2G2|movie|1}}
+
'''<nowiki>{{H2G2|tv|1|link=yes}}</nowiki>''' to '''<nowiki>{{H2G2|tv|6|link=yes}}</nowiki>''' link to the TV episodes:
  
'''<nowiki>{{H2G2|game|1}}</nowiki>''' to '''<nowiki>{{H2G2|game|2}}</nowiki>''' link to the computer games:
+
* {{H2G2|tv|1|link=yes}}
 +
* {{H2G2|tv|6|link=yes}}
  
* {{H2G2|game|1}}
+
'''<nowiki>{{H2G2|movie|1|link=yes}}</nowiki>''' for the film:
* {{H2G2|game|2}}
+
 
 +
* {{H2G2|movie|1|link=yes}}
 +
 
 +
'''<nowiki>{{H2G2|game|1|link=yes}}</nowiki>''' and '''<nowiki>{{H2G2|game|2|link=yes}}</nowiki>''' link to the computer games:
 +
 
 +
* {{H2G2|game|1|link=yes}}
 +
* {{H2G2|game|2|link=yes}}
  
 
<includeonly>
 
<includeonly>

Revision as of 18:34, 1 July 2010

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 include text which is linked, and link=no unlinked text. Apart from the linking, the text is identical.

Examples

{{H2G2|book|1|link=yes}} to {{H2G2|book|6|link=yes}} link to the novels:

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

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

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

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

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