Template talk:PositionHolderHistory

Latest comment: 2 months ago by Tacsipacsi in topic Translation improvement

Multiple predecessors edit

Some problems with multiple predecessors: Talk:Q842386. How they should be dealt? --Infovarius (talk) 22:06, 26 January 2020 (UTC)Reply

@Oravrattas:, Same problem + errors in the shared positions described with together with (P1706) qualifier: Talk:Q38673587. Thanks for ping on answer Amadalvarez (talk) 07:17, 9 February 2020 (UTC)Reply
@Amadalvarez, Infovarius: The tool is only really suitable for the simple case of positions that are held by a single person at a time, each following in turn: it won't cope well with ones with a together with (P1706). --Oravrattas (talk) 07:41, 9 February 2020 (UTC)Reply
@Oravrattas:It's a pity !, because is a usefull tool. Thanks, Amadalvarez (talk) 07:46, 9 February 2020 (UTC)Reply

Not updating? edit

It looks like this tool hasn't been making automated updates since around February 9th or 10th. Since then only manually triggered updates seem to have been happening. AUIU there should be a Toolforge cronjob kicking these off every day, but something seems to have gone awry with that. --Oravrattas (talk) 11:06, 23 May 2020 (UTC)Reply

@Mhl20: You're listed as the operator of Position holder history bot. Is that still the case, or is someone else now operating this? --Oravrattas (talk) 11:23, 29 July 2020 (UTC)Reply

Some problems with presidents who are also MP edit

I added PositionHolderHistory to President of the Chamber of Deputies of Italy (Q6360077) and President of the Italian Senate (Q7477985) but they don't work because these items are subclasses of MP, just because a MP can be president of each part of Italian Parliament. How to fix this? --★ → Airon 90 19:32, 12 September 2020 (UTC)Reply

@Airon90: the fix is to correct the modelling of those items: the relationship between being the Speaker/President of a legislature and being a member of that legislature is not really a subclass, even if you have to be one to become the other. --Oravrattas (talk) 08:07, 28 September 2020 (UTC)Reply
@Oravrattas: So I just remove the statement which says that the president is a subclass of a member of that part of the parliament? --★ → Airon 90 09:17, 28 September 2020 (UTC)Reply
@Airon90: that should be enough, yes. --Oravrattas (talk) 05:52, 29 September 2020 (UTC)Reply

Mayors of Wellington edit

Talk:Q52988199 has a few errors around 1878-1882. Is it because William Hutchison (Q8012746) and George Allen (Q5536189) both have a start date of 1879? Ghouston (talk) 08:10, 10 January 2021 (UTC)Reply

@Ghouston: Yes; I've updated those to have day-precision dates rather than just year-precision, and it seems fine now. --Oravrattas (talk) 11:20, 28 June 2021 (UTC)Reply

Congrats edit

I've just discovered this template. I find it really useful. I have suggested it as a tool if the week in the Wikidata newsletter Wikidata:Status updates/Next.

PAC2 (talk) 11:15, 19 June 2021 (UTC)Reply

the code of the template? edit

Hi,
Where's the code of this template ? I can't find it. Simon Villeneuve (talk) 18:55, 21 June 2021 (UTC)Reply

Read till the end :) --Infovarius (talk) 11:20, 22 June 2021 (UTC)Reply

Not working? edit

I got an error from the template using some Swedish official poistions, so then I tried it with the example from the template page, i.e. Q14211 and still got the same error: PositionHolderHistory only works for positions that are held by a single officeholder at a time. As Prime Minister of the United Kingdom (Q14211) is a legislative position, there will be many simultaneous members, and this report cannot cope with that. Perhaps use Listeria instead? Sturban (talk) 09:08, 12 December 2021 (UTC)Reply

@Sturban: I updated Talk:Q14211 and the error seems to have gone. The bot checks whether the item is a (potentially indirect) subclass of legislator (Q4175034); probably someone changed an item in the subclass tree that has been undone in the meanwhile. —Tacsipacsi (talk) 14:40, 12 December 2021 (UTC)Reply
@Tacsipacsi Thank you, it is working for me as well now on the Swedish officeholder positions. -- Sturban (talk) 15:29, 12 December 2021 (UTC)Reply

Talk:Q55713110 edit

Can someone peak at Talk:Q55713110 where I am not sorting properly. I thought I fixed all errors, but still getting messages. --RAN (talk) 08:14, 28 January 2022 (UTC)Reply

Forcing human (Q5)? edit

I've just spotted that the template on Talk:Q14211 only shows the "real" holders of the position (ie those which also have instance of (P31):human (Q5), but the query link does not have such a limit and so the first three entries are fictional people. Would it be possible to add the Q5 filter to the default searches as well, if it's being applied to the table? Andrew Gray (talk) 18:06, 25 April 2022 (UTC)Reply

@Andrew Gray: That "query" link at the top of the page doesn't come from the tool itself, but looks like it's been added to the standard template: Template:PositionHolderHistory/text/en. I don't completely understand how all the multilingual stuff works, so I'm a little reluctant to fix it myself, but in theory you or anyone else should be able to do that. --Oravrattas (talk) 12:37, 23 May 2022 (UTC)Reply
@Oravrattas: Aha - I think I see how to fix that (edit /text and the bot will pick it up?) but after thinking about it for a bit, I'm hesitant to add the Q5 filter - I don't know if this is also being used for fictional positions where it might confuse things further. Hmm hmm. Andrew Gray (talk) 07:27, 28 May 2022 (UTC)Reply
@Andrew Gray: I don't think that should be a concern: the tool itself restricts the results to Q5, so wouldn't be suitable for fictional positions anyway. --Oravrattas (talk) 07:14, 3 June 2022 (UTC)Reply
Sounds good. I've added it to /text and that should (if I understand things correctly) carry over into /text/en or any other localisations shortly. Andrew Gray (talk) 08:59, 3 June 2022 (UTC)Reply

Using a qualified item instead of just an item edit

Would it be possible to improve this template to accept a qualified item in entry instead of just a simple direct item?

For instance, something like {{PositionHolderHistory|id=Q29182|qp=P642|qv=Q647}} instead of {{PositionHolderHistory|id=Q23569845}}

(@Ainali, Epìdosis: VIGNERON (talk) 13:30, 9 July 2022 (UTC)Reply

I don't know, but probably. However, I am not certain that I would consider it an improvement, since I am not convinced that it is better modeling of the statement. Ainali (talk) 17:20, 9 July 2022 (UTC)Reply

Translation improvement edit

  It is requested that an edit or modification be made to this protected page.

The page has been added to Category:Wikidata protected edit requests.

Administrators: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.

On Template:PositionHolderHistory/text, please replace line 2 with

<div class="mw-content-{{dir|{{TRANSLATIONLANGUAGE}}}}" lang="{{BCP47|{{TRANSLATIONLANGUAGE}}}}" dir="{{dir|{{TRANSLATIONLANGUAGE}}}}">

to substitute the translation language when the translation subpage is generated rather than when it’s parsed (so that it needs to be substituted only once rather than 7700 times, everywhere this template is used), and in line 6 replace

float:right

with

float:{{dir|{{TRANSLATIONLANGUAGE}}|left|right}}

so that the query link appears on the “far end” even in right-to-left languages, should a right-to-left translation be created. Thanks in advance! —Tacsipacsi (talk) 16:50, 16 March 2024 (UTC)Reply

Return to "PositionHolderHistory" page.