মডিউল:দমন বিষয়শ্রেণীসমূহ/নথি
অবয়ব
এটি মডিউল:দমন বিষয়শ্রেণীসমূহ-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল মডিউল পাতার অংশ নয়। |
This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This is a simple module to strip categories from wikitext. For example, if passed the code "foo[[Category:Some category]]
", it will return only "foo
".
The module properly handles categories escaped with the colon trick, categories whose names include invalid characters such as ">
", and categories that are surrounded with nowiki tags. However, it does not support complex wikitext such as nested links or magic words like __TOC__
. Even so, it should still remove the vast majority of categories from any given wikitext.
ব্যবহার[সম্পাদনা]
{{#invoke:Suppress categories|main|input text}}
উদাহরণ[সম্পাদনা]
Code | Output |
---|---|
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo}}
|
foo |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[বিষয়শ্রেণী:কিছু বিষয়শ্রেণী]]}}
|
foo |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[বিষয়শ্রেণী:কিছু বিষয়শ্রেণী]]bar[[বিষয়শ্রেণী:আরেকটি বিষয়শ্রেণী]]}}
|
foobar |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo{{{some_parameter|[[বিষয়শ্রেণী:Bar]]}}}}}
|
foo |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[বিষয়শ্রেণী:Bad ca[]tegory link]]}}
|
foo[[বিষয়শ্রেণী:Bad ca[]tegory link]] |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[:বিষয়শ্রেণী:Colon trick]]}}
|
fooবিষয়শ্রেণী:Colon trick |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[বিষয়শ্রেণী:Piped link|bar]]}}
|
foo |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[বিষয়শ্রেণী:Piped link|ba[]r]]}}
|
foo |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[non-বিষয়শ্রেণী সংযোগ]]}}
|
foonon-বিষয়শ্রেণী সংযোগ |
{{#invoke:দমন বিষয়শ্রেণীসমূহ|main|foo[[ বিষয়শ্রেণী : শূণ্যস্থান সাথে কিছু বিষয়শ্রেণী ]]}}
|
foo |