index.php should handle section=T-1, section=T-2 etc the same way the query API does and how action=edit does. Currently, it just returns the entire page when it should only return the specific section as it would show if it were being transcluded.
URL | Type | Works | Returns |
---|---|---|---|
https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/scripts/doc§ion=T-1&action=submit | action=edit/submit | ✔ | The "Installation" section |
https://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=User:BrandonXLF/scripts/doc&rvsection=T-1&rvslots=*&rvprop=content | api.php (query) | ✔ | The "Installation" section |
https://en.wikipedia.org/w/api.php?action=edit&title=User:BrandonXLF/scripts/doc§ion=T-1&text=_TEXT_&token=_TOKEN_ | api.php (edit) | ✔ | Edits the "Installation" section |
https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/scripts/doc§ion=T-1&action=raw | action=raw | ❌ | The entire page |