Template:ReturnTo/doc View history

(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> ==Syntax== <code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)''}}</code> ==Details== This template display a ...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


==Syntax==
==Syntax==
<code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)''}}</code>
 
<code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)'' | '''(option)'''}}</code><br />
 


==Details==
==Details==
This template display a return icon ([[File:ReturnTo.png|30px]]) which links to any page mentioned in parameter 1. Optionally, a second parameter can be used to provide an explicit name for the return page and display the text "Return to ..." beside the icon.
This template display a return icon ([[File:ReturnTo.png|30px]]) with a text which links to any page mentioned in parameter 1. Optionally, a second parameter can be used to provide an alternate name for the return page that will be displayed in the text "Return to ..." beside the icon.


If no parameter specified, nothing is displayed.
If no parameter specified, nothing is displayed.
===Options===
<code>notext = yes</code> remove the text link and leave just the icon.
<code>align = left/center/right</code> allow to align the template on the left/center or right of the page. Default behavior is alignment to the right.


==Example==
==Example==
Line 18: Line 26:
<code><nowiki>{{ReturnTo | Main | Main Page}}</nowiki></code> displays
<code><nowiki>{{ReturnTo | Main | Main Page}}</nowiki></code> displays
{{ReturnTo | Main | Main Page}}
{{ReturnTo | Main | Main Page}}
<code><nowiki>{{ReturnTo | Main | Main Page | notext=yes}}</nowiki></code> displays
{{ReturnTo | Main | Main Page | notext=yes}}
<code><nowiki>{{ReturnTo | Main | Main Page | align=center}}</nowiki></code> displays
{{ReturnTo | Main | Main Page | align=center}}


<includeonly>
<includeonly>

Latest revision as of 08:29, 31 March 2015

This is a documentation subpage for Template:ReturnTo.
It contains usage information, categories and other content that is not part of the original template page.

Syntax

{{ReturnTo | link | (text) | (option)}}


Details

This template display a return icon () with a text which links to any page mentioned in parameter 1. Optionally, a second parameter can be used to provide an alternate name for the return page that will be displayed in the text "Return to ..." beside the icon.

If no parameter specified, nothing is displayed.

Options

notext = yes remove the text link and leave just the icon.

align = left/center/right allow to align the template on the left/center or right of the page. Default behavior is alignment to the right.

Example

{{ReturnTo | Main}} displays


{{ReturnTo | Main | Main Page}} displays


{{ReturnTo | Main | Main Page | notext=yes}} displays

Return to Main Page


{{ReturnTo | Main | Main Page | align=center}} displays