2

I have a template that defines a subobject in which I define properties, including Summary Pagename={{FULLPAGENAME}}, among others. When I then query

[[Summary Pagename::(page I'm looking for)]]

it shows me all the subobjects I expect to see, however, depending on the page I query, I sometimes get every subobject in duplicate.

In particular, if the pagename is of the form ..../Scoreboards it displays in duplicate; however, usually the pagename will be of the form ..../Scoreboards/[something else] and then everything works as intended.

It might be relevant that in some cases, ..../Scoreboards will have subpages, but in others it doesn't, but regardless of whether it has subpages or not this duplication still happens.

Here's a direct link to a page showing this problem. It seems pretty weird to me, but anyone know what might be going on?

trooper
  • 4,444
  • 5
  • 32
  • 32
R River
  • 43
  • 7
  • duplicate properties can happen if your properties are both stored on a page and on on a subobject level. I'v seen this before and so fare have worked around it. It might be a bug and therefore it would be good to show an example on e.g. http://www.semantic-mediawiki.org – Wolfgang Fahl Jul 02 '15 at 12:51

1 Answers1

1

Somehow the subobject seems to reference back the page (so I think that's why changing the pagename seems to fix the issue), as if it's querying twice the same thing (I know, total weirdness I don't fully understand it either).

So browsing the properties there are no duplicates, so I changed the query using an inverse property instead to retrieve what you need. This would give you the results without duplicates:

[[-Has subobject::(page I'm looking for)]] 
[[Summary MatchNo::001]] 
[[SP GameNo::001]]

search example

bubbassauro
  • 3,969
  • 2
  • 45
  • 45
  • I understand in theory how that should work, however in this case I'm not sure it can - because each one of those cells is generated from information spanning 5 subobjects (or 10, when it's breaking) -- the queries to generate the cells are e.g. `|{{#ask:[[Summary Pagename::{{{?Summary Pagename}}}]][[Summary MatchNo::{{{?Summary MatchNo}}}]][[SP GameNo::{{{?Summary GameNo}}}]][[SP PlayerCo::{{lc:{{#var:ourcolor}}}}]]|?SP Champ|?SP PlayerNo|format=list|sort=SP PlayerNo|mainlabel=-|template=Cimh|sep=}}` and to split it up into 5 queries would slow the page creation I think. – R River Apr 09 '15 at 06:04
  • [link to template](http://lol.esportspedia.com/w/index.php?title=Template:MatchHistoryTeam/Line&action=edit) – R River Apr 09 '15 at 06:06