Template:Redirect template/doc: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
remove removed parameter from documentation |
add nocat option and fix newlines |
||
Line 1: | Line 1: | ||
<noinclude>{{Documentation page}}</noinclude> |
<noinclude>{{Documentation page}}</noinclude><!-- |
||
This template is a meta-template for [[:Category:Redirect templates|redirect templates]] that assign a category to the redirect. They are meant to be transcluded in the first positional argument of [[Template:Redirect page]]. It takes following arguments: |
-->This template is a meta-template for [[:Category:Redirect templates|redirect templates]] that assign a category to the redirect. They are meant to be transcluded in the first positional argument of [[Template:Redirect page]]. It takes following arguments: |
||
* <code><nowiki>{{{1}}}</nowiki></code>: name of category being added. |
* <code><nowiki>{{{1}}}</nowiki></code>: name of category being added. |
||
* <code><nowiki>{{{2}}}</nowiki></code>: text to display after "this redirect". |
* <code><nowiki>{{{2}}}</nowiki></code>: text to display after "this redirect". |
||
Line 7: | Line 7: | ||
<noinclude>{{Template:Redirect template/doc template|Category name}}</noinclude> |
<noinclude>{{Template:Redirect template/doc template|Category name}}</noinclude> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Where the category name should match the first positional argument passed to the main template. |
Where the category name should match the first positional argument passed to the main template.<!-- |
||
[[Category:Meta-templates]] |
-->{{#if:{{{nocat|}}}||[[Category:Meta-templates]]}} |