টেমপ্লেট:Check ISO 639-1/নথি
এটি টেমপ্লেট:Check ISO 639-1-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
ব্যবহৃত লুয়া: |
This template checks whether the first positional parameter is a valid ISO 639-1 language code. If it is, it outputs the code, converted to lower-case. If not, it outputs an error message and adds the page to বিষয়শ্রেণী:অবৈধ আইএসও ৬৩৯-১ ভাষা কোডের সাথে নিবন্ধসমূহ. If you don't want to add the page to the category you can use the |nocat=
parameter.
A list of valid codes is available at List of ISO 639-1 codes.
Usage[সম্পাদনা]
- Basic usage
{{Check ISO 639-1|code}}
- Suppress categories
{{Check ISO 639-1|code|nocat=true}}
To suppress categories, the |nocat=
parameter will accept any of "true", "yes", "y", or "1".
Examples[সম্পাদনা]
{{Check ISO 639-1|en}}
→ en{{Check ISO 639-1|EN}}
→ en{{Check ISO 639-1|eng}}
→ ত্রুটি: "eng" বৈধ আইএসও ৬৩৯-১ কোড নয়{{Check ISO 639-1|English}}
→ ত্রুটি: "English" বৈধ আইএসও ৬৩৯-১ কোড নয়