Wikibooks:Editnotice: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m traduz libera
m traduz. (ma quanto sono ripetitivi sti anglofoni!) Sarà necessario rivedere.
Riga 7:
 
 
Gli '''avvisi di edit''' o '''Editnotice''' sono riquadri di avviso in testa alla pagina che vengono mostrati sopra la ''finestra di edit'' quando si modifica una pagina. Tutti gli utenti possono creare ''editnotice'' per le loro pagine utente e le loro pagine di discussione; le altre pagine possono essere create e modificate solo da amministratori e creatori di account.
 
Per utilizzare la funzione editnotice bisogna avere una conoscenza di base del concetto di ''[[Aiuto:namespace|namespace]]''.
Alcuni avvisi in testa alla pagina che si vedono quando si modifica una pagina (o guardando il codice di una pagina protetta) non sono ''editnotice'', sono messaggi di sistema mediawiki<ref> vedi [[:en:Help:MediaWiki namespace|MediaWiki interface messages]]</ref>
 
 
 
== EditnoticeLink linksagli editnotice ==
 
Quando viene modificata una pagina appaiono ''link'' rossi o blu in cima alla pagina tipo questiquesto:
 
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[Questa pagina non dovrebbe esistere|Page notice]]</small> </div>
{{clear}}
 
Oo come questi:
 
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[Exemplum|Group notice]] &nbsp; [[Questa pagina non dovrebbe esistere|Page notice]]</small> </div>
Line 31 ⟶ 29:
 
Vedi la sezione [[#Nascondere i link rossi|Nascondere i link rossi]] più sotto.
<!-----
 
== Gli editnotice ==
They are links to the group and page editnotices of the page. Admins and accountcreators always see both links, even if the notices have not yet been created, since they can create and edit the editnotices. Normal users only see the red "Page notice" link on their own user and user talk basepage, since they can create and edit such notices. Normal users also see blue links to group and page notices if they already have been created, so they can find and view the source code of the notice. But normal users still can't edit those notices, except the ones in userspace.
Quando si creano avvisi di modifica, il template {{tl|editnotice}} può essere utilizzato per la formattazione; vedi il {{tl|editnotice/man|manuale}} per il suo utilizzo. <!----See [[:Category:Editnotice templates]] for specialized editnotices.---->
 
=== Utente e discussioni utente ===
See also the section [[#Hiding the red links|Hiding the red links]] below.
Chiunque può creare l'editnotice per la propria pagina utente o la propria pagina di discussione, mentre l'editnotice per qualsiasi sottopagina delle medesime può essere creata soltanto da amministratori e creatori di account. L'editnotice delle pagine utente deve avere questa forma
:<code>Utente:nome utente/Editnotice</code>
:<code>Discussioni utente:nome utente/Editnotice</code>
 
Puoi creare un editnotice per la tua pagina utente e discussione con un template {{tl|editnotice}} precaricato utilizzando questi link:
:{{preload|Speciale:MiaPaginaUtente/Editnotice}}
:{{preload|Speciale:MieDiscussioni/Editnotice}}
 
<!-----
=== User and user talk ===
 
Anyone can create an editnotice for a user or user talk page. (But editnotices for user
== Editnotices ==
 
sub-pages can only be created by admins and accountcreators.) User page editnotice names
When creating editnotices, the template {{tl|editnotice}} can be used for formatting; see its template page for how to use it. See [[:Category:Editnotice templates]] for specialized editnotices.
 
take one of these forms:
=== User and user talk ===
 
Anyone can create an editnotice for a user or user talk page. (But editnotices for user sub-pages can only be created by admins and accountcreators.) User page editnotice names take one of these forms:
:<code>User:Example/Editnotice</code>
:<code>User talk:Example/Editnotice</code>
 
You can create an editnotice for your own user or talk page with a preloaded

{{tl|editnotice}} template by using these links:
:{{preload|Special:MyPage/Editnotice|Create your user page

notice|Template:Editnotice/preload}}
:{{preload|Special:MyTalk/Editnotice|Create your user talk page

notice|Template:Editnotice/preload}}
 
=== Other namespaces ===
 
Editnotices for other namespaces and for user subpages can be created and edited only by

admins and accountcreators. There are three main types of editnotices:
:Namespace notices&nbsp;– Displays on all pages within a namespace.
:Group notices&nbsp;– Displays on a page and all its subpages.
Line 63 ⟶ 75:
 
:Namespace notices&nbsp;– See below.
:Group notices&nbsp;– <code>Template:Editnotices/Group/''<Full page name of the

rootpage>''</code>
:Page notices&nbsp;– <code>Template:Editnotices/Page/''<Full page name>''</code>
 
=== Creating editnotices ===
 
To edit a namespace-wide editnotice, click on the respective link below. To create an

editnotice for a page, enter the page name after the slash or colon and click "Create". For

your own User: and User talk: pages, you don't need to type anything, just click "Create".
 
Page names are case sensitive— if the page shows the first character as capitalized, then it
 
Page names are case sensitive— if the page shows the first character as capitalized, then it ''must'' be capitalized when entered here.
 
{| class="wikitable"
Line 243 ⟶ 263:
* Place this code on the page: {{tl|editnotice talkpagename}}
* Preview the page and follow the link to the editnotice's talkpage.
* On the editnotice's talkpage write up the exact code you want for the editnotice, then

place an {{tl|editprotected}} request above it
 
Another way to find the link for an editnotice is to:
Line 252 ⟶ 274:
== When displayed ==
 
Editnotices are displayed when editing a page, but their content can also be useful when just viewing a page so they are also displayed in these cases:
 
just viewing a page so they are also displayed in these cases:
* Page notices are displayed on top of .css and .js pages in MediaWiki space. See for instance the notice at the top of [[MediaWiki:Common.css]] that begins "''This is the CSS for all skins''". The namespace notice is not displayed and MediaWiki space doesn't have group notices.
 
* Page notices are displayed on top of .css and .js pages in MediaWiki space. See for
* In any namespace, when a non-admin "views the source" of a protected page, or an IP-user views the source of a semi-protected page. The group and page notices are displayed, but not the namespace notices.
 
instance the notice at the top of [[MediaWiki:Common.css]] that begins "''This is the CSS
When the editnotices are shown in "view mode" the loading system feeds them "<code>notice action = view</code>". This can be used inside the editnotices like this:
 
for all skins''". The namespace notice is not displayed and MediaWiki space doesn't have
 
group notices.
 
* In any namespace, when a non-admin "views the source" of a protected page, or an IP-user
 
views the source of a semi-protected page. The group and page notices are displayed, but not
 
the namespace notices.
 
When the editnotices are shown in "view mode" the loading system feeds them "<code>notice
 
action = view</code>". This can be used inside the editnotices like this:
 
<pre>
Line 269 ⟶ 305:
== Hiding the red links ==
 
If you don't want to see the red "Group notice" and "Page notice links, then add the below

code to your personal [[Special:Mypage/monobook.css|/monobook.css]], then wait a minute,

then [[Wikipedia:Bypass your cache|bypass]] your browser cache. (If you use another skin,

here's a link to [[Special:Mypage/skin.css|your skin CSS]].)
 
<source lang="css">
Line 278 ⟶ 320:
</source>
 
If you don't want to see any of the "Group notice" and "Page notice links, then use this

code instead:
 
<source lang="css">
Line 289 ⟶ 333:
== Notices ==
 
When an editnotice is used on an article, administrators and accountcreators are advised to

leave notification on the talk page.
 
The template {{t1|active editnotice}} may be used to indicate that a non-user page has an
 
active (non blank) editnotice. Articles and non-article pages will then be added
 
respectively to [[:Category:Articles with editnotices]] and [[:Category:Pages with
 
editnotices]].
The template {{t1|active editnotice}} may be used to indicate that a non-user page has an active (non blank) editnotice. Articles and non-article pages will then be added respectively to [[:Category:Articles with editnotices]] and [[:Category:Pages with editnotices]].
 
== Listing editnotices ==
 
* [[Special:PrefixIndex/MediaWiki:Editnotice]]&nbsp;– The main MediaWiki namespace notices,

and any lingering MediaWiki page notices.
* [[Special:PrefixIndex/Template:Editnotices]]&nbsp;– All editnotices stored under

"Template:Editnotices".
* [[Special:PrefixIndex/Template:Editnotice]]&nbsp;– All templates and sub-templates with

names beginning with "Template:Editnotice...". Including the editnotices stored under

"Template:Editnotices".
* [[Special:WhatLinksHere/Template:Editnotice]]&nbsp;– Pages that use the {{tl|editnotice}}

template.
* [[:Category:Articles with editnotices]]&nbsp;– Articles marked with {{tl|active

editnotice}}.
* [[:Category:Pages with editnotices]]&nbsp;– Other pages marked with {{tl|active

editnotice}}.
 
== Technical details ==
 
Editnotices are loaded and displayed by the {{tl|editnotice load}} template. That template

is placed in the main MediaWiki namespace notices named [[MediaWiki:Editnotice-0]],

[[MediaWiki:Editnotice-1]] and so on.
 
The editnotice system uses two methods of storing the editnotices:
 
* For User and User talk space the editnotice is stored as a subpage of the user or talk page named /Editnotice. This method allows users to edit these notices.
* For all other namespaces and for user sub-pages the editnotice is stored as a subpage of [[Template:Editnotices]]. Template:Editnotices and its subpages are protected by the [[MediaWiki:Titleblacklist]] so that only admins and accountcreators can create and edit them.
 
page named /Editnotice. This method allows users to edit these notices.
Although all of the namespaces could initially store editnotices directly as MediaWiki messages, this was found to cause performance issues as the [[Help:MediaWiki namespace|MediaWiki namespace]] grew. The display of MediaWiki editnotices for namespaces that have the MediaWiki [[meta:Link#Subpage feature|subpage feature]] has been disabled; even though an editnotice can be created as a MediaWiki message for these namespaces, it will not show. For consistency, and to keep the MediaWiki namespace clean, all editnotices are now stored as subpages of Template:Editnotices. This means we again can create editnotices for all namespaces.
* For all other namespaces and for user sub-pages the editnotice is stored as a subpage of
 
[[Template:Editnotices]]. Template:Editnotices and its subpages are protected by the
Group notices stored as <code>Template:Editnotices/Group/...</code> can be created for pages in all namespaces except main (article), File (image), MediaWiki, and Category. The reason is that those namespaces don't have the MediaWiki [[meta:Link#Subpage feature|subpage feature]], thus group notices would not be meaningful in those namespaces. The talk spaces of those namespaces understand subpages and can use group notices, although group notices are usually not meaningful there either.
 
[[MediaWiki:Titleblacklist]] so that only admins and accountcreators can create and edit
 
them.
 
Although all of the namespaces could initially store editnotices directly as MediaWiki
 
messages, this was found to cause performance issues as the [[Help:MediaWiki
 
namespace|MediaWiki namespace]] grew. The display of MediaWiki editnotices for namespaces
 
that have the MediaWiki [[meta:Link#Subpage feature|subpage feature]] has been disabled;
 
even though an editnotice can be created as a MediaWiki message for these namespaces, it
 
will not show. For consistency, and to keep the MediaWiki namespace clean, all editnotices
 
are now stored as subpages of Template:Editnotices. This means we again can create
 
editnotices for all namespaces.
 
Group notices stored as <code>Template:Editnotices/Group/...</code> can be created for pages
 
in all namespaces except main (article), File (image), MediaWiki, and Category. The reason
 
is that those namespaces don't have the MediaWiki [[meta:Link#Subpage feature|subpage
 
feature]], thus group notices would not be meaningful in those namespaces. The talk spaces
 
of those namespaces understand subpages and can use group notices, although group notices
 
are usually not meaningful there either.
 
== Edit intros ==
Line 319 ⟶ 421:
Edit intros are similar to editnotices, but use different schemes:
 
* Disambiguation pages include the {{tl|disambig}} template; this triggers code at [[MediaWiki:Common.js]] to show {{tl|disambig editintro}}.
 
* Biographies of living people are placed into [[:Category:Living people]] or [[:Category:Possibly living people]]; this triggers code at [[MediaWiki:Common.js]] to show {{tl|BLPdisambig editintro}}.
 
* Biographies of living people are placed into [[:Category:Living people]] or
Edit intros currently only show when editing the entire page or the last section; they do not show when editing other sections.
 
[[:Category:Possibly living people]]; this triggers code at [[MediaWiki:Common.js]] to show
 
{{tl|BLP editintro}}.
 
Edit intros currently only show when editing the entire page or the last section; they do
 
not show when editing other sections.
 
== Emailnotice ==
{{shortcut|WP:EMN}}
Emailnotices allow registered users with a confirmed email to display a custom message at

[[Special:Emailuser]] for their username. Emailnotices are located at

[[Special:Mypage/Emailnotice]]

([http://en.wikipedia.org/w/index.php?title=Special%3ASearch&redirs=1&search=%2Femailnotice&

fulltext=Search&ns2=1&title=Special%3ASearch&advanced=1&fulltext=Advanced+search uses]). The system was implemented in [[MediaWiki:Emailpagetext]] after [[Wikipedia:Village_pump_(technical)/Archive_66#edit notice for special:emailuser|this discussion]].
 
system was implemented in [[MediaWiki:Emailpagetext]] after
 
[[Wikipedia:Village_pump_(technical)/Archive_66#edit notice for special:emailuser|this
 
discussion]].
 
== Dismissibility and per-category editnotices ==
 
As of now, editnotices cannot be easily dismissed, there is a request ({{bug|15102}}) to allow this using cookie IDs, similarly to what is done with [[mediawiki:watchlist-details]].
 
allow this using cookie IDs, similarly to what is done with [[mediawiki:watchlist-details]].
Per-category editnotices could be used to replace the edit intros for biographies of living people and disambiguation pages, which cannot be easily hidden and does not work for section editing. The resolution of {{bug|18596}} should allow the use per-category editnotices.
 
Per-category editnotices could be used to replace the edit intros for biographies of living
 
people and disambiguation pages, which cannot be easily hidden and does not work for section
 
editing. The resolution of {{bug|18596}} should allow the use per-category editnotices.
 
== History ==
 
Since this is a new system this page is not complete. Here are some links to more information:
 
information:
* [[Wikipedia:Wikipedia Signpost/2008-08-11/Technology report#New features]]&nbsp;– The announcement about editnotices.
 
* [[Wikipedia:Village pump (technical)/Archive 46#Custom edit messages]]&nbsp;– An archived discussion about editnotices.
* [[Wikipedia:Wikipedia Signpost/2008-08-11/Technology report#New features]]&nbsp;– The
* [http://en.wikipedia.org/w/index.php?title=Special%3ASearch&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&search=editnotice&fulltext=Advanced+search]&nbsp;– You can search for any pages that mention the editnotice system.
 
announcement about editnotices.
* [[Wikipedia:Village pump (technical)/Archive 46#Custom edit messages]]&nbsp;– An archived
 
discussion about editnotices.
*
 
[http://en.wikipedia.org/w/index.php?title=Special%3ASearch&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns
 
5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&search
 
=editnotice&fulltext=Advanced+search]&nbsp;– You can search for any pages that mention the
 
editnotice system.
 
== Related templates ==
Line 347 ⟶ 491:
* {{tl|active editnotice}}
* {{tl|editnotice}}&nbsp;– A template for making editnotices.
* {{tl|editnotice pagename}}&nbsp;– Returns the pagename for the editnotice for the current

page.
* {{tl|editnotice talkpagename}}&nbsp;– Returns the talkpage name for the editnotice for the

current page.
* {{tl|editnotice explanation}}&nbsp;- For editnotice talk pages. Explains how editnotices

are protected, and optionally shows a CSS customization parameter.
* {{tl|editnotice load}}&nbsp;– The template that is doing most of the editnotice loading

and also displays the small "Group notice" and "Page notice" links.
* {{tl|editnotice loader}}&nbsp;– The old suggested extension to make the editnotice system

user-friendly. Many of its features have over time been added to {{tl|editnotice load}}.
 
[[pt:Wikipedia:Namespace MediaWiki/Editnotice]]
Line 359 ⟶ 513:
==Note==
<references />
 
[[en:Wikipedia:Editnotice]]