<!-- optional page ID number -->
<element name="id" type="positiveInteger" minOccurs="0"/>
+
+ <!-- optional: number of pages that link to this page -->
+ <element name="references" type="positiveInteger" minOccurs="0"/>
<!-- comma-separated list of string tokens, if present -->
<element name="restrictions" type="string" minOccurs="0"/>
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
$out .= ' ' . wfElementClean( 'title', array(), $title->getPrefixedText() ) . "\n";
$out .= ' ' . wfElement( 'id', array(), strval( $row->page_id ) ) . "\n";
+ if(isset($row->num_page_ref))
+ $out .= ' ' . wfElement( 'references', array(), strval( $row->num_page_ref ) ) . "\n";
if( '' != $row->page_restrictions ) {
$out .= ' ' . wfElement( 'restrictions', array(),
strval( $row->page_restrictions ) ) . "\n";