Wikibooks:Editnotice: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m traduz. (ma quanto sono ripetitivi sti anglofoni!) Sarà necessario rivedere.
m Traduz
Riga 42:
:{{preload|Speciale:MieDiscussioni/Editnotice}}
 
<!-----
=== 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.
:Page notices&nbsp;– Displays only on the page it belongs to.
 
Editnotice names take one of these forms:
 
:Namespace notices&nbsp;– See below.
:Group notices&nbsp;– <code>Template:Editnotices/Group/''<Full page name of the
 
=== Altri namespace ===
rootpage>''</code>
:Page notices&nbsp;– <code>Template:Editnotices/Page/''<Full page name>''</code>
 
Gli ''editnotices'' per altri ''namespace'' e per sottopagine utente possono essere creati solo da amministratori e creatori di account.
=== Creating editnotices ===
Ci sono tre tipi principali di editnotice:
:Namespace notices&nbsp;– Mostrati in tutte le pagine appartenentia a quel namespace.
:Group notices&nbsp;– Mostrati in una pagina ed in tutte le sue sottopagine.
:Page notices&nbsp;– Mostrati soltanto sulla pagina a cui ciascuna appartiene.
 
ed assumono una di queste forme:
To edit a namespace-wide editnotice, click on the respective link below. To create an
 
:Namespace notices&nbsp;– vedi sotto.
editnotice for a page, enter the page name after the slash or colon and click "Create". For
:Group notices&nbsp;– <code>Template:Editnotices/Group/ ''<Specifico per pagina e sottopagine relative>''</code>
:Page notices&nbsp;– <code>Template:Editnotices/Page/ ''<Specifico per la pagina>''</code>
 
your own User: and User talk: pages, you don't need to type anything, just click "Create".
 
=== Generazione degli editnotice ===
Page names are case sensitive— if the page shows the first character as capitalized, then it
Per editare ''editnotice'' per ogni tipo di ''namespace'', cliccare sui rispettivi link della sootostante tabella. Per creare un editnotice per una pagina, inserire il nome della pagina dopo lo ''slash'' ( segno /) o i due punti (segno :) e cliccare su "Create". Per la propria pagina utente e pagina di discussione, non dovete fare altro che cliccare su "Create".
 
I nomi delle pagine sono case sensitive - se la pagina ha il primo carattere maiuscolo, deve essere inserito in maiuscolo anche qui.
''must'' be capitalized when entered here.
 
{| class="wikitable"
Line 96 ⟶ 68:
! Number !! Namespace !! Namespace editnotice !! Create page editnotice
|-
|0 || Main: (article) Principale || [[Template:Editnotices/Namespace/Main]] || <inputbox>
break=no
type=create
Line 104 ⟶ 76:
</inputbox>
|-
|1 || Talk: (article talk)Discussione || [[Template:Editnotices/Namespace/Talk]] || <inputbox>
break=no
type=create
Line 112 ⟶ 84:
</inputbox>
|-
|2 || UserUtente: || [[Template:Editnotices/Namespace/User]] || <inputbox>
break=no
type=create
Line 121 ⟶ 93:
</inputbox>
|-
|3 || UserDiscussioni talkutente: || [[Template:Editnotices/Namespace/User talk]] || <inputbox>
break=no
type=create
Line 138 ⟶ 110:
</inputbox>
|-
|5 || WikipediaDiscussioni talkWikipedia: || [[Template:Editnotices/Namespace/Wikipedia talk]] ||<inputbox>
break=no
type=create
Line 154 ⟶ 126:
</inputbox>
|-
|7 || FileDiscussioni talkfile: || [[Template:Editnotices/Namespace/File talk]] ||<inputbox>
break=no
type=create
Line 170 ⟶ 142:
</inputbox>
|-
|9 || MediaWikiDiscussioni talkMediaWiki: || [[Template:Editnotices/Namespace/MediaWiki talk]] ||<inputbox>
break=no
type=create
Line 186 ⟶ 158:
</inputbox>
|-
|11 || TemplateDiscussioni talktemplate: || [[Template:Editnotices/Namespace/Template talk]] ||<inputbox>
break=no
type=create
Line 194 ⟶ 166:
</inputbox>
|-
|12 || HelpAiuto: || [[Template:Editnotices/Namespace/Help]] ||<inputbox>
break=no
type=create
Line 202 ⟶ 174:
</inputbox>
|-
|13 || HelpDiscussioni talkaiuto: || [[Template:Editnotices/Namespace/Help talk]] ||<inputbox>
break=no
type=create
Line 210 ⟶ 182:
</inputbox>
|-
|14 || CategoryCategoria: || [[Template:Editnotices/Namespace/Category]] ||<inputbox>
break=no
type=create
Line 218 ⟶ 190:
</inputbox>
|-
|15 || CategoryDiscussioni talkcategoria: || [[Template:Editnotices/Namespace/Category talk]] ||<inputbox>
break=no
type=create
Line 226 ⟶ 198:
</inputbox>
|-
|100 || PortalPortale: || [[Template:Editnotices/Namespace/Portal]] ||<inputbox>
break=no
type=create
Line 234 ⟶ 206:
</inputbox>
|-
|101 || PortalDiscussioni talkportale: || [[Template:Editnotices/Namespace/Portal talk]] ||<inputbox>
break=no
type=create
Line 250 ⟶ 222:
</inputbox>
|-
|109 || BookDiscussioni talkbook: || [[Template:Editnotices/Namespace/Book talk]] ||<inputbox>
break=no
type=create
Line 258 ⟶ 230:
</inputbox>
|}
 
<!-----
 
To request the creation of an editnotice if you are not an admin:
Line 263 ⟶ 237:
* 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
 
place an {{tl|editprotected}} request above it
 
Another way to find the link for an editnotice is to:
Line 274 ⟶ 246:
== 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.
 
* 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
 
* 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.
the namespace 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
 
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>
{{#ifeq: {{{notice action|}}} | view
| <!--A non-admin is "viewing the source" of a protected page-->
| <!--A user with sufficient rights is editing the page-->
}}
</pre>
Line 305 ⟶ 263:
== 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]].)
 
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 320 ⟶ 272:
</source>
 
If you don't want to see any of the "Group notice" and "Page notice links, then use this code instead:
 
code instead:
 
<source lang="css">
Line 333 ⟶ 283:
== 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]].
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]].
 
== 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".
and any lingering MediaWiki page notices.
* [[Special:PrefixIndexWhatLinksHere/Template:EditnoticesEditnotice]]&nbsp;– AllPages editnoticesthat storeduse underthe {{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}}.
"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.
 
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.
 
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.
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
 
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.
[[Template:Editnotices]]. Template:Editnotices and its subpages are protected by the
 
[[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 421 ⟶ 313:
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|disambigBLP editintro}}.
 
Edit intros currently only show when editing the entire page or the last section; they do not show when editing other sections.
* 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|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]].
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]].
 
== 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]].
 
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.
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.
 
== History ==
 
Since this is a new system this page is not complete. Here are some links to more information:
 
* [[Wikipedia:Wikipedia Signpost/2008-08-11/Technology report#New features]]&nbsp;– The announcement about editnotices.
information:
* [[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&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.
* [[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.
*
 
[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 491 ⟶ 341:
* {{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.
page.
* {{tl|editnotice talkpagenameload}}&nbsp;– ReturnsThe thetemplate talkpagethat nameis fordoing most of the editnotice forloading 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}}.
 
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]]
 
[[Category:Wikipedia editnotices| ]]
 
-------->
==Note==