Edge Rewrite
Jump to content

MediaWiki talk:Newarticletext

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 11 months ago by Perryprog in topic Protected edit request on 2 September 2025


Detect IP

[edit]

{{#ifeq:{{#expr:{{PAGENAME}}}} |{{PAGENAME}}||{{#ifeq:{{#expr:{{PAGENAME}}}}|{{#expr:{{PAGENAME}}+deliberatesyntaxerror}}||..}}}}

means:

Do if {{#expr:{{PAGENAME}}}} is neither giving an error message nor something equal (according to #ifeq) to {{PAGENAME}} itself. See also m:Template:detect IP, and MediaWiki talk:Newarticletext/Archive 2#need direct access to the IP info toolbox below.

[edit]

When creating a template ([https://en.wikipedia.org/w/index.php?title=Template:Foobar123456&action=edit&redlink=1 example), the notice currently says To avoid redundancy, please browse the existing templates before creating this page. The wikilink goes to WP:Template messages, which I highly doubt is actively maintained, and there's no button to just do a search (like there is for articles). Could we remedy this? {{u|Sdkb}}talk 22:44, 20 November 2021 (UTC)Reply

As I don't see this being particularly controversial and this page isn't likely heavily watched, I'll go ahead and create an edit request below. {{u|Sdkb}}talk 22:57, 20 November 2021 (UTC)Reply

Protected edit request on 20 November 2021

[edit]

Could we adopt these changes, which fix or improve searching for categories, portals, and templates? Thanks, {{u|Sdkb}}talk 22:58, 20 November 2021 (UTC)Reply

 Done  Martin (MSGJ · talk) 12:37, 24 November 2021 (UTC)Reply
@Sdkb: when you search for a template the template namespace is not included by default, so I don't think this search would work well. Can you adapt the link so the template namespace is included?  Martin (MSGJ · talk) 12:39, 24 November 2021 (UTC)Reply
@MSGJ, my understanding is that there's two different ways to specify a namespace in a search. The first is to use the namespace tags, which show up in the URL as e.g. &ns10=1, and the second is to just use the prefix, e.g. to search for "Template:Foobar" rather than "Foobar". I used the latter method, since that's what was already used in this template for the project namespace, and it seems to be working, even though it doesn't show up in the "Search in:" tags. I don't know off the top of my head how to switch to using those tags with Special:Search, so while that might be a better way to code it, I'll leave that for someone else knowledgeable/inclined. Cheers, {{u|Sdkb}}talk 20:59, 24 November 2021 (UTC)Reply

Protected edit request on 9 September 2023

[edit]

The edit notice when someone is adding a local description for a file hosted on Wikimedia Commons should look like this:

It currently looks like this for reference (if you can't find it):

"Image" is outdated since files can be non-image media such as Ogg and MIDI. Instances of "image" should be replaced with "file". Eyesnore 18:51, 9 September 2023 (UTC)Reply

 Not done @Eyesnore: please make the exact changes you are proposing to the sandbox here: MediaWiki talk:Newarticletext/sandbox, then reactivate the edit request when done. — xaosflux Talk 19:05, 9 September 2023 (UTC)Reply
@Xaosflux: I performed the edit in the sandbox (diff) which you can copy to the interface message. Eyesnore 19:08, 9 September 2023 (UTC)Reply
 Done * Pppery * it has begun... 01:30, 10 September 2023 (UTC)Reply

Protected edit request on 30 August 2025

[edit]

(This was originally made at Template talk:New page DYM § Protected edit request on 29 August 2025 before Pppery pointed out that not-there would be better. :P)

On a line below | {{TALKSPACE}} =, please add:

{{#ifexist: {{ROOTPAGENAME}}|­<!-- Fall-through
 -->|<!-- Subjectless talk page -->{{Creating talk page without subject}}}}

This is to hopefully help address an uptick in stranded mainspace talk page creations, which I suspect has started occurring as a result of the significantly less appearance of non-existent talk pages, which makes it easier to make one think that that's how you can submit an article. This is a slight duplication with the edit notice directly below, but repetition never hurt repetition never hurt. The referenced template will of course need to be edit protected once this change is made. (It could probably be directly inserted as well since it's not too likely that it'll have use outside of this one interface message; I'll leave that up to the implementing admin.)

I've tested this by seeing how it looks in a page preview and it seems okay! Perryprog (talk) 15:04, 30 August 2025 (UTC) (Edited 18:34, 30 August 2025 (UTC))Reply

Shouldn't the "then" branch of #ifexist be <!-- Talk: page creation with an article -->? That is, replace "no article" with "an article". —⁠andrybak (talk) 17:11, 30 August 2025 (UTC)Reply
Oops, yes it should be. (Will edit once I’m at a computer. (If I remember.)) Perryprog (talk) 17:46, 30 August 2025 (UTC)Reply
 Done * Pppery * it has begun... 03:59, 31 August 2025 (UTC)Reply

Protected edit request on 2 September 2025

[edit]

Oops, I didn't know that TALKSPACE wasn't just a shortcut for `{{ns:1}}`. Could this:

| {{TALKSPACE}} =
{{#ifexist: {{SUBJECTPAGENAME}}|<!-- Fall-through
 -->|<!-- Subjectless talk page 
 -->{{#ifexist: {{ROOTPAGENAME}}|<!-- Fall-through 
   -->|<!-- No parent page either (don't display on /Archive pages)
   -->{{Creating talk page without subject}}}}}}

be changed to this: (Also has subjectively slightly clearer formatting.)

| {{TALKSPACE}} =
  {{#ifeq: {{NAMESPACE}} | {{ns:Talk}} <!-- Article talkpage -->
  | {{#ifexist: {{SUBJECTPAGENAME}}
    |<!-- Fall-through
 -->|<!-- Subjectless talk page 
   -->{{#ifexist: {{ROOTPAGENAME}}
      |<!-- Fall-through
   -->|<!-- No parent page either (don't display on /Archive pages)
     -->{{Creating talk page without subject}}}}}}}}

To test you can put it on a random non-existent talk page and preview your changes, both in article Talk versus template talk. I think it'd be better if this is just a mainspace warning since there's much more likely to be a false positive anywhere else. Perryprog (talk) 02:10, 2 September 2025 (UTC)Reply

I personally think that the current behavior is correct - except for user talk pages which are already handled I can't think of any reason why you would want to create an orphaned talk page even outside mainspace. * Pppery * it has begun... 02:18, 2 September 2025 (UTC)Reply
Huuuuh. I'll be so honest I kinda assumed there just "was" without thinking about it too hard (something something long day), but I guessss you're right? I was thinking surely something in project space would do that but I can't think of any examples. Will leave the request open for a hot second in case there's a second opinion but I suppose you're right. Perryprog (talk) 02:25, 2 September 2025 (UTC)Reply
Marked as done since I haven't been able to think of any real reason to limit its scope, and no one else seems to mind. Cheers! Perryprog (talk) 23:59, 2 September 2025 (UTC)Reply