Template talk:Year in country portal box
This is the talk page for discussing improvements to the Year in country portal box template. |
|
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||
|
Decades portals
[edit]@BrownHairedGirl: This looks good.
Another set that could presumably be added easily are Portal:1920s to Portal:2010s. May I suggest first pasting a dump of pages already linking to each of them, from which those links could then be edited out afterwards?
I had in mind to make such lists before adding the decade portals into Template:DecadeCategoryNav. – Fayenatic London 15:58, 26 March 2018 (UTC)
- Hi @Fayenatic london
- Good idea. I have added the decade portals.[1][2] See it in use at e.g. Category:1930 establishments in the Straits Settlements or Category:1967 disestablishments in Japan.
- I have been busy ripping out {{Portal}} from the pages which use {{EstcatCountry}} or {{DisestcatCountry}}, and that job is almost complete (there were ~33,000 category pages to check, and ~15,000 edits; Tim! had used AWB to add many {{Portal}} boxes).
- I haven't yet checked the decade (dis)establishment category pages, but they all need a full check, because I reckon many of them will have Portal boxes for country ... so I didn't wait to get a dump of pages already linking to each of them. --BrownHairedGirl (talk) • (contribs) 20:06, 26 March 2018 (UTC)
- I've saved a current dump for all ten in a spreadsheet for my own reference.
- You may have noticed that I've been stripping portals from country pages that use {{DecadeCategoryNav}} – I reached the end of the 8,000 transclusions today. I was going to contact you about using redirects and stripping the leading word "the", but your massive switch page {{YearInCountryPortalBox/parse}} achieves both of these goals and more, with multiple targets where appropriate – well done again! Presumably it could also be used by other templates, e.g. if decades need a different front-end template from years. – Fayenatic London 21:54, 26 March 2018 (UTC)
Discussion on ending portals
[edit]@BrownHairedGirl: after all this work, you may want to comment at Wikipedia:Village_pump_(proposals)#RfC:_Ending_the_system_of_portals. – Fayenatic London 10:56, 12 April 2018 (UTC)
- @Fayenatic london: tks for the pointer. With some caveats, I supported it.[3] --BrownHairedGirl (talk) • (contribs) 04:40, 19 April 2018 (UTC)
Using the /parse sub-page in other templates
[edit]@BrownHairedGirl: I thought I could use the page Template:YearInCountryPortalBox/parse for substitution in other templates, but it's only working for single portal substitution, not multiple portals. See e.g. Category:20th-century establishments in German South West Africa where {{EstcatCountryCentury}} is not linking successfully to Portal:German Empire. Is this fixable, please? – Fayenatic London 16:29, 18 April 2018 (UTC)
- V odd. I trying tryin to figure out why it won't work. --BrownHairedGirl (talk) • (contribs) 16:59, 18 April 2018 (UTC)
@Fayenatic london: that puzzled me for a while but I eventually got it.
You had directly called the sub-template Template:YearInCountryPortalBox/parse, bypassing the main Template:YearInCountryPortalBox. /parse is only a helper, not designed to be called alone.
This edit[4] fixed it. --BrownHairedGirl (talk) • (contribs) 17:52, 18 April 2018 (UTC)
- Ah, superb. I thought the main template here was only for Year pages, not centuries. – Fayenatic London 07:57, 19 April 2018 (UTC)
- @Fayenatic london: I should document it properly. In the meantime, the key thing in this context is that the "years" parameter is optional. Its only purpose is to determine whether any of the decade portals are applicable, so just leave it out on centuries. On decades, you will have a "YYY" value, so can use
year={{{YYY}}}0
. --BrownHairedGirl (talk) • (contribs) 02:47, 20 April 2018 (UTC)- @BrownHairedGirl: I think you mean Year, and have added usage documentation accordingly.
- We should document how to add countries to the relevant sub-page. – Fayenatic London 00:00, 25 February 2019 (UTC)
- @Fayenatic london: I should document it properly. In the meantime, the key thing in this context is that the "years" parameter is optional. Its only purpose is to determine whether any of the decade portals are applicable, so just leave it out on centuries. On decades, you will have a "YYY" value, so can use
Duplicate portal:Geography
[edit]@BrownHairedGirl: I can't figure out why Geography portal is appearing twice in the older Sikkim categories, e.g. Category:1950s establishments in Sikkim.
In Template:YearInCountryPortalBox/parse, Geography is only mentioned for British Antarctic Territory and Falkland Islands Dependencies. This does explain why Geography appears twice on Category:1975 establishments in the British Antarctic Territory.
There are no establishment categories within Category:Falkland Islands Dependencies, so no cases of double portal links within that hierarchy. It does appear desirable to keep the Geography portal link on e.g. Category:1979 establishments in the Falkland Islands. Perhaps that should be done within Template:Year in country category/inner core i.e. for all cases rather than just those Antarctica locations? (cf. inclusion of Geography in Template:EstcatCountry/core) – Fayenatic London 12:10, 22 September 2020 (UTC)
- Hi Fayenatic,this edit[5]has fixed it for Sikkim ... and this edit[6] has fixed it for Antarctica.
- I really need to do a big reworking of this whole template now that we have {{Country2continent}}. --BrownHairedGirl (talk) • (contribs) 14:24, 22 September 2020 (UTC)
- Thanks, BrownHairedGirl… Ah, I think I see in part: it is Template:YearInCountryPortalBox/make that adds both History and Geography, if there is only one portal name from /parse.
- I still don't grasp why "|Geography" is included in Template:EstcatCountry/core, but we are evidently safe in your hands. – Fayenatic London 20:32, 22 September 2020 (UTC)
Template-protected edit request on 22 December 2023
[edit]This edit request to Template:YearInCountryPortalBox/parse has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The country redirect "Mandatory Palestine = Palestine %% British Empire" is omitting Israel, Egypt and Jordan which replaced British Empire in former Mandatory Palestine (State of Palestine redirected from Palestine came into being as late as 1988/2013). Should be chronologically and geographically: "Mandatory Palestine = British Empire %% Israel %% Jordan %% Egypt". GreyShark (dibra) 11:19, 22 December 2023 (UTC)
- Not done The template isn't coded to support multiple %% for one country. * Pppery * it has begun... 23:30, 22 December 2023 (UTC)
Mandatory Palestine
[edit]The country redirect "Mandatory Palestine = Palestine %% British Empire" should be corrected "Mandatory Palestine = British Empire", since State of Palestine (linked to Palestine) is grossly anachronistic and very loosely related - very strange to see modern Palestinian flag on British Mandate articles. I would argue for alternative Mandatory Palestine as standalone, but that one was removed.GreyShark (dibra) 20:57, 22 January 2024 (UTC)