Templat:Navseasoncats/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
RaFaDa20631 (bicara | kontrib)
Tidak ada ringkasan suntingan
Tag: halaman dengan galat skrip VisualEditor
Tag: halaman dengan galat skrip Suntingan visualeditor-wikitext
 
(4 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 13:
! style="background:#CCCCCC;" |Contoh luaran
|-
| Musim || Tidak || {{Navseasoncats|testcase=2001–02Piala FA Cup2001–2002}}
|-
| TV season || – || {{Navseasoncats|testcase=Episode Futurama (seasonmusim 1) episodes}}
|-
| Masa jabatan || Tidak || {{Navseasoncats|testcase=MEPsMEP 2004–2009}}
|-
| Masa jabatan (ireguler) || Tidak || {{Navseasoncats|testcase=Wales AMs 2003–2007}}
|-
| Rentang numerik || – || <!--{{Navseasoncats|testcase=Taxonbars with 20–24 taxon IDs}}'s EPFC = 129-->
{| class="toccolours hlist" style="text-align: center; margin: auto;"
|
Baris 33:
|}
|-
| Dekade || SM || {{Navseasoncats|testcase=1990sIndonesia indalam Scotlandtahun 1999-an}}
|-
| Tahun || SM || {{Navseasoncats|testcase=1999Indonesia indalam Scotlandtahun 1999}}
|-
| Tahun (''auto-condensed'') || – || {{Navseasoncats|testcase=Candidates in the 2000 United States presidential election}}
Baris 55:
| Mixed year || – || {{Navseasoncats|testcase=1778 establishments in the Province of Quebec (1763–1791)}}
|}
 
===Searching behavior===
Most multi-year seasons/office terms/numerical ranges are acceptable, as long as the season duration/term length/range size is <= 10, ''and'' the gap between seasons is <= 6. For series exceeding either of these criteria, see/use {{tl|Irregular navseasoncats}}.
 
The length of each season is automatically determined from the originating category name, up to and including 10 years. [[MOS:DATERANGE]] compliance is preferred, but some deviation is allowed and [[:Category:Navseasoncats range abbreviated (MOS)|tracked]] for regular series with seasons > 1 year long. {{tl|Category redirect}}s are followed, and tracked for either [[:Category:Navseasoncats range redirected (MOS)|MOS contravention]] (to be corrected) or for [[:Category:Navseasoncats range redirected (base change)|navigational aid]] (no error). The gap size between successive seasons is ''also'' automatically determined, up to and including 5 years, and defaults to 0 (e.g. {{nowrap|1995–96}} → {{nowrap|1996–97}}).
 
Automatically condensed years are supported for ''presidential'' categories only (but can be easily expanded as needed), for gaps up to and including 5 years, and defaults to 1. To skip gaps of up to 25 years in any ''year'' categories, use {{para|skip-gaps|yes}}.
 
===Limitations===
;Numerical limitations & AD/BC/E
* Season/office term categories do not work for ''any'' years BC, which will be hidden, because no working examples were found.
* Decade categories recognize BC, but not BCE, because no working examples were found.
* Ordinal & numeral words do not work above the ninety-ninth & ninety-nine, because no working examples were found.
;Condensation
* Automatically condensed ''Olympics'' display is not supported due to peculiarities; use {{tl|Winter Olympics by year category navigation}}, etc., instead.
* Automatically condensed ''years'' ''are'' supported for ''presidential'' categories only, due to their consistency; use {{para|skip-gaps|yes}} as desired elsewhere.
;Work-arounds
* '''Base-name changes:''' create at least 2 logically numbered {{tl|R from category navigation}} (1 [[Special:Permalink/1040102736|forward]] & 1 [[Special:Permalink/1040103249|backward]]), to join both related series.
* '''Unaccounted-for name+number conventions:''' where a fixed number is part of the prefix text, e.g. ''Chapter 11 bankruptcies'', a non-breaking space may force the template to work. See [[Special:Diff/948223374|this fix]], where {{tl|title year}} skipped over ''11'' as part of a word rather than a discrete number. (This has been accounted for and is no longer required in this example.)
* '''General:''' for large, permanent gaps<sup>†</sup> between successive categories, use {{tl|Succeeding category}}, {{tl|Preceding category}}, {{tl|Category pair}}, as needed, in addition to {{tl|Navseasoncats}} on both sides, or in the middle, of the gap. Even if {{tl|Navseasoncats}} is [[:Category:Navseasoncats isolated|isolated]], it has the benefit of confirming the absence of nearby categories to the reader or maintainer.<br/><sup>†</sup>''Permanent gaps'', where there is confirmed to be an absence of data, and not just a current, yet to be filled, gap on Wikipedia.
 
===Related CfDs===
* [[Wikipedia:Categories for discussion/Log/2019 June 8#Category:Northern Ireland MLAs 2016–17]]
* [[Wikipedia:Categories for discussion/Log/2019 May 29#Category:MEPs 1952–58]]
* [[Wikipedia:Categories for discussion/Log/2019 April 19#Category:Aircraft piston engines 1900–1909]]
 
==Penggunaan==
Baris 85 ⟶ 60:
* {{tlx|Navseasoncats}}
 
;SpecifyMenentukan aangka minimum and/ordan maximum year to displaymaksimum
* {{tlx|Navseasoncats|min{{=}}-100}}
* {{tlx|Navseasoncats|min{{=}}100 BC}}
Baris 91 ⟶ 66:
* {{tlx|Navseasoncats|max{{=}}{{NEXTYEAR}}}}
 
;Untuk meloncati celah di antara kategori
;To skip gaps in year categories
* {{tlx|Navseasoncats|skip-gaps{{=}}yes}}
 
;ToUntuk ''nottidak'' automatically followmengikuti {{tl|Category redirect}}s
* {{tlx|Navseasoncats|follow-redirects{{=}}no}}
 
;Pengecualian
;Exceptional cases
* {{tlx|Navseasoncats|cat{{=}}2010s albums}} &mdash; to behave as if placed onperhatikan {{para|cat}}; considerharap usinggunakan {{tl|Category pair}} instead ofalih-alih {{para|cat}}
 
==Uji coba dan ''debug''==
To test the output of the template on a particular category name, use the {{para|testcase}} parameter, and {{para|testcasegap}} if necessary:
* {{tlx|Navseasoncats&nbsp;| testcase{{=}}[[:Category:1770s in the Province of Quebec (1763–1791)|1770s in the Province of Quebec (1763–1791)]]&nbsp;| min{{=}}1760}} →
{{Navseasoncats | testcase=1770s in the Province of Quebec (1763–1791) | min=1760}}
<br/>
* {{tlx|Navseasoncats&nbsp;| testcase{{=}}[[:Category:1770s in the Province of Quebec (1763–1791)|1770s in the Province of Quebec (1763–1791)]]&nbsp;| max{{=}}1970s}} →
{{Navseasoncats | testcase=1770s in the Province of Quebec (1763–1791) | max=1790s}}
<br/>
To see all links produced and/or tested, and what effect each has on their display, use {{para|list-all-links|yes}}:
* {{tlx|Navseasoncats&nbsp;| testcase{{=}}[[:Category:Nations at the 2013 World Athletics Championships|Nations at the 2013 World Athletics Championships]]&nbsp;| min{{=}}2008&nbsp;| skip-gaps{{=}}yes&nbsp;| list-all-links{{=}}yes}} →
# [[:Category:Nations at the 2006 World Athletics Championships]] (<span style="color:#888">2006</span>) (<span style="visibility:hidden">2006</span>)
# [[:Category:Nations at the 2007 World Athletics Championships]] (<span style="color:#888">2007</span>) (<span style="visibility:hidden">2007</span>)
# [[:Category:Nations at the 2008 World Athletics Championships]] (<span style="color:#888">2008</span>)
# [[:Category:Nations at the 2008–2009 World Athletics Championships]] (<span style="color:#888">2008–2009</span>) (tried; not displayed)
# [[:Category:Nations at the 2008–09 World Athletics Championships]] (<span style="color:#888">2008–09</span>) (tried; not displayed)
# [[:Category:Nations at the 2009 World Athletics Championships]] → [[:Category:Nations at the 2009 World Championships in Athletics]] ([[:Category:Nations at the 2009 World Championships in Athletics|2009]])
# [[:Category:Nations at the 2011 World Athletics Championships]] → [[:Category:Nations at the 2011 World Championships in Athletics]] ([[:Category:Nations at the 2011 World Championships in Athletics|2011]])
# [[:Category:Nations at the 2015 World Athletics Championships]] → [[:Category:Nations at the 2015 World Championships in Athletics]] ([[:Category:Nations at the 2015 World Championships in Athletics|2015]])
# [[:Category:Nations at the 2017 World Athletics Championships]] → [[:Category:Nations at the 2017 World Championships in Athletics]] ([[:Category:Nations at the 2017 World Championships in Athletics|2017]])
# [[:Category:Nations at the 2019 World Athletics Championships]] ([[:Category:Nations at the 2019 World Athletics Championships|2019]])
# [[:Category:Nations at the 2020 World Athletics Championships]] (<span style="color:#888">2020</span>)
# [[:Category:Nations at the 2020–2021 World Athletics Championships]] (<span style="color:#888">2020–2021</span>) (tried; not displayed)
# [[:Category:Nations at the 2020–21 World Athletics Championships]] (<span style="color:#888">2020–21</span>) (tried; not displayed)
# [[:Category:Nations at the 2021 World Athletics Championships]] (<span style="color:#888">2021</span>)
# [[:Category:Nations at the 2021–2022 World Athletics Championships]] (<span style="color:#888">2021–2022</span>) (tried; not displayed)
# [[:Category:Nations at the 2021–22 World Athletics Championships]] (<span style="color:#888">2021–22</span>) (tried; not displayed)
* All possible element types are shown above (blue, red/grey, hidden, and redirect), and would otherwise display as:
{| class="toccolours hlist" style="text-align: center; margin: auto;"
|
*<span style="visibility:hidden">2006</span>
*<span style="visibility:hidden">2007</span>
*<span style="color:#888">2008</span>
*[[:Category:Nations at the 2009 World Championships in Athletics|2009]]
*[[:Category:Nations at the 2011 World Championships in Athletics|2011]]
*<b>2013</b>
*[[:Category:Nations at the 2015 World Championships in Athletics|2015]]
*[[:Category:Nations at the 2017 World Championships in Athletics|2017]]
*[[:Category:Nations at the 2019 World Athletics Championships|2019]]
*<span style="color:#888">2020</span>
*<span style="color:#888">2021</span>
|}
 
==Kategori pelacak==
:<small>''{{Purge|PurgeHapus this page to update the totalssinggahan}}''</small>
If the template encounters an issue, it displays an error message and/or places the category into one or more of the following tracking categories:
 
{{Columns-start}}
 
===Prioritas penanganan tinggi===
===Maintenance required===
* {{Category link with count|Navseasoncats failed to generate navbox}}
* {{Category link with count|Navseasoncats redirection error}}
Baris 157 ⟶ 88:
* {{Category link with count|Navseasoncats in mainspace}}
 
===Prioritas pemeliharaan tinggi===
===Maintenance possible===
* {{Category link with count|Navseasoncats isolated}}
* {{Category link with count|Navseasoncats default season gap size}}
Baris 164 ⟶ 95:
* {{Category link with count|Navseasoncats using unknown parameter}}
 
===ModulePerlu maintenancepemeliharaan possiblemodul===
* {{Category link with count|Navseasoncats year redirected (other)}}
* {{Category link with count|Navseasoncats range redirected (other)}}
Baris 170 ⟶ 101:
{{Column}}
 
===TrackingCukup onlylacak===
* {{Category link with count|Navseasoncats range redirected (base change)}}
* {{Category link with count|Navseasoncats range redirected (var change)}}