Typical usage should be on dissimilar preceding/succeeding categories, or where a large gap exists in otherwise sequential categories. For similarly named seque
| This is a documentation subpage for Template:Category pair. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 3,000 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. |
| This template uses Lua: |
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.
Category:NAME1, and a succeeding Category:NAME2, place:{{Category pair|NAME1|NAME2}}{{Category pair|NAME1}}{{Category pair||NAME2}}{{Category pair|1934 FIFA World Cup|1950 FIFA World Cup}} → {{Category pair|1934 FIFA World Cup}} → {{Category pair||1950 FIFA World Cup}} → {{Category pair|1934 British Empire Games|1942 British Empire Games}} →{{Category pair|1946 British Empire Games|1954 British Empire and Commonwealth Games}} →{{Category pair|AD 10 FIFA World Cup|AD 18 FIFA World Cup}} →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.
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.