MediaWiki talk:Newarticletext
![]() | MediaWiki:Newarticletext is shown as the default editnotice when editing a page which doesn't exist (as long as no specific editnotice has been created), provided the user has the permission to create this page. Note that the output varies dramatically between namespaces. When the user has no such permission, MediaWiki:Nocreatetext is shown instead. MediaWiki:Noarticletext is a related message, shown when simply viewing an article which doesn't exist. This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Wikipedia:Village pump (technical) to bring more people to the discussion. |
|
||||||
This page has archives. Sections older than 45 days may be auto-archived by Lowercase sigmabot III if there are more than 5. |
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 (backlinks edit), and MediaWiki talk:Newarticletext/Archive 2#need direct access to the IP info toolbox below.
Uncreated template search
[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)
- 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)
Protected edit request on 20 November 2021
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
Done — Martin (MSGJ · talk) 12:37, 24 November 2021 (UTC)
- @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)
- @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)
- @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.
Protected edit request on 9 September 2023
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
The edit notice when someone is adding a local description for a file hosted on Wikimedia Commons should look like this:
![]() | This media file is on Wikimedia Commons—not on the English Wikipedia. Descriptions should be placed there. This page should rarely be used except to indicate featured pictures. Please see the description page on Commons for file information, a list of pages that use this file, or the direct link to this file. |
It currently looks like this for reference (if you can't find it):
![]() | This image is on Wikimedia Commons—not on Wikipedia. Any descriptions should be placed there. This page should rarely be used except to indicate featured pictures. Please see the image description page on Commons for file information, a list of pages that display this image, or view the full-size version of the image. |
"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)
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)
- @Xaosflux: I performed the edit in the sandbox (diff) which you can copy to the interface message. Eyesnore 19:08, 9 September 2023 (UTC)
Protected edit request on 30 August 2025
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
(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))
- 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)- Oops, yes it should be. (Will edit once I’m at a computer. (If I remember.)) Perryprog (talk) 17:46, 30 August 2025 (UTC)
Protected edit request on 2 September 2025
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
- 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)
- 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)
- 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)
- 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)