Template talk:Logo of

From Wikispooks
Revision as of 07:34, 12 January 2015 by Peter (talk | contribs) (reply)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Not working perfectly

This works when given a literal argument, whether plaintext or a link. I don't know why this displays two unwanted bullets after the logo when given output from another SMW query - I suspect an SMW bug. The only lead I have on this at the moment is that the debug format flags up a badly formed query. i.e.:{{#ask: [[-Has logo::{{#ask: [[Has leader::Director of the Central Intelligence Agency]]}}]]|format=debug}} gives:

SQLStore debug output
ASK Query
[[-Has logo::CIA]]
SQL Query
SELECT DISTINCT
  t0.smw_id AS id,
  t0.smw_title AS t,
  t0.smw_namespace AS ns,
  t0.smw_iw AS iw,
  t0.smw_subobject AS so,
  t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
  `mw_smw_object_ids` AS t0
INNER JOIN
  `mw_smw_di_wikipage` AS t1 ON t0.smw_id=t1.o_id
WHERE
  (t1.p_id='1213' AND t1.s_id='2577')
  AND t0.smw_iw!=':smw'
  AND t0.smw_iw!=':smw-delete'
  AND t0.smw_iw!=':smw-redi'
ORDER BY
  t0.smw_sort ASC
LIMIT
  55
OFFSET
  0
SQL Explain
IDselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEt1refs_id,o_id,p_id,s_id_2,s_id_3,o_id_2,o_id_3p_id8const,const1Using where; Using temporary; Using filesort
1SIMPLEt0eq_refPRIMARY,smw_id,smw_iw,smw_iw_2PRIMARY4wikispooks.t1.o_id1Using where
Auxilliary Tables
No auxilliary tables used.
Query Metrics
Query-Size:2
Query-Depth:1
Errors and Warnings
The part "|CIA" of the query was not understood.

Results might not be as expected.
The part "]]" of the query was not understood.

Results might not be as expected.

<ul><li>The part "|CIA" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>

Robin (talk) 06:59, 12 January 2015 (GMT)

Probably the quickest way to resolve this is to post details on the SMW mailing list. I'm already a member and will do so myself if you like --Peter P (talk) 07:34, 12 January 2015 (GMT)