Help:Editnotice: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
imported>C.Syde65
m (Replaced http: with https: and .wikia.com with .fandom.com.)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Nosharedhelp}}
{{Help page}}
'''Editnotices''' are large message boxes that are shown above the edit window when a user edits a page. This is often used to convey important notices and messages, such as warnings and reminders. The Sims Wiki has adopted a sophisticated editnotice system, modelled after the one used on Wikipedia, that allows for more flexibility with editnotices.
'''Editnotices''' are messages displayed at the top of a page when you're editing it. Editnotices can only be set by [[The Sims Wiki:Administrators|Administrators]]. They are located in the [[Help:MediaWiki namespace|MediaWiki namespace]] and can be set for either all pages in a namespace or for individual articles.


==Creating editnotices==
Editnotices are usually created using the {{tl|Editnotice}} template, which uses {{tl|Metabox}} as its base, as is standard on The Sims Wiki. However, this is not a requirement, and editnotices can utilize any template, or even be in plain text.


Editnotices are stored as individual pages that are then [[Help:Transclusion|transcluded]] into the top of the page where they are needed. These pages can be [[Help:Editing|edited]] like any other page. In most cases, only [[Project:Administrators|administrators]] are able to create and edit editnotices, as they are part of the interface and subject to abuse.
To set an editnotice create a new article at <code>MediaWiki:Editnotice-x</code> where <code>x</code> is the [[Help:Namespace|namespace number]].


There are three main types of editnotices:
For editnotices to individual pages, create a new article at <code>MediaWiki:Editnotice-x-pagename</code> with <code>x</code> as the namespace number like above and <code>pagename</code> is the name of the article, eg. <code>The_Sims_Wiki</code> or <code>Barnacle Bay</code>
* '''Namespace notices''': these are displayed for all pages in a given [[Help:Namespace|namespace]].
* '''Group notices''': these are displayed for a specified page and all of its [[Help:Subpage|subpages]].
* '''Page notices''': these are displayed for only a single page.


These three types of editnotices are all stored as subpages of [[Template:Editnotices]]. These are then further organized into subpages by type, and then by the namespace or page they are configured to appear on. For example:


* An editnotice placed on the page <code>[[Template:Editnotices/Namespace/Template]]</code> will be shown on all pages in the [[Help:Template|template namespace]].
When creating a new editnotice, please use the div's below. When making an editnotice it is best to be brief, but if your message is long, consider left-aligning the image by adding <code>|left</code> and then clear to the left (<code><nowiki>{{clrl}}</nowiki></code>) or the image will clip outside the div on widescreen resolutions.
* An editnotice placed on the page <code>Template:Editnotices/Group/Foo Bar</code> will be shown on the page [[Foo Bar]], and any of its subpages, such as [[Foo Bar/Baz]] and [[Foo Bar/Baz/Bee]].
* An editnotice placed on the page <code>Template:Editnotices/Page/FooBar</code> will only be shown on the page [[FooBar]].


===User, User talk, and Fanon editnotices===
Editnotices can also be displayed on one's own [[Help:User page|user page]], [[Help:User talk page|user talk page]], and [[Project:Fanon|fanon page]]. Unlike the other three main editnotices, anyone can create and edit them (in other words, you do not need to be an administrator to create and edit them), and they are not stored as subpages of <code>Template:Editnotices</code>, but as subpages of the user/fanon page in question. For instance:


* To create a userpage editnotice for [[User:Example]], edit the page <code>User:Example/Editnotice</code>.
;Information editnotice
* To create a user talk page editnotice for [[User talk:Example]], edit the page <code>User talk:Example/Editnotice</code>.
Add the full page name after the <code>|</code> pipe in the [[Template:Edit|edit template]] eg. <code>MediaWiki-6</code>. Replace <code>message</code> with your message. Example: [[MediaWiki:Editnotice-6]]
* To create a fanon editnotice for [[Fanon:Example]], edit the page <code>Fanon:Example/Editnotice</code>.
<pre>
<div style="border:1px solid black; background:#EEEEEE; padding:5px;">
<div style="float:right; margin-right:4px;">{{Edit|}}</div>
[[File:Info_information_icon.png|50px]] message
</div>
</pre>


===Quick links to creating editnotices===
;Warning editnotice
You can create an editnotice for a page by going to the page you want to create an editnotice for, clicking on "Edit", and then looking at the top-right corner of the page. You should see links that look something like this:
Add the full page name after the <code>|</code> pipe in the [[Template:Edit|edit template]] eg. <code>MediaWiki-6</code>. Replace <code>message</code> with your message. Example: [[MediaWiki:Editnotice-0-The Sims Wiki]]
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[This page should not exist|Page notice]]</small> </div>
<pre>
{{clear}}
<div style="border:1px solid #E83232; background:#FFDDCC; padding:5px;">

<div style="float:right; margin-right:4px;">{{Edit|}}</div>
or like this:
[[File:Icon-warning-48x48.png]] message

</div>
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[Example|Group notice]] &nbsp; [[This page should not exist|Page notice]]</small> </div>
</pre>
{{clear}}

You will only see these links if you have the permission to create these editnotices.

You can also use the table below to navigate to the relevant pages. To create an editnotice for a page, enter the page name and click "Create". Page names ''are'' case-sensitive. For your own User: and User talk: pages, you don't need to type anything, just click "Create".

{| class="wikitable" style="width: 95%; margin: 0px auto;"
|-
! style="width: 75px;"| Namespace number !! style="width: 125px;"| Namespace !! style="width: 275px;"| Namespace editnotice !! Create page editnotice
|-
|-
| style="height: 50px;"|0 || Main: (article) || [[Template:Editnotices/Namespace/Main]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|1 || Talk: (article talk) || [[Template:Editnotices/Namespace/Talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|2 || User: || [[Template:Editnotices/Namespace/User]] || <inputbox>
break=no
type=create
buttonlabel=Create your own user page notice
prefix=Special:MyPage/Editnotice
preload=Template:Editnotice/preload
hidden=yes
</inputbox>
<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/User:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|3 || User talk: || [[Template:Editnotices/Namespace/User talk]] || <inputbox>
break=no
type=create
buttonlabel=Create your own user talk page notice
prefix=Special:MyTalk/Editnotice
preload=Template:Editnotice/preload
hidden=yes
</inputbox>
<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/User talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|4 || The Sims Wiki: || [[Template:Editnotices/Namespace/The Sims Wiki]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/The Sims Wiki:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|5 || The Sims Wiki talk: || [[Template:Editnotices/Namespace/The Sims Wiki talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/The Sims Wiki talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|6 || File: || [[Template:Editnotices/Namespace/File]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/File:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|7 || File talk: || [[Template:Editnotices/Namespace/File talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/File talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|8 || MediaWiki: || [[Template:Editnotices/Namespace/MediaWiki]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/MediaWiki:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|9 || MediaWiki talk: || [[Template:Editnotices/Namespace/MediaWiki talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Mediawiki talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|10 || Template: || [[Template:Editnotices/Namespace/Template]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Template:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|11 || Template talk: || [[Template:Editnotices/Namespace/Template talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Template talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|12 || Help: || [[Template:Editnotices/Namespace/Help]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Help:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|13 || Help talk: || [[Template:Editnotices/Namespace/Help talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Help talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|14 || Category: || [[Template:Editnotices/Namespace/Category]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Category:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|15 || Category talk: || [[Template:Editnotices/Namespace/Category talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Category talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|110 || Forum: || [[Template:Editnotices/Namespace/Forum]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Forum:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|111 || Forum talk: || [[Template:Editnotices/Namespace/Forum talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Forum talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|274 || Widget: || [[Template:Editnotices/Namespace/Widget]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Widget:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|275 || Widget talk: || [[Template:Editnotices/Namespace/Widget talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Widget talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|710 || TimedText: || [[Template:Editnotices/Namespace/TimedText]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/TimedText:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|711 || TimedText talk: || [[Template:Editnotices/Namespace/TimedText talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/TimedText talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|828 || Module: || [[Template:Editnotices/Namespace/Module]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Module:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|829 || Module talk: || [[Template:Editnotices/Namespace/Module talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Module talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|3000 || Fanon: || [[Template:Editnotices/Namespace/Fanon]] || <inputbox>
break=no
type=create
buttonlabel=Create your own fanon page notice
prefix=Fanon:
preload=Template:Editnotice/preload
default=<your fanon name here>/Editnotice
</inputbox>
|-
| style="height: 50px;"|3001 || Fanon talk: || [[Template:Editnotices/Namespace/Fanon talk]] || <inputbox>
break=no
type=create
buttonlabel=Create your own fanon talk page notice
prefix=Fanon talk:
preload=Template:Editnotice/preload
default=<your fanon name here>/Editnotice
</inputbox>
|-
| style="height: 50px;"|3002 || Game guide: || [[Template:Editnotices/Namespace/Game guide]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Game guide:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|3003 || Game guide talk: || [[Template:Editnotices/Namespace/Game guide talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Game guide talk:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|3004 || Custom content: || [[Template:Editnotices/Namespace/Custom content]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Custom content:
preload=Template:Editnotice/preload
</inputbox>
|-
| style="height: 50px;"|3005 || Custom content talk: || [[Template:Editnotices/Namespace/Custom content talk]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Custom content talk:
preload=Template:Editnotice/preload
</inputbox>
|}

==Advanced==
===Hiding the editnotice links===
If you don't want to see red "Group notice" and "Page notice" links and prefer to only be able to see them when those pages actually exist, add the following to your [[Help:Personal JS and CSS|personal CSS]]:

<source lang="css">
/* Hide the red "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-redlink {
display: none !important;
}
</source>

If you want to hide those links entirely, use this instead:

<source lang="css">
/* Hide all the "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-link {
display: none !important;
}
</source>

===Technical explanation===
MediaWiki supports [[mw:Manual:Interface/Edit notice|editnotices]] as a part of the [[Help:MediaWiki namespace|MediaWiki namespace]]. Editnotices can be configured as namespace notices. On Wikipedia, this method was found to be inefficient as the MediaWiki namespace grew in size, resulting in performance issues.

The current editnotice system replaces the namespace-specific editnotice pages in the MediaWiki namespace with {{tl|editnotice load}}, which causes pages to use a subpage specific to it as its editnotice, rather than a namespace-wide MediaWiki namespace.

===Group editnotices and subpages===
Group editnotices do not work in namespaces that do not have [[Help:Subpage|subpages]] enabled, as such a feature would not be useful. Subpages are enabled in all namespaces on The Sims Wiki. Subpages can be enabled or disabled for each individual namespace using the [[Help:ManageWiki|ManageWiki]] interface.

==List of editnotices==
* [[Special:PrefixIndex/MediaWiki:Editnotice]]&nbsp;– The main MediaWiki namespace notices, and any lingering MediaWiki page notices.
* [[Special:PrefixIndex/Template:Editnotices]]&nbsp;– All templates and sub-templates with names beginning with "Template:Editnotices...".
* [[Special:WhatLinksHere/Template:Editnotice]]&nbsp;– Pages that use the {{tl|editnotice}} template.


==See also==
==See also==
* [[w:en:Wikipedia:Editnotice|Wikipedia:Editnotice]] on English Wikipedia
*[https://sims.fandom.com/index.php?title=Special%3APrefixIndex&prefix=Editnotice&namespace=8 List of editnotices on The Sims Wiki]
* [[mw:Manual:Interface/Edit notice|Manual:Interface/Edit notice]] on MediaWiki.org (technical documentation)
*[[Help:Namespace]]


{{Seo
==External links==
|keywords = sims, the sims, the sims wiki, wiki, mediawiki, wikipedia, miraheze, editnotice, editnotices, editing
*[[Wikipedia:Wikipedia:Editnotice|Wikipedia:Editnotice]]
|description = Editnotices are large message boxes that are shown above the edit window when a user edits a page. This is often used to convey important notices and messages, such as warnings and reminders. The Sims Wiki has adopted a sophisticated editnotice system, modelled after the one used on Wikipedia, that allows for more flexibility with editnotices.
}}

Latest revision as of 21:34, 5 September 2019

This page is a help page
It is meant to detail processes or procedures of some aspect or aspects of The Sims Wiki's norms and practices. It is not a policy page.

Editnotices are large message boxes that are shown above the edit window when a user edits a page. This is often used to convey important notices and messages, such as warnings and reminders. The Sims Wiki has adopted a sophisticated editnotice system, modelled after the one used on Wikipedia, that allows for more flexibility with editnotices.

Creating editnotices[edit source]

Editnotices are usually created using the {{Editnotice}} template, which uses {{Metabox}} as its base, as is standard on The Sims Wiki. However, this is not a requirement, and editnotices can utilize any template, or even be in plain text.

Editnotices are stored as individual pages that are then transcluded into the top of the page where they are needed. These pages can be edited like any other page. In most cases, only administrators are able to create and edit editnotices, as they are part of the interface and subject to abuse.

There are three main types of editnotices:

  • Namespace notices: these are displayed for all pages in a given namespace.
  • Group notices: these are displayed for a specified page and all of its subpages.
  • Page notices: these are displayed for only a single page.

These three types of editnotices are all stored as subpages of Template:Editnotices. These are then further organized into subpages by type, and then by the namespace or page they are configured to appear on. For example:

User, User talk, and Fanon editnotices[edit source]

Editnotices can also be displayed on one's own user page, user talk page, and fanon page. Unlike the other three main editnotices, anyone can create and edit them (in other words, you do not need to be an administrator to create and edit them), and they are not stored as subpages of Template:Editnotices, but as subpages of the user/fanon page in question. For instance:

  • To create a userpage editnotice for User:Example, edit the page User:Example/Editnotice.
  • To create a user talk page editnotice for User talk:Example, edit the page User talk:Example/Editnotice.
  • To create a fanon editnotice for Fanon:Example, edit the page Fanon:Example/Editnotice.

Quick links to creating editnotices[edit source]

You can create an editnotice for a page by going to the page you want to create an editnotice for, clicking on "Edit", and then looking at the top-right corner of the page. You should see links that look something like this:

Page notice

or like this:

Group notice   Page notice

You will only see these links if you have the permission to create these editnotices.

You can also use the table below to navigate to the relevant pages. To create an editnotice for a page, enter the page name and click "Create". Page names are case-sensitive. For your own User: and User talk: pages, you don't need to type anything, just click "Create".

Namespace number Namespace Namespace editnotice Create page editnotice
0 Main: (article) Template:Editnotices/Namespace/Main
1 Talk: (article talk) Template:Editnotices/Namespace/Talk
2 User: Template:Editnotices/Namespace/User
3 User talk: Template:Editnotices/Namespace/User talk
4 The Sims Wiki: Template:Editnotices/Namespace/The Sims Wiki
5 The Sims Wiki talk: Template:Editnotices/Namespace/The Sims Wiki talk
6 File: Template:Editnotices/Namespace/File
7 File talk: Template:Editnotices/Namespace/File talk
8 MediaWiki: Template:Editnotices/Namespace/MediaWiki
9 MediaWiki talk: Template:Editnotices/Namespace/MediaWiki talk
10 Template: Template:Editnotices/Namespace/Template
11 Template talk: Template:Editnotices/Namespace/Template talk
12 Help: Template:Editnotices/Namespace/Help
13 Help talk: Template:Editnotices/Namespace/Help talk
14 Category: Template:Editnotices/Namespace/Category
15 Category talk: Template:Editnotices/Namespace/Category talk
110 Forum: Template:Editnotices/Namespace/Forum
111 Forum talk: Template:Editnotices/Namespace/Forum talk
274 Widget: Template:Editnotices/Namespace/Widget
275 Widget talk: Template:Editnotices/Namespace/Widget talk
710 TimedText: Template:Editnotices/Namespace/TimedText
711 TimedText talk: Template:Editnotices/Namespace/TimedText talk
828 Module: Template:Editnotices/Namespace/Module
829 Module talk: Template:Editnotices/Namespace/Module talk
3000 Fanon: Template:Editnotices/Namespace/Fanon
3001 Fanon talk: Template:Editnotices/Namespace/Fanon talk
3002 Game guide: Template:Editnotices/Namespace/Game guide
3003 Game guide talk: Template:Editnotices/Namespace/Game guide talk
3004 Custom content: Template:Editnotices/Namespace/Custom content
3005 Custom content talk: Template:Editnotices/Namespace/Custom content talk

Advanced[edit source]

Hiding the editnotice links[edit source]

If you don't want to see red "Group notice" and "Page notice" links and prefer to only be able to see them when those pages actually exist, add the following to your personal CSS:

/* Hide the red "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-redlink {
  display: none !important;
}

If you want to hide those links entirely, use this instead:

/* Hide all the "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-link {
  display: none !important;
}

Technical explanation[edit source]

MediaWiki supports editnotices as a part of the MediaWiki namespace. Editnotices can be configured as namespace notices. On Wikipedia, this method was found to be inefficient as the MediaWiki namespace grew in size, resulting in performance issues.

The current editnotice system replaces the namespace-specific editnotice pages in the MediaWiki namespace with {{editnotice load}}, which causes pages to use a subpage specific to it as its editnotice, rather than a namespace-wide MediaWiki namespace.

Group editnotices and subpages[edit source]

Group editnotices do not work in namespaces that do not have subpages enabled, as such a feature would not be useful. Subpages are enabled in all namespaces on The Sims Wiki. Subpages can be enabled or disabled for each individual namespace using the ManageWiki interface.

List of editnotices[edit source]

See also[edit source]