ব্যবহারকারী:Johnuniq/sandbox: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
test of Template:Englishdetect |
আফতাবুজ্জামান (আলোচনা | অবদান) সম্পাদনা সারাংশ নেই |
||
৬ নং লাইন: | ৬ নং লাইন: | ||
! Input !! Output |
! Input !! Output |
||
|- |
|- |
||
| <nowiki>{{englishdetect|Example}}</nowiki> || {{englishdetect|Example}} |
| <nowiki>{{englishdetect|Example}}</nowiki> || {{englishdetect|Example}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|Wiki উইকি}}</nowiki> || {{englishdetect|Wiki উইকি}} |
| <nowiki>{{englishdetect|Wiki উইকি}}</nowiki> || {{englishdetect|Wiki উইকি}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|উইকি}}</nowiki> || {{englishdetect|উইকি}} |
| <nowiki>{{englishdetect|উইকি}}</nowiki> || {{englishdetect|উইকি}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|উইকিWiki}}</nowiki> || {{englishdetect|উইকিWiki}} |
| <nowiki>{{englishdetect|উইকিWiki}}</nowiki> || {{englishdetect|উইকিWiki}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|উইকিWiki বাংলা}}</nowiki> || {{englishdetect|উইকিWiki বাংলা}} |
| <nowiki>{{englishdetect|উইকিWiki বাংলা}}</nowiki> || {{englishdetect|উইকিWiki বাংলা}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|1234567890 ১২৩৪৫৬৭৮৯০}}</nowiki> || {{englishdetect|1234567890 ১২৩৪৫৬৭৮৯০}} |
| <nowiki>{{englishdetect|1234567890 ১২৩৪৫৬৭৮৯০}}</nowiki> || {{englishdetect|1234567890 ১২৩৪৫৬৭৮৯০}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|.-*^?&% etc.}}</nowiki> || {{englishdetect|.-*^?&% etc.}} |
| <nowiki>{{englishdetect|.-*^?&% etc.}}</nowiki> || {{englishdetect|.-*^?&% etc.}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|1১২2}}</nowiki> || {{englishdetect|1১২2}} |
| <nowiki>{{englishdetect|1১২2}}</nowiki> || {{englishdetect|1১২2}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|a১২b}}</nowiki> || {{englishdetect|a১২b}} |
| <nowiki>{{englishdetect|a১২b}}</nowiki> || {{englishdetect|a১২b}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|a1১২b2}}</nowiki> || {{englishdetect|a1১২b2}} |
| <nowiki>{{englishdetect|a1১২b2}}</nowiki> || {{englishdetect|a1১২b2}} || {{y}} |
||
|- |
|- |
||
| <nowiki>{{englishdetect|1a১২2b}}</nowiki> || {{englishdetect|1a১২2b}} |
| <nowiki>{{englishdetect|1a১২2b}}</nowiki> || {{englishdetect|1a১২2b}} || {{y}} |
||
|} |
|} |
||
৩৪ নং লাইন: | ৩৪ নং লাইন: | ||
*Tracking category is added regardless of namespace of page with template. |
*Tracking category is added regardless of namespace of page with template. |
||
[[ব্যবহারকারী:Johnuniq|Johnuniq]] ([[ব্যবহারকারী আলাপ:Johnuniq|আলাপ]]) ০৩:৩২, ১৭ ডিসেম্বর ২০১৫ (ইউটিসি) |
[[ব্যবহারকারী:Johnuniq|Johnuniq]] ([[ব্যবহারকারী আলাপ:Johnuniq|আলাপ]]) ০৩:৩২, ১৭ ডিসেম্বর ২০১৫ (ইউটিসি) |
||
===Problem === |
|||
I found a problem. It need to be fixed, otherwise i can't use [[Template:englishdetect]] via another template. Problem is: when i give any wikilink, [[Template:englishdetect]] unlink that wikilink. ([https://bn.wikipedia.org/wiki/বিশেষ:TemplateSandbox?prefix=ব্যবহারকারী%3AAftabuzzaman%2Fখেলাঘর&page=চিত্র%3ATest+file.jpg&revid=&text= see this exemple]) |
|||
{| class="wikitable" |
|||
! Input !! Output !! expected/should be |
|||
|- |
|||
| <nowiki>{{englishdetect|This is a [[Example]]}}</nowiki> || {{englishdetect|This is a [[Example]]}} || <span style="color:red"><abbr title="অনুগ্রহ করে এটি বাংলায় অনুবাদ করুন">This is a [[Example]]</abbr></span> |
|||
|- |
|||
| <nowiki>{{englishdetect|This is a [[Example|Test]]}}</nowiki> || {{englishdetect|This is a [[Example|Test]]}} || <span style="color:red"><abbr title="অনুগ্রহ করে এটি বাংলায় অনুবাদ করুন">This is a [[Example|Test]]</abbr></span> |
|||
|- |
|||
| <nowiki>{{englishdetect|[[Dhaka]] ([[Dhaka|Uttara]])}}</nowiki> || {{englishdetect|[[Dhaka]] ([[Dhaka|Uttara]])}} || <span style="color:red"><abbr title="অনুগ্রহ করে এটি বাংলায় অনুবাদ করুন">[[Dhaka]] ([[Dhaka|Uttara]])</abbr></span> |
|||
|} |
|||
{| class="wikitable" |
|||
! Input !! Output !! expected/should be |
|||
|- |
|||
| <nowiki>{{englishdetect|[[ঢাকা]], [[ঢাকা|উওরা]] ([[এক]])}}</nowiki> || {{englishdetect|[[ঢাকা]], [[ঢাকা|উওরা]] ([[এক]])}} || [[ঢাকা]], [[ঢাকা|উওরা]] ([[এক]]) || {{y}} :) |
|||
|} |
|||
[[ব্যবহারকারী:Aftabuzzaman|আফতাব]] ([[ব্যবহারকারী আলাপ:Aftabuzzaman|আলাপ]]) ১৬:০৬, ১৭ ডিসেম্বর ২০১৫ (ইউটিসি) |
১৬:০৬, ১৭ ডিসেম্বর ২০১৫ তারিখে সংশোধিত সংস্করণ
Quick test for:
- Module:ইংরেজি সনাক্তকরণ • Module to highlight any English letters in input, and add a tracking category.
- Template:ইংরেজি সনাক্তকরণ • Template that invokes the module.
Input | Output | |
---|---|---|
{{englishdetect|Example}} | Example | |
{{englishdetect|Wiki উইকি}} | Wiki উইকি | |
{{englishdetect|উইকি}} | উইকি | |
{{englishdetect|উইকিWiki}} | উইকিWiki | |
{{englishdetect|উইকিWiki বাংলা}} | উইকিWiki বাংলা | |
{{englishdetect|1234567890 ১২৩৪৫৬৭৮৯০}} | 1234567890 ১২৩৪৫৬৭৮৯০ | |
{{englishdetect|.-*^?&% etc.}} | .-*^?&% etc. | |
{{englishdetect|1১২2}} | 1১২2 | |
{{englishdetect|a১২b}} | a১২b | |
{{englishdetect|a1১২b2}} | a1১২b2 | |
{{englishdetect|1a১২2b}} | 1a১২2b |
Points to think about:
- Input may include leading/trailing spaces that are preserved.
- Output is empty text if the input is empty.
- Tracking category is added regardless of namespace of page with template.
Johnuniq (আলাপ) ০৩:৩২, ১৭ ডিসেম্বর ২০১৫ (ইউটিসি)
Problem
I found a problem. It need to be fixed, otherwise i can't use Template:englishdetect via another template. Problem is: when i give any wikilink, Template:englishdetect unlink that wikilink. (see this exemple)
Input | Output | expected/should be |
---|---|---|
{{englishdetect|This is a [[Example]]}} | This is a Example | This is a Example |
{{englishdetect|This is a [[Example|Test]]}} | This is a Test | This is a Test |
{{englishdetect|[[Dhaka]] ([[Dhaka|Uttara]])}} | Dhaka (Uttara) | Dhaka (Uttara) |
Input | Output | expected/should be | |
---|---|---|---|
{{englishdetect|[[ঢাকা]], [[ঢাকা|উওরা]] ([[এক]])}} | ঢাকা, উওরা (এক) | ঢাকা, উওরা (এক) | :) |