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}}
=== Altri namespace ===
Gli ''editnotices'' per altri ''namespace'' e per sottopagine utente possono essere creati solo da amministratori e creatori di account.
Ci sono tre tipi principali di editnotice:
:Namespace notices – Mostrati in tutte le pagine appartenentia a quel namespace.
:Group notices – Mostrati in una pagina ed in tutte le sue sottopagine.
:Page notices – Mostrati soltanto sulla pagina a cui ciascuna appartiene.
ed assumono una di queste forme:
:Namespace notices – vedi sotto.
:Group notices – <code>Template:Editnotices/Group/ ''<Specifico per pagina e sottopagine relative>''</code>
:Page notices – <code>Template:Editnotices/Page/ ''<Specifico per la pagina>''</code>
=== Generazione degli editnotice ===
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.
{| class="wikitable"
Line 96 ⟶ 68:
! Number !! Namespace !! Namespace editnotice !! Create page editnotice
|-
|0 ||
break=no
type=create
Line 104 ⟶ 76:
</inputbox>
|-
|1 ||
break=no
type=create
Line 112 ⟶ 84:
</inputbox>
|-
|2 ||
break=no
type=create
Line 121 ⟶ 93:
</inputbox>
|-
|3 ||
break=no
type=create
Line 138 ⟶ 110:
</inputbox>
|-
|5 ||
break=no
type=create
Line 154 ⟶ 126:
</inputbox>
|-
|7 ||
break=no
type=create
Line 170 ⟶ 142:
</inputbox>
|-
|9 ||
break=no
type=create
Line 186 ⟶ 158:
</inputbox>
|-
|11 ||
break=no
type=create
Line 194 ⟶ 166:
</inputbox>
|-
|12 ||
break=no
type=create
Line 202 ⟶ 174:
</inputbox>
|-
|13 ||
break=no
type=create
Line 210 ⟶ 182:
</inputbox>
|-
|14 ||
break=no
type=create
Line 218 ⟶ 190:
</inputbox>
|-
|15 ||
break=no
type=create
Line 226 ⟶ 198:
</inputbox>
|-
|100 ||
break=no
type=create
Line 234 ⟶ 206:
</inputbox>
|-
|101 ||
break=no
type=create
Line 250 ⟶ 222:
</inputbox>
|-
|109 ||
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
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:
* 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 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>
{{#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]].)
<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:
<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]].
== Listing editnotices ==
* [[Special:PrefixIndex/MediaWiki:Editnotice]] – The main MediaWiki namespace notices, and any lingering MediaWiki page notices.
* [[Special:PrefixIndex/Template:Editnotices]] – All editnotices stored under "Template:Editnotices".
* [[Special:PrefixIndex/Template:Editnotice]] – All templates and sub-templates with names beginning with "Template:Editnotice...". Including the editnotices stored under "Template:Editnotices".
* [[Special:
* [[:Category:Articles with editnotices]] – Articles marked with {{tl|active editnotice}}.
* [[:Category:Pages with editnotices]] – 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.
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|
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]].
== 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.
== 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]] – The announcement about editnotices.
* [[Wikipedia:Village pump (technical)/Archive 46#Custom edit messages]] – 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] – You can search for any pages that mention the editnotice system.
== Related templates ==
Line 491 ⟶ 341:
* {{tl|active editnotice}}
* {{tl|editnotice}} – A template for making editnotices.
* {{tl|editnotice pagename}} – Returns the pagename for the editnotice for the current page.
* {{tl|editnotice talkpagename}} – Returns the talkpage name for the editnotice for the current page.
* {{tl|editnotice explanation}} - For editnotice talk pages. Explains how editnotices are protected, and optionally shows a CSS customization parameter.
* {{tl|editnotice
* {{tl|editnotice loader}} – 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==
|