মডিউল:Redirect/নথি
এটি মডিউল:Redirect-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল মডিউল পাতার অংশ নয়। |
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes at the talk page before implementing them. |
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
This module accepts the name of a single page. It determines if the page is a redirect; if so it looks up the page, extracts the target, and returns the target name as text. Its usage is {{#invoke:redirect|main|redirect-page-name}}.
The template normally neither takes nor gives square brackets, so to show the result as a link use [[{{#invoke:redirect|main|redirect-page-name}}]]. An error is produced if the redirect does not exist, but for versatility no error is given if the file is not a redirect (returns the original text) or if the file name is blank (returns blank).
However, if the parameter bracket is given a nonblank value, brackets will be passed on if present.
Examples[সম্পাদনা]
{{#invoke:redirect|main|WP:AFC}}
produces
উইকিপিডিয়া:নিবন্ধ সৃষ্টিকরণ
{{#invoke:redirect|main|[[WP:AFD]]|bracket=yes}}
produces
উইকিপিডিয়া:নিবন্ধ অপসারণের প্রস্তাবনা
If the target isnt a redirect:
{{#invoke:redirect|main|Wikipedia:Articles for deletion|}}
produces
উইকিপিডিয়া:নিবন্ধ অপসারণের প্রস্তাবনা