• गृह पृष्ठ
  • कुनै पनि एक लेख हेर्नुहोस्
  • नजिकैको
  • प्रवेश गर्नुहोस्
  • मेरो अभिरुचिहरू
Donate Now If Wikipedia is useful to you, please give today.
  • विकिपिडियाको बारेमा
  • अस्वीकारोक्तिहरू
विकिपिडिया

ढाँचा:Category pair

  • भाषा
  • अवलोकन
  • सम्पादन गर्नुहोस्
ढाँचा कागजात[हेर्नुहोस्] [सम्पादन गर्नुहोस्] [इतिहास] [ताजा गर्नुहोस्]
WarningThis template is used on approximately ३,२०० pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
यो ढाँचाले लुआ प्रयोग गर्दछ:
  • Module:Category pair
  • Module:Check for unknown parameters

विषयसूची

  • १ Usage
  • २ Examples
  • ३ Error checking
  • ४ Tracking categories
  • ५ See also

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 succeeding Category: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 ignore Category:NAME3, and
  • {{Category pair|NAME1|NAME2}} will ignore Category:NAME2, because a duplicate | character between the two categories causes Category:NAME2 to be the third parameter rather the second.

Tracking categories

सम्पादन गर्नुहोस्
  • श्रेणी:Pages using category pair with no output (०)
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
  • श्रेणी:Pages using category pair with more than 2 parameters (०)
See above: Error checking

See also

सम्पादन गर्नुहोस्
  • {{Navseasoncats}} — for similarly named sequential categories
  • {{Preceding category}}
  • {{Succeeding category}}

ढाँचा:Category hatnote templates

माथिको कागजात ढाँचा:Category pair/कागजातबाट समावेश गरिएको छ। (सम्पादन गर्नुहोस् | इतिहास)
सम्पादकहरूले यस ढाँचाको प्रयोगस्थल (सिर्जना गर्नुहोस् | नक्कल गर्नुहोस्) र परीक्षण (सिर्जना गर्नुहोस्) पृष्ठहरूमा प्रयोग गर्न सक्छन्।
/कागजात उपपृष्ठमा श्रेणीहरू थप्नुहोस्। यस ढाँचाका उपपृष्ठहरू।
"https://ne.wikipedia.org/w/index.php?title=ढाँचा:Category_pair&oldid=1138305" बाट अनुप्रेषित
अन्तिम सम्पादन १३ अप्रिल २०२३, १९:१६

भाषाहरू

    • العربية
    • অসমীয়া
    • Авар
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • বাংলা
    • کوردی
    • Cymraeg
    • Kadazandusun
    • Ελληνικά
    • English
    • Español
    • فارسی
    • गोंयची कोंकणी / Gõychi Konknni
    • Հայերեն
    • Bahasa Indonesia
    • ქართული
    • Qaraqalpaqsha
    • 한국어
    • मैथिली
    • Македонски
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • नेपाल भाषा
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • پښتو
    • Português
    • Română
    • Scots
    • සිංහල
    • Simple English
    • Slovenščina
    • Српски / srpski
    • தமிழ்
    • తెలుగు
    • ไทย
    • Tagalog
    • Türkçe
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tiếng Việt
    • 中文
    • 閩南語 / Bân-lâm-gú
    विकिपिडिया
    • Wikimedia Foundation
    • Powered by MediaWiki
    • यो पृष्ठलाई अन्तिमपटक १९:१६, १३ अप्रिल २०२३ मा परिवर्तन गरिएको थियो।
    • सामाग्री CC BY-SA 4.0 अनुसार उपलब्ध छ, खुलाइएको अवस्था बाहेकको हकमा।
    • गोपनियता नीति
    • विकिपिडियाको बारेमा
    • अस्वीकारोक्तिहरू
    • आचार संहिता
    • विकासकर्ताहरू
    • तथ्याङ्कहरू
    • स्मृतिशेष विवरण
    • प्रयोगका सर्तहरू
    • डेस्कटप