Help talk:Valuerank format

From semantic-mediawiki.org

Contents

Thread titleRepliesLast modified
Remove the span element from valuerank results218:54, 11 March 2016

Remove the span element from valuerank results

I'm attempting to use the results of a valuerank formatted query as a variable, to be used in later experessions on my article, but the valuerank - unlike any other result format as far as I can tell - insists on placing the query result inside a span element. This prevents me from using the result as a variable inside any expressions. I had tried using liststyle=none or specifying an additional class for the query result where display: none, but neither method removed the span element. Every other format places results within a p tag. Is there a reason valuerank insists on using a span and can I get around this?

17:40, 11 March 2016

> Every other format places results within a p tag. Is there a reason valuerank insists on using a span and can I get around this?

If it is not a template related output then it will either use 'span' or 'li' as element according to [0].

[0] https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/valuerank/SRF_ValueRank.php#L164-L169

18:04, 11 March 2016

Thank you for the reference, MWJames, that helps. I did experiment with using a template format option with the valuerank, but I wound up with the result wrapped in a div rather than a span - so different result but same end result problem once I tried to insert the variable into an expression. I might be on the right track though if I can pull the div from the template fomrat somehow. I'm going to keep playing. Thank you for the info.

18:54, 11 March 2016