Skip to main content
Jump to: navigation, search

Difference between revisions of "Template:Back To"

Line 18: Line 18:
  
 
This is equivalent to the HTML character-sequence code sampled above.  The ''name'' parameter defines the '''Back to $$''' value.  The ''href'' parameter defines the location to which the "back to" links.
 
This is equivalent to the HTML character-sequence code sampled above.  The ''name'' parameter defines the '''Back to $$''' value.  The ''href'' parameter defines the location to which the "back to" links.
 +
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 22:27, 26 August 2007


The Back To template is designed to be a simple, easily to use means of inserting "back rel links" to sub-pages. For example, the Data Tools Platform Project page links to several sub pages. Each of these pages has a link at the top allowing the user to return to the main project page easily. Like so:

Back to DTP Main Page


The code for this looks like this:

&larr;[[Data Tools Platform Project | Back to DTP Main Page]]

Of course, that's a bit hard to remember. Also, if we ever wanted to change the format for all of these "back rel links" across the board, we'd be unable to do so. This is where the template comes in.

Usage

To use the template, simply embed the following sequence as the top line of your page:

{{Back To|name=DTP Main Page|href=Data Tools Platform Project}}

This is equivalent to the HTML character-sequence code sampled above. The name parameter defines the Back to $$ value. The href parameter defines the location to which the "back to" links.

Back to the top