টেমপ্লেট:বিষয়শ্রেণী যুগল
এই টেমপ্লেটটি আনুমানিক ২,০০০ পাতায় ব্যবহৃত হয়েছে ,ফলে এর যে কোন পরিবর্তন ব্যাপকভাবে দেখা যাবে। দয়া করে যে কোন ধরনের পরিবর্তন টেমপ্লেটটির /খেলাঘর বা /পরীক্ষা উপপাতা অথবা আপনার ব্যবহারকারী উপপাতায় পরীক্ষা করুন। বাস্তবায়নের পূর্বে আলাপ পাতায় পরিবর্তন সম্পর্কে আলোচনা করুন। |
ব্যবহৃত লুয়া: |
Usage সম্পাদনা
Typical usage should be on dissimilar preceding/succeeding categories, or where a large gap exists in otherwise sequential categories. For similarly named sequential categories with gaps less than 5 years, use {{Navseasoncats}}
instead, and {{Navseasoncats|skip-gaps=yes}}
for gaps up to 15 years from the parent.
- For 2 adjacent categories, a preceding
Category:NAME1
, and a succeedingCategory:NAME2
, place:
{{Category pair|NAME1|NAME2}}
- at the top of the category page. Each category is displayed only if it exists. If neither category exists, nothing will be displayed.
- If there is no succeeding category, you may simply place:
{{Category pair|NAME1}}
- at the top of the category page.
- If there is no preceding category, then leave the first parameter empty, and simply place:
{{Category pair||NAME2}}
- at the top of the category page.
Examples সম্পাদনা
- Preceding and succeeding categories, both exist
{{Category pair|1934 FIFA World Cup|1950 FIFA World Cup}}
→
- Preceding category only, which exists
{{Category pair|1934 FIFA World Cup}}
→
- Succeeding category only, which exists
{{Category pair||1950 FIFA World Cup}}
→
- Preceding and succeeding categories, only preceding exists
{{Category pair|1934 British Empire Games|1942 British Empire Games}}
→
- Preceding and succeeding categories, only succeeding exists
{{Category pair|1946 British Empire Games|1954 British Empire and Commonwealth Games}}
→
- Two non-existent categories, so no output
{{Category pair|AD 10 FIFA World Cup|AD 18 FIFA World Cup}}
→
Error checking সম্পাদনা
Only the first two parameters are processed, others are ignored.
If more than two parameters are supplied, a warning message is shown when the page is previewed. When it is saved, the page is added to the hidden tracking category: Category:Pages using category pair with more than 2 parameters.
If more than two parameters are supplied, the template is unlikely to do what the editor intended. For Category:NAME1
, Category:NAME2
, and Category:NAME3
, for example:
{{Category pair|NAME1|NAME2|NAME3}}
will ignoreCategory:NAME3
, and{{Category pair|NAME1||NAME2}}
will ignoreCategory:NAME2
, because a duplicate|
character between the two categories causesCategory:NAME2
to be the third parameter rather the second.
Tracking categories সম্পাদনা
- If neither parameter is a category which currently exists the template will produce no output. This is not necessarily an error; the other categories may simply be part of an incomplete series which will be completed in due course
- See above: Error checking
See also সম্পাদনা
- {{Navseasoncats}} — for similarly named sequential categories
- {{Preceding category}}
- {{Succeeding category}}
টেমপ্লেট:Category hatnote templates
উপরোক্ত নথিটি টেমপ্লেট:বিষয়শ্রেণী যুগল/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |