Template:ReturnTo View history

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|<div style="margin: auto; text-align: {{{align|right}}};"><span style="color:#93C4D3; background-color: #FFFFFF; border:2px solid #93C4D3;padding-top: 7px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; white-space: nowrap;">[[File:ReturnTo.png|30px|middle|link={{{1}}}|Return to {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]] {{#if:{{{notext|}}}||[[{{{1}}} | <span style="color:#93C4D3; font-size:80%;"> Return to {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span>]]}}</span></div>{{Clear}}|}}<noinclude>{{doc}}</noinclude>
{{#if:{{{1|}}}|
<div style="margin: 30px 0px 30px 0px; text-align: {{{align|right}}};"><span style="color:#93C4D3; background-color: #FFFFFF; border:2px solid #93C4D3;padding-top: 7px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; white-space: nowrap;">{{#if:{{{notext|}}}||[[{{{1}}} | <span style="color:#93C4D3; font-size:80%;"> Return to {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span>]]}} [[File:ReturnTo.png|30px|middle|link={{{1}}}|Return to {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</span></div>{{Clear}}
|}}<noinclude>{{doc}}</noinclude>

Latest revision as of 09:06, 14 April 2015

Documentation icon Template documentation[view] [edit] [history] [purge]

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

The above documentation is transcluded from Template:ReturnTo/doc.
Please add categories to the /doc subpage.
Subpages of this template.