Skip to main content
Jump to: navigation, search

Difference between revisions of "Template:Back To"

 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
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.
 
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==
+
{{Usage|1=<pre>{{Back To|name=DTP Main Page|href=Data Tools Platform Project}}</pre>|2={{Back To|name=DTP Main Page|href=Data Tools Platform Project}}}}
  
To use the template, simply embed the following sequence as the top line of your page:
+
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.
  
<pre>{{Back To|name=DTP Main Page|href=Data Tools Platform Project}}</pre>
+
[[Category:Templates]]
 
+
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.
+
 
</noinclude>
 
</noinclude>

Latest revision as of 18:12, 12 February 2008


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.

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

Back to DTP Main Page


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