வார்ப்புரு:Template shortcut/doc
{{Documentation subpage}}
 {{tlr|clear=right|Template shortcuts|Templateshortcut}}{{tsh|tsh}}
 {{High-use}}
 {{lua|Module:Shortcut}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
 This template displays one or more of a template's shortcuts (that is, redirects, also known as aliases, as in the box appearing at the right. {{tl|Tsh}} is a shortcut to this template, {{tlf|template shortcut}}, and can be used in its place, as it is in this documentation's [[Wikipedia:View source|source]] [[wikitext]].
 
 == Usage ==
 Place this template and its list of few to one, carefully selected shortcut(s) at the top of the template documentation page's [[Wikipedia:Wikitext|wikitext]], right underneath {{tl|Documentation subpage}}. In the saved, rendered text, those shortcuts will appear in this template's Shortcut(s) box, whose title will reflect the number of list items by automatically being singular or plural in form. 
 
 === Which ones to display here ===
 Although the template can show up to ten shortcuts, you are ''encouraged to choose well'' which ones to display in this template's box. Even if many redirects exist, ''two or three at the most'' is almost always enough. By keeping the number of redirects presented in the Shortcut box small, it makes it easier to remember them, and the documentation is kept well organized. 
 
 === Where to list any others ===
 List others in the Redirects section of the [[Wikipedia:Template documentation|template documentation]]. Again, not all of them need to be listed; some shortcuts are there just for historical reasons, and others differ only in minor points such as white spaces or capitalization. Such shortcut-name variations are unnecessary to list at all—just list the standard, most common version of such a variation.
 
 === Optional parameters ===
 This template has several optional parameters:
 * '''float''' – if set to &quot;left&quot;, then the box will float to the left of the page, instead of the default float &quot;right&quot;.
 * '''clear''' – if set to &quot;right&quot; (when float also is set to &quot;right&quot;), the box will be pushed to the right margin of the page, and {{clarify|text=prevent it from nest to the left of other right-floating elements.}}  Similarly, if set to &quot;left&quot; (when float also is set to &quot;left&quot;), the box will be pushed to the left margin of the page.
 * '''pre''' – can be used to show some text before the shortcut links, but within the braces. This is mostly used to add the text &quot;subst:&quot;. This shows the proper syntax for using the template with [[Wikipedia:Substitution|substitution]].
 * '''pre1, pre2 ...''' – like above, but adds the prefix only to the nth shortcut.
 
 == Examples of basic code ==
 To display one template shortcut named {{tl|uw-v1}}: 
 
 {{tlc|template shortcut|uw-v1}}
 {{template shortcut|uw-v1}}
 {{clear}}
 
 To display three template shortcuts for {{tl|uw-vandalism1}} named {{tl|uw-v1}}, {{tl|uw-vand1}}, and {{tl|uw-vandal1}}:
 
 {{tlc|template shortcut|uw-v1|uw-vand1|uw-vandal1}}
 {{template shortcut|uw-v1|uw-vand1|uw-vandal1}}
 {{clear}}
 
 == Example with the float parameter ==
 Using {{para|float|&lt;var&gt;left&lt;/var&gt;}} makes this template flow to the left of the page:
 
 &lt;code&gt;&lt;nowiki&gt;{{template shortcut|float=left|uw-v1}}&lt;/nowiki&gt;&lt;/code&gt;
 {{template shortcut|float=left|uw-v1}}
 {{clear}}
 
 == Example with text (&quot;subst:&quot;) within the braces ==
 This is mostly used to add text to show how the template could be used with [[Wikipedia:Substitution|substitution]].
 
 Use {{para|pre2|&lt;var&gt;subst:&lt;/var&gt;}} and {{para|pre3|&lt;var&gt;subst:&lt;/var&gt;}} to show &quot;subst:&quot; before the shortcut links, but within the braces:
 
 &lt;code&gt;&lt;nowiki&gt;{{template shortcut|uw-v1|pre2=subst:|uw-vand1|pre3=subst:|uw-vandal1}}&lt;/nowiki&gt;&lt;/code&gt;
 {{template shortcut|uw-v1|pre2=subst:|uw-vand1|pre3=subst:|uw-vandal1}}
 {{clear}}
 
 If you use {{para|pre|&lt;var&gt;subst:&lt;/var&gt;}}, it applies to all of the shortcuts:
 
 &lt;code&gt;&lt;nowiki&gt;{{template shortcut|pre=subst:|uw-v1|uw-vand1|uw-vandal1}}&lt;/nowiki&gt;&lt;/code&gt;
 {{template shortcut|pre=subst:|uw-v1|uw-vand1|uw-vandal1}}
 {{clear}}
 
 == TemplateData ==
 {{Format TemplateData|&lt;templatedata&gt;
 {
 	&quot;description&quot;: &quot;This template displays one or more of a template's shortcuts.&quot;,
 	&quot;format&quot;: &quot;inline&quot;,
 	&quot;params&quot;: {
 		&quot;redirect&quot;: {
 			&quot;label&quot;: &quot;Redirect?&quot;,
 			&quot;description&quot;: &quot;Whether to refer to the \&quot;shortcut/s\&quot; as \&quot;redirect/s\&quot; instead.&quot;,
 			&quot;default&quot;: &quot;0&quot;,
 			&quot;type&quot;: &quot;boolean&quot;
 		},
 		&quot;target&quot;: {
 			&quot;label&quot;: &quot;Target?&quot;,
 			&quot;description&quot;: &quot;Whether to not add the &lt;code&gt;redirect=no&lt;/code&gt; URL parameter.&quot;,
 			&quot;default&quot;: &quot;0&quot;,
 			&quot;type&quot;: &quot;boolean&quot;
 		},
 		&quot;float&quot;: {
 			&quot;label&quot;: &quot;Float&quot;,
 			&quot;description&quot;: &quot;The CSS &lt;code&gt;float&lt;/code&gt; property value.&quot;,
 			&quot;default&quot;: &quot;right&quot;,
 			&quot;suggestedvalues&quot;: [
 				&quot;left&quot;,
 				&quot;right&quot;
 			],
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;clear&quot;: {
 			&quot;label&quot;: &quot;Clear&quot;,
 			&quot;description&quot;: &quot;The CSS &lt;code&gt;clear&lt;/code&gt; property value.&quot;,
 			&quot;suggestedvalues&quot;: [
 				&quot;left&quot;,
 				&quot;right&quot;,
 				&quot;both&quot;
 			],
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;category&quot;: {
 			&quot;label&quot;: &quot;Categorize&quot;,
 			&quot;description&quot;: &quot;Whether to add pages to the error category if no alias or &lt;code&gt;msg&lt;/code&gt; is specified.&quot;,
 			&quot;default&quot;: &quot;1&quot;,
 			&quot;type&quot;: &quot;boolean&quot;
 		},
 		&quot;msg&quot;: {
 			&quot;label&quot;: &quot;Message&quot;,
 			&quot;description&quot;: &quot;An unlinked message that goes after the shortcut links.&quot;,
 			&quot;type&quot;: &quot;content&quot;
 		},
 		&quot;pre&quot;: {
 			&quot;label&quot;: &quot;Default prefix&quot;,
 			&quot;description&quot;: &quot;The default prefix&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;pre1&quot;: {
 			&quot;label&quot;: &quot;Prefix 1&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 1&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;1&quot;: {
 			&quot;label&quot;: &quot;Shortcut 1&quot;,
 			&quot;description&quot;: &quot;Template shortcut 1&quot;,
 			&quot;required&quot;: true,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre2&quot;: {
 			&quot;label&quot;: &quot;Prefix 2&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 2&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;2&quot;: {
 			&quot;label&quot;: &quot;Shortcut 2&quot;,
 			&quot;description&quot;: &quot;Template shortcut 2&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre3&quot;: {
 			&quot;label&quot;: &quot;Prefix 3&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 3&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;3&quot;: {
 			&quot;label&quot;: &quot;Shortcut 3&quot;,
 			&quot;description&quot;: &quot;Template shortcut 3&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre4&quot;: {
 			&quot;label&quot;: &quot;Prefix 4&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 4&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;4&quot;: {
 			&quot;label&quot;: &quot;Shortcut 4&quot;,
 			&quot;description&quot;: &quot;Template shortcut 4&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre5&quot;: {
 			&quot;label&quot;: &quot;Prefix 5&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 5&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;5&quot;: {
 			&quot;label&quot;: &quot;Shortcut 5&quot;,
 			&quot;description&quot;: &quot;Template shortcut 5&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre6&quot;: {
 			&quot;label&quot;: &quot;Prefix 6&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 6&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;6&quot;: {
 			&quot;label&quot;: &quot;Shortcut 6&quot;,
 			&quot;description&quot;: &quot;Template shortcut 6&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre7&quot;: {
 			&quot;label&quot;: &quot;Prefix 7&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 7&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;7&quot;: {
 			&quot;label&quot;: &quot;Shortcut 7&quot;,
 			&quot;description&quot;: &quot;Template shortcut 7&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre8&quot;: {
 			&quot;label&quot;: &quot;Prefix 8&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 8&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;8&quot;: {
 			&quot;label&quot;: &quot;Shortcut 8&quot;,
 			&quot;description&quot;: &quot;Template shortcut 8&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		},
 		&quot;pre9&quot;: {
 			&quot;label&quot;: &quot;Prefix 9&quot;,
 			&quot;description&quot;: &quot;Prefix for template shortcut 9&quot;,
 			&quot;example&quot;: &quot;subst:&quot;,
 			&quot;type&quot;: &quot;string&quot;
 		},
 		&quot;9&quot;: {
 			&quot;label&quot;: &quot;Shortcut 9&quot;,
 			&quot;description&quot;: &quot;Template shortcut 9&quot;,
 			&quot;type&quot;: &quot;wiki-template-name&quot;
 		}
 	}
 }
 &lt;/templatedata&gt;}}
 
 == See also ==
 * {{tl|shortcut}}, the standard shortcut notice.
 * {{tl|policy shortcut}}, for shortcuts to sections of policy pages.
 * {{tl|R to redirect template}}, the [[WP:RCAT|rcat]] template for redirects to rcat templates
 * {{tl|template redirect}}, automatically sets &lt;code&gt;redirect=yes&lt;/code&gt;
 
 &lt;includeonly&gt;{{Sandbox other||
 &lt;!----CATEGORIES BELOW THIS LINE, PLEASE:----&gt;
 [[Category:Shortcut templates]]
 [[Category:Template documentation]]&lt;!--Yes, this is intended for the template page – this template is used IN template docs.--&gt;