User:Davidgothberg/Test35
Start David's editnotice loader template.
You, yes you! Do not edit my user pages These pages might contain strange content, but that is because I develop and test advanced templates here in my user space. Templates I created have 6 million transclusions on about 4 million unique pages. And CSS code I tested here runs on 61,894,031 pages. And that's just on the English Wikipedia. People like you who delete and edit my work hinder my work here, and that's detrimental to Wikipedia. Instead, if there is any content here that you wonder about, then you are welcome to ask about it on my talkpage. This is David's user group-editnotice: User:Davidgothberg/Editnotice-group |
End David's editnotice loader template.
Warning! This page is a template and is used as the editnotice loader for David's pages.
Test35
Test35
User:Davidgothberg
User:Editnotice
/Editnotice2.css: User:Davidgothberg/Editnotice2.css
/Editnotice.css: on
ifeq /Editnotice2.css: off
ifeq /Editnotice.css: on
Some text. |
Some text. |
Some text. |
Some text. |
Improved editnotice systemMediaWiki uses numbers and hyphens "-" in the editnotice names. This causes problems since in template programming we can not convert back to a slashed "/" page name from such a hyphenated name. These names are also hard for humans to handle. But we can put code in the main "hyphen-style" editnotice for each namespace that in turn loads "slash-style" editnotices for a page. This gives us several nice possibilities: 1: We can load "user editnotices" from user space that the users can edit themselves. (We already do this, but we can improve it.) 2: We can make two different types of editnotices: One type that is only shown on the one page it was made for, and a page group type that is shown on its own page and all its subpages. The current hyphen-style editnotices are only of the page group type, they are always shown on the subpages too, which can be confusing. 3: We can automatically (at load time) add view links on top of the editnotices so it is easy to find them and edit them. 4: A slash-style editnotice can link back to its subject page since we can convert back and forth between a page name and its editnotice name using only template code. In fact, the loader can automatically show that link as an editnotice when editing the editnotice, thus it doesn't have to be in the editnotice's code. All this might sound a bit tricky, but we can make it very user-friendly. The sections below show what addresses the old and new type of editnotices have for this page and some related pages. Hyphen styleThis is the old system. This namespace:
MediaWiki:Editnotice-2
(talk) This page: MediaWiki:Editnotice-2-Davidgothberg-Test35 (talk) Slash style, for adminsFor most namespaces we probably should use editnotices that only can be edited by admins. This namespace: MediaWiki:Editnotice/User (talk) This page: MediaWiki:Editnotice/User/Davidgothberg/Test35 (talk) For its talk page: MediaWiki:Editnotice/User talk/Davidgothberg/Test35 (talk) Page group: MediaWiki:Editnotice-group/User/Davidgothberg (talk) Talk page group: MediaWiki:Editnotice-group/User talk/Davidgothberg (talk) Slash style, for usersFor user space and perhaps template space we probably should use editnotices that can be edited by any user. Here the talkpage of an editnotice is the editnotice for the corresponding user talk page. This page: User:Davidgothberg/Test35/Editnotice For its talk page: User talk:Davidgothberg/Test35/Editnotice Page group: User:Davidgothberg/Editnotice-group Talk page group: User talk:Davidgothberg/Editnotice-group More examples?The text and links this box shows was produced by the template {{Wikipedia:Editnotice/linkdemo}}. You can put this template on any page to see the links to the different possible editnotices for that page. You can use edit preview so you don't need to save this template on the page. |
Template documentation
[edit]This is the {{User:Davidgothberg/Test35}} template.
It takes no parameters. You can put it on any page to see the links to the different possible editnotices for that page. You can use edit preview so you don't need to save this template on the page.
See also
[edit]- Wikipedia:Editnotice – More about editnotices.
- {{editnotice}} – A template for making editnotices.