Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Feature Requests

Notices

Reply
 
Thread Tools Display Modes
MaxSupernova
Senior Member
 
Join Date: Mar 2014
Posts: 411

Old January 25th, 2017, 07:47 AM
Links to other topics are now included in the XML, but are the "RWSnippet" class, the same as the rest of the plain text part of the snippet.

In the following example, "AMC", "Aldolore Station" and "Rone Varan" are links within the sentence.

"The Aldolore Mining Cartel, also known as the AMC, is a corporation that controls Aldolore Station, Rone Varan and the surrounding asteroid fields."

The XML is:

<contents>
<p class="RWDefault">
<span class="RWSnippet">The Aldolore Mining Cartel, also known as the </span>
<span class="RWSnippet">AMC</span>
<span class="RWSnippet">, is a corporation that controls </span>
<span class="RWSnippet">Aldolore Station</span>
<span class="RWSnippet">, </span>
<span class="RWSnippet">Rone Varan</span>
<span class="RWSnippet">and the surrounding asteroid fields. </span>
</p>
</contents>

Is there any purpose to this? Is this a bug? Why is the link text exported as the same class as the sentence it is contained in?

It makes this information useless. It actually makes the information LESS useful than plain text. There's no way to distinguish which bits of text are links or the titles of other snippets. Positioning or other styles used on the RWSnippet class will now be much more difficult to use. If I want to add positioning or margins or padding to each Snippet, that gets completely broken by having 5 spans with the RWSnippet class in one single line of text.

It would be of more use to either:

- eliminate the span around links and just include them as part of the text, which will shrink the filesize and reduce complexity, as well as making markup much easier because each snippet will be one span.

- mark the span class as a link or some other type so that it can be interpreted or styled as the user desires.

The latter is preferable.

Last edited by MaxSupernova; January 25th, 2017 at 09:50 AM.
MaxSupernova is offline   #1 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:23 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.