https://bugzilla.wikimedia.org/show_bug.cgi?id=56310

MWJames <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #2 from MWJames <[email protected]> ---
Just checked (by hand, don't have time to write a test for this) with:

MediaWiki    1.19.7
Semantic MediaWiki (Version 1.9 alpha-3) (SQLStore3)

## LocalSettings (before any extension specification):

define("NS_FOO", 160 );
define("NS_FOO_TALK", 161 );
$wgExtraNamespaces[NS_FOO]         = "Foo";
$wgExtraNamespaces[NS_FOO_TALK]    = "Foo_talk";
$wgNamespacesWithSubpages[NS_FOO]  = true;

## SEMANTIC MEDIAWIKI
...

$smwgNamespacesWithSemanticLinks = array(
  NS_FOO   => true,
)

Adding a page Foo:WgExtraNamespaces with [[Has test on::WgExtraNamespaces]]
will yield for [1] a WgExtraNamespaces#160# entry. 160 indicates NS_FOO and it
also shows that SMW has successfully annotated the page WgExtraNamespaces
(namespace NS_FOO) with a "Has_test_on" property.

[1] api.php?action=browsebysubject&subject=Foo:WgExtraNamespaces

<?xml version="1.0"?>
<api>
  <query subject="WgExtraNamespaces#160#"
serializer="SMW\Serializers\SemanticDataSerializer" version="0.1">
    <data>
      <property property="Has_test_on">
        <dataitem>
          <value type="9" item="WgExtraNamespaces#0#" />
        </dataitem>
      </property>
      <property property="_MDAT">
        <dataitem>
          <value type="6" item="1/2013/10/29/13/11/30" />
        </dataitem>
      </property>
      <property property="_SKEY">
        <dataitem>
          <value type="2" item="WgExtraNamespaces" />
        </dataitem>
      </property>
    </data>
  </query>
</api>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to