https://bugzilla.wikimedia.org/show_bug.cgi?id=63874
Monte Hurd <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Monte Hurd <[email protected]> --- So the api call which returns section data can have a "sectionprop" key called "fromtitle". If a section is transcluded it's my understanding that it came from a different article, and when this is the case the fromtitle tells you the name of the article it came from. Note: fromtitle's value is, inconsistently, sometimes false, sometimes, and weirdly, the name of the current article. In these two cases I think you can ignore. However, if the fromtitle is not false and not the name of the current article, then you have a true transclusion. So there's a futher complication - when we have a transclusion, the section index will no longer be numeric - it will be prefaced with "T-". Max says this "T-" preface needs to be preserved and passed along to whatever network task you're using to retrieve section data (in the case of transclusions only of course). I have switched my index value to a string to handle this. Also note, in case you had been sorting sections by index, you'll want to switch to sorting by id (the "T-" preface messes up the sort I believe). -- 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
