Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Template:Back To"

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>&larr;[[{{{href}}} | Back to {{{name}}}]]</includeonly>
 
<includeonly>&larr;[[{{{href}}} | Back to {{{name}}}]]</includeonly>
 +
<noinclude>
 +
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|name=DTP Main Page|href=Data Tools Platform Project}}
 +
 +
The code for this looks like this:
 +
 +
<pre>&amp;larr;[[Data Tools Platform Project | Back to DTP Main Page]]</pre>
 +
 +
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|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}}}}
 +
 +
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>

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