Jump to content

Topic on Extension talk:Wiki Object Model/Flow

'Special Charaters' when querying template fields

1
Planetenxin (talkcontribs)

Hi,

I query a template field as follows:

api.php?action=womget&title=Alexander_Gesinn&xpath=//template[@name="Person_01_00"]/template_field[@key="Username"]

Template:

{{Person_01_00
|Username=Alex
}}

As a result I get:

<?xml version="1.0"?>
<api>
  <womget result="Success">
    <return>
      <id15 xml:space="preserve">Username=Alex
|</id15>
    </return>
  </womget>
</api>

Why do I get a \n| at the end of the returned value? When I remove the CRLF in the template I still get the Pipe symbol. Is this a bug?

MW 1.16.x, WOM r104210

Reply to "'Special Charaters' when querying template fields"