ഫലകം:Incorrect redirect template/doc

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Jump to navigation Jump to search

Usage[തിരുത്തുക]

This template is for use in other templates in conjunction with namespace detection. It adds pages to Category:Pages with templates in the wrong namespace. This template has been designed to ignore certain pages. It will not categorize nor show its notice box on:

1st parameter[തിരുത്തുക]

The 1st parameter inserts text in the message to specify in which namespace the redirect in question should (or should not) be categorized.

Example 1[തിരുത്തുക]

{{Ombox
| type = notice
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]}}}}</includeonly>
produces:
In the above example, transcluding the message box will categorize redirects in the help namespace into വർഗ്ഗം:Example category, and for pages outside the help namespace will produce this template's error message beneath the message box and populate വർഗ്ഗം:Pages with templates in the wrong namespace instead of വർഗ്ഗം:Example category.

2nd parameter[തിരുത്തുക]

The 2nd parameter inserts text in the message to specify a second namespace in which the redirect in question should (or should not) be categorized.

Example 2[തിരുത്തുക]

{{Ombox
| type = notice
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]|[[WP:Mainspace|main]]}}}}</includeonly>
produces:
In the above example, transcluding the message box will categorize pages in the help namespace or the main namespace into വർഗ്ഗം:Example category, and for pages outside the help namespace or mainspace will produce this template's error message beneath the message box and populate വർഗ്ഗം:Pages with templates in the wrong namespace instead of വർഗ്ഗം:Example category.

3rd parameter[തിരുത്തുക]

This parameter is used when the text should read "...should only be used to categorize redirects that are outside ..." (instead of "in" ...).

Example 3[തിരുത്തുക]

{{Ombox
| type = notice
| image = [[File:Stop hand orange.svg|50px]]
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]||outside}}}}</includeonly>
Note: Two pipes together are used to yield an "empty" 2nd parameter.
produces:
In the above example, transcluding the message box will categorise pages outside the help namespace into വർഗ്ഗം:Example category, and for pages that are in the help namespace will produce this template's error message beneath the message box and populate വർഗ്ഗം:Pages with templates in the wrong namespace instead of വർഗ്ഗം:Example category. If a second namespace must be specified, then turn the empty 2nd parameter into a namespace link:
Example 3.1
{{Ombox
| type = notice
| image = [[File:Stop hand orange.svg|50px]]
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]|[[WP:Mainspace|main]]|outside}}}}</includeonly>
produces:
Also note that "or" is changed to "and" (help namespace "and" the main namespace).

See also[തിരുത്തുക]


"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Incorrect_redirect_template/doc&oldid=2022396" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്