Module talk:WikidataIB/Archive 6: Difference between revisions

Content deleted Content added
Subst in the old values of lastbut0
Replace per TfD outcome
 
Line 226:
I have come up with an even better, more natural way of writing it using the <kbd><nowiki>list</nowiki></kbd> parameter and <kbd>[[Template:P1|<nowiki>{{p</nowiki>''n''<nowiki>}}</nowiki>]]</kbd> templates:
 
:{{demo|br=|<nowiki>{{wdib|ps=1|P8011|qid=Q84055514|list=p3}}</nowiki>}}
 
Unfortunately, there is no good analogue to get the last value. There's <kbd>[[Template:Lastbut0|<nowiki>{{lastbut0}}</nowiki>]]</kbd>, but it is [https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Lastbut0 not used anywhere] and has a very inefficient implementation that stops working if the list has more than a hundred items: