Topic on Talk:Structured Discussions

Is it possible to link to an uncreated section

5
Christian75 (talkcontribs)

As subjct says; is that possible?

Quiddity (WMF) (talkcontribs)

If I understand correctly, you want to link to an equivalent of "&section=new" ? That feature is planned, at phab:T59989.

SPage (WMF) (talkcontribs)

What do you want?

  • phab:T59989 asks for Flow boards to respond to an API request to add the wikitext of a new section. You can't link to that, it's the kind of thing a bot does.
  • If you're asking for the equivalent of the [Add topic] tab on talk pages, Flow pages could respond to the same ?action=edit&section=new in the query string by focusing input in the "Start a new topic" input field.
  • If you just want a link that scrolls to the "Start a new topic" input field, that field doesn't have an id tag so a link could target e.g. #flow-new-topic. Since there's only one of these forms this seems reasonable (and easy).
  • If you want to have a link that opens up the new topic form and pre-fills it with e.g. "Another great suggestion...", then it's doable in JavaScript ($('.flow-newtopic-form .mw-ui-input').focus() ...) and if there's a good use case for it then Flow could support query string parameters that trigger this.
  • There's no way to know what the UUID of a new topic will be, it varies with time. So you can't write "Go see my [[Topic:S9ftya9qaez67kjo | Genius Idea]] until you add the new topic (and then copy its permalink).

It turns out that linking to https://www.mediawiki.org/wiki/Talk:Sandbox?action=new-topic might be what you want. You get a standalone form to add a topic (see result). This query string isn't officially supported; it's a side effect of every Flow action being permitted from the query string. So even if it's possible to improve this behavior it seems low priority.

Ebernhardson (talkcontribs)

actually the action=new-topic is officially supported, its part of the no-js compatibility.

Sänger (talkcontribs)

probably only if you can guess this cryptic and user-unfriendly mumbo-jumbo in the url ;)

Reply to "Is it possible to link to an uncreated section"