I am attempting to query for a list of pages specified via a template variable, but I cannot get my head around Semantic Mediawiki well enough to even identify if this is possible, let alone a good idea.
I have a set of pages which have semantic properties. I then have a template which has a "collection" variable which is just a list of pages as follows:
// Bucket template
{{#set:
| Has fishes={{{fishes|none}}}|+sep=,
}}
// A bucket page
{{Bucket
|fishes=Fish Page, Another Fish Page, Trout Page
}}
So far so good.
Now, I want to create a table in the Bucket template which displays some properties from the listed pages. If I try using a #show
as follows:
{{#show:{{PAGENAME}}|?Has fishes
|format=table
|?Has fishName= name
|?Has fishHeight = height
}}
I can't get anything other than the links to the pages. I can't actually query properties of those pages. My question is:
How do I feed the pages I already have in the current pages Has fishes
property to an #ask
? I don't know what to ask for, since I already have the answer, but I don't seem to be able to format the answer correctly without asking for it. I've tried a few {{PAGENAME}}:
variations, but that's just been stabbing in the dark.
{{#ask:
[[---what goes here and why?---]]
|?Has fishName= name
|?Has fishHeight= height
}}