Template:Redirects: Difference between revisions
More actions
m some templates have many redirects |
up to 10 parameters, needed at least once |
||
| Line 1: | Line 1: | ||
<table class="shortcutbox-template plainlinks noprint" style=" | <table class="shortcutbox-template plainlinks noprint" <!-- | ||
{{#ifeq:{{{float|}}}|left | -->style="{{#ifeq:{{{float|}}}|left | ||
| float:left; margin:.3em 1em .3em .3em; | | float:left; margin:.3em 1em .3em .3em; | ||
| float:right; margin:.3em .3em .3em 1em; | | float:right; margin:.3em .3em .3em 1em; | ||
}} | }} <!-- | ||
border:1px solid #ccc; background:#fff; padding:0 .5em; text-align:center; font-size:x-small; line-height:150%"><tr><td style="border:none; background:transparent"> [{{fullurl:Special:WhatLinksHere/Template:{{PAGENAMEE}}|hidelinks=1&hidetrans=1&namespace=10}} <u style="color:#000">Redirect{{#if:{{{2|}}}|s}}:</u>]<!-- | -->border:1px solid #ccc; background:#fff; padding:0 0.5em; text-align:center; font-size:x-small; line-height:150%"> | ||
<tr><td style="border:none; background:transparent">[{{fullurl:Special:WhatLinksHere/Template:{{PAGENAMEE}}|hidelinks=1&hidetrans=1&namespace=10}} <u style="color:#000">Redirect{{#if:{{{2|}}}|s}}:</u>]<!-- | |||
--><br>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} <span style="color: green">{{{1|{{PAGENAME}}}}}</span>]}}<!-- | --><br>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} <span style="color: green">{{{1|{{PAGENAME}}}}}</span>]}}<!-- | ||
-->{{#if:{{{2|}}}|<br>{{{{{pre2|}}}[{{fullurl:Template:{{{2}}}|redirect=no}} <span style="color: green">{{{2}}}</span>]}}}}<!-- | -->{{#if:{{{2|}}}|<br>{{{{{pre2|}}}[{{fullurl:Template:{{{2}}}|redirect=no}} <span style="color: green">{{{2}}}</span>]}}}}<!-- | ||
| Line 10: | Line 11: | ||
-->{{#if:{{{4|}}}|<br>{{{{{pre4|}}}[{{fullurl:Template:{{{4}}}|redirect=no}} <span style="color: green">{{{4}}}</span>]}}}}<!-- | -->{{#if:{{{4|}}}|<br>{{{{{pre4|}}}[{{fullurl:Template:{{{4}}}|redirect=no}} <span style="color: green">{{{4}}}</span>]}}}}<!-- | ||
-->{{#if:{{{5|}}}|<br>{{{{{pre5|}}}[{{fullurl:Template:{{{5}}}|redirect=no}} <span style="color: green">{{{5}}}</span>]}}}}<!-- | -->{{#if:{{{5|}}}|<br>{{{{{pre5|}}}[{{fullurl:Template:{{{5}}}|redirect=no}} <span style="color: green">{{{5}}}</span>]}}}}<!-- | ||
-->{{#if:{{{6|}}}|<br>{{{{{ | -->{{#if:{{{6|}}}|<br>{{{{{pre6|}}}[{{fullurl:Template:{{{6}}}|redirect=no}} <span style="color: green">{{{6}}}</span>]}}}}<!-- | ||
-->{{#if:{{{7|}}}|<br>{{{{{ | -->{{#if:{{{7|}}}|<br>{{{{{pre7|}}}[{{fullurl:Template:{{{7}}}|redirect=no}} <span style="color: green">{{{7}}}</span>]}}}}<!-- | ||
-->{{#if:{{{8|}}}|<br>{{{{{pre8|}}}[{{fullurl:Template:{{{8}}}|redirect=no}} <span style="color: green">{{{8}}}</span>]}}}}<!-- | |||
-->{{#if:{{{9|}}}|<br>{{{{{pre9|}}}[{{fullurl:Template:{{{9}}}|redirect=no}} <span style="color: green">{{{9}}}</span>]}}}}<!-- | |||
-->{{#if:{{{10|}}}|<br>{{{{{pre10|}}}[{{fullurl:Template:{{{10}}}|redirect=no}} <span style="color: green">{{{10}}}</span>]}}}}<!-- | |||
--></td></tr></table><noinclude> | --></td></tr></table><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 03:46, 22 September 2017
This template is used to list the titles which redirect to a page.
Usage
{{Redirects |1= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
This template is used to list the titles which redirect to a page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Shortcut 1 | 1 | Template Shortcut 1 | Template | required |
| Shortcut 10 | 10 | Template Shortcut 10 | Template | optional |
| Shortcut 2 | 2 | Template Shortcut 2 | Template | optional |
| Shortcut 3 | 3 | Template Shortcut 3 | Template | optional |
| Shortcut 4 | 4 | Template Shortcut 4 | Template | optional |
| Shortcut 5 | 5 | Template Shortcut 5 | Template | optional |
| Shortcut 6 | 6 | Template Shortcut 6 | Template | optional |
| Shortcut 7 | 7 | Template Shortcut 7 | Template | optional |
| Shortcut 8 | 8 | Template Shortcut 8 | Template | optional |
| Shortcut 9 | 9 | Template Shortcut 9 | Template | optional |
| Float | float | The CSS “float” property value.
| String | optional |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: no user group specified
Placement: At the top of the page
Example
{{Redirects|Template shortcut|X|Y|Z|float=left}}
renders as:
See also
- {{Redirect}}
- {{Shortcut2}}, a similar floating box template for shortcuts
Localization
العربية ∙ dansk ∙ Deutsch ∙ English ∙ suomi ∙ français ∙ हिन्दी ∙ magyar ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ 한국어 ∙ македонски ∙ Nederlands ∙ polski ∙ português ∙ português do Brasil ∙ русский ∙ slovenščina ∙ svenska ∙ ไทย ∙ Türkçe ∙ اردو ∙ 中文
This template makes use of {{Autotranslate}} and the translate extension.