Difference between revisions of "United Kingdom/Locking Policy"

From Wazeopedia
(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> ==Syntax== <code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)''}}</code> ==Details== This template display a ...")
 
Line 3: Line 3:
  
 
==Syntax==
 
==Syntax==
<code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)''}}</code>
+
<code><nowiki>{{ReturnTo</nowiki> | ''link'' | ''(text)'' | '''option'''}}</code>
  
 
==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]]) followed by 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 the text "Return to ..." beside the icon.
  
 
If no parameter specified, nothing is displayed.
 
If no parameter specified, nothing is displayed.
 +
 +
===Options===
 +
 +
Options are necessarily specified from 3rd and beyond parameter.
 +
 +
<code>notext = yes</code> remove the text link and leave just the icon.
 +
  
 
==Example==
 
==Example==
Line 18: Line 25:
 
<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}}
 +
  
 
<includeonly>
 
<includeonly>

Revision as of 14:24, 30 March 2015


Syntax

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

Details

This template display a return icon (ReturnTo.png) followed by 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 the text "Return to ..." beside the icon.

If no parameter specified, nothing is displayed.

Options

Options are necessarily specified from 3rd and beyond parameter.

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


Example

{{ReturnTo | Main}} displays Template:ReturnTo


{{ReturnTo | Main | Main Page}} displays Template:ReturnTo


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