"සැකිල්ල:Editnotice" හි සංශෝධන අතර වෙනස්කම්

Content deleted Content added
No edit summary
සුළු Reverted 1 edit by අස්ලාන් identified as vandalism to last revision by පසිඳු කාවින්ද. (TW)
1 පේළිය:
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
{{active editnotice}}
|{{Editnotice/notice
{{Wikipedia how to|WP:EDN|WP:EDNO}}
|expiry={{{expiry|¬}}}
{{notice|Many editnotices use <code><nowiki>{{REVISIONUSER}}</nowiki></code> to show the name of the user viewing the page. This was always considered a bug and has been fixed. It should now show only the name of the last user to edit the page, but instead it shows nothing. See {{Bug|19006}} and {{Bug|31398}}.}}
}}
'''Editnotices''' are message boxes shown above the edit window when a user edits a page. All users can create editnotices for their user and talk pages, but editnotices for other namespaces can be created and edited only by [[Wikipedia:Administrators|administrators]] and [[Wikipedia:Account creator|account creators]].
}}{{#ifexpr:{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices
 
|1
To use editnotices, you should have a basic understanding of the concept of Wikipedia [[Wikipedia:Namespace|namespaces]]; that is, a set of Wikipedia pages whose names begin with a prefix recognized by the MediaWiki software, followed by a colon, or in the case of the main namespace, with no prefix.
|0
 
}}+{{#switch:{{{expiry|¬}}}
Some of the message boxes you see when editing a page (or viewing the source of a protected page) are not editnotices; instead, they are [[Help:MediaWiki namespace|MediaWiki interface messages]].
|indefinite = 1
 
|
== Editnotice links ==
|¬ = 1 <!-- Expiry not specified -->
 
|#default = {{#iferror:{{#time:U|{{{expiry}}}}}
When a page is edited red or blue links are often displayed at the top of the page looking like this:
|0 <!-- Invalid expiry time -->
 
|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0
<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>
|1 <!-- Notice current -->
{{clear}}
|0 <!-- Notice expired -->
 
}}
Or like this:
}}
 
}}
<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>
|{{fmbox
{{clear}}
|type = editnotice
 
|id = {{{id|}}}
They are links to the group and page editnotices of the page. Admins and account creators always see both links, even if the notices have not yet been created, since they can create and edit the editnotices. Other users only see the red "Page notice" link on their own user and user talk basepage, since they can create and edit such notices. They also see blue links to group and page notices if they already have been created, so they can find and view the source of the notice. But they still can't edit those notices, except the ones in userspace.
|textstyle = {{{textstyle|}}}
 
|style = {{{style|}}}
See also the section [[#Hiding the red links|Hiding the red links]] below.
|image = {{#if:{{{image|}}}
 
|{{image|{{{image}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}
== Editnotices ==
|none
 
}}
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.
|imageright= {{#if:{{{imageright|}}}
 
|{{image|{{{imageright}}}|{{#if:{{{imagerightsize|}}}|{{{imagerightsize}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|40x40px}}}}}}
=== User and user talk ===
}}
 
|text = {{#if:{{{header|}}}
Insert as an [[Template:Editnotice userpage|edit notice for a user page]] as <code><nowiki>{{Editnotice userpage}}</nowiki></code>.
|<dl><dt style="{{{headerstyle|}}}">{{{header}}}</dt></dl>
 
}}
For example:
{{{text|{{{1}}}}}}
{{editnotice
}}
| id =
}}<noinclude>
| header =Editing
{{documentation}}
| headerstyle =font-size: 150%;
</noinclude>
| text = Hello. You're editing the userpage of ExampleUser. Please make your edits friendly as this is a userpage and is only supposed to be edited by the user!
| textstyle =font-size: 120%;
| image =[[File:Wikipedia-logo-v2.svg|80px]]
}}
 
This appears on top of the editing box screen when people would like to edit your page. The '''ExampleUser''' part will automatically change to your username.
 
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 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 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 ''must'' be capitalized when entered here.
 
{| class="wikitable"
|-
! Number !! Namespace !! Namespace editnotice !! Create page editnotice
|-
|0 || Main: (article) || [[Template:Editnotices/Namespace/Main]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|2 || User: || [[Template:Editnotices/Namespace/User]] || <inputbox>
break=no
type=create
buttonlabel=Create your user page notice
prefix=Special:MyPage/Editnotice
preload=Template:Editnotice/preload
hidden=yes
</inputbox>
|-
|3 || User talk: || [[Template:Editnotices/Namespace/User talk]] || <inputbox>
break=no
type=create
buttonlabel=Create your user talk page notice
prefix=Special:MyTalk/Editnotice
preload=Template:Editnotice/preload
hidden=yes
</inputbox>
|-
|4 || Wikipedia: || [[Template:Editnotices/Namespace/Wikipedia]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Wikipedia:
preload=Template:Editnotice/preload
</inputbox>
|-
|5 || Wikipedia talk: || [[Template:Editnotices/Namespace/Wikipedia talk]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Wikipedia talk:
preload=Template:Editnotice/preload
</inputbox>
|-
|6 || File: || [[Template:Editnotices/Namespace/File]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/File:
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|8 || MediaWiki: || [[Template:Editnotices/Namespace/MediaWiki]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/MediaWiki:
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|10 || Template: || [[Template:Editnotices/Namespace/Template]] || <inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Template:
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|12 || Help: || [[Template:Editnotices/Namespace/Help]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Help:
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|14 || Category: || [[Template:Editnotices/Namespace/Category]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Category:
preload=Template:Editnotice/preload
</inputbox>
|-
|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>
|-
|100 || Portal: || [[Template:Editnotices/Namespace/Portal]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Portal:
preload=Template:Editnotice/preload
</inputbox>
|-
|101 || Portal talk: || [[Template:Editnotices/Namespace/Portal talk]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Portal talk:
preload=Template:Editnotice/preload
</inputbox>
|-
|108 || Book: || [[Template:Editnotices/Namespace/Book]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Book:
preload=Template:Editnotice/preload
</inputbox>
|-
|109 || Book talk: || [[Template:Editnotices/Namespace/Book talk]] ||<inputbox>
break=no
type=create
buttonlabel=Create
prefix=Template:Editnotices/Page/Book talk:
preload=Template:Editnotice/preload
</inputbox>
|}
 
To request the creation of an editnotice if you are not an admin:
* Open the edit window of the page on which you want the editnotice.
* Place this code on the page: <code><nowiki>[[{{editnotice talkpagename}}]]</nowiki></code>
* Preview the page, and without saving, follow the link you see. Your browser may ask if you wish to continue and lose the changes you made. You do.
* Open the edit window of the editnotice's talkpage.
* Add the exact markup you want for the editnotice, and below it write a short request for the administrator who deals with the request, and sign it.
* Finally, place this template: <code><nowiki>{{editprotected}}</nowiki></code> at the top of the page, and when you are satisfied (use preview) that everything is correct, save the page.
 
Another way to find the link for an editnotice is to:
* Open the edit window of the page where you want to create an editnotice.
* Place this code on the page: <code><nowiki>[[{{editnotice pagename}}]]</nowiki></code>
* Preview the page and follow the link to the editnotice.
* This takes you to the editnotice's page. The request for creation should be made on the editnotice's talkpage.
* Once at the talkpage, follow the latter steps in the first instructions.
 
=== Batch of identical editnotices ===
If you need to display a batch of identical editnotices, please create a single template which you then transclude in each editnotice, to allow easier modification and maintenance. You can place such templates in [[:Category:Editnotice templates]].
 
{{Editnotice templates}}
 
== 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>
 
== Hiding the red links ==
 
If you don't want to see the red "Group notice" and "Page notice" links, then add the below markup to your [[Special:Mypage/skin.css|personal CSS]], then wait a minute, then [[Wikipedia:Bypass your cache|bypass]] your browser cache.
 
<source lang="css">
/* Hide the red "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-redlink {
display: none !important;
}
</source>
 
If you don't want to see any of the "Group notice" and "Page notice links, then use this markup instead:
 
<source lang="css">
/* Hide all the "Group notice" and "Page notice" links. */
.editnotice-area .editnotice-link {
display: none !important;
}
</source>
 
== 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]]&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.
* [[: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 ==
 
Anything put on the pages [[MediaWiki:Editnotice-0]] through [[MediaWiki:Editnotice-15]] (or Editnotice-100 through Editnotice-109) will appear as a editnotice for ''every'' page in an entire namespace. Editnotice-0 is for mainspace pages, Editnotice-1 for the talk space pages, Editnotice-2 for user space pages, etcetera. See [[WP:Namespace]] for the meaning of all of the numbers.
 
The template {{tl|editnotice load}} has been put on each of those MediaWiki namespace pages. The template causes each article to use a subpage specific to it as its editnotice rather than using a namespace-wide editnotice.
 
The editnotice load 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 ==
{{shortcut|WP:EDITINTRO}}
{{for|the editintro parameter of the inputbox extension|mw:Extension:InputBox}}
Edit intros are similar to editnotices, but use different schemes:
 
* Disambiguation pages include the {{tl|disambiguation}} 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|BLP editintro}}.
 
Edit intros only show when editing the entire page; 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]] (<span class="plainlinks">[{{fullurl:Special:Search|redirs=1&search=%2Femailnotice&fulltext=Search&ns2=1&title=Special%3ASearch&advanced=1&fulltext=Advanced+search}} uses]</span>). The system was implemented in [[MediaWiki:Emailpagetext]] after [[Wikipedia:Village pump (technical)/Archive 66#edit notice for special:emailuser|this discussion]].
 
== Protection notices ==
 
The standard message displayed when the source of a protected page is being viewed may be replaced by creating a page of the form <code>Template:Editnotices/Protection/''<Full page name>''</code>. When this is done, the standard edit notices for the page will not be displayed by default; display them if necessary by including {{tlx|editnotice load| notice action {{=}} view }} in the custom protection notice.
 
This should generally only be used when the standard notice displayed by [[MediaWiki:Protectedpagetext]] is misleading users to file {{tl|edit protected}} requests in the wrong place; for example, see the history of [[Template talk:Reflist]] prior to September 2011.
 
== 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]]&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&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.
 
== Related templates ==
 
* {{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}}.
* {{tl|Editnotice userpage}}&nbsp;– For use on userpages.
 
[[Category:Wikipedia editnotices| ]]
 
[[ar:ويكيبيديا:تبصرة تحرير]]
[[it:Wikipedia:Editnotice]]
[[he:ויקיפדיה:הודעת עריכה]]
[[pt:Wikipedia:Namespace MediaWiki/Editnotice]]
[[zh:Wikipedia:编辑提示]]
"https://si.wikipedia.org/wiki/සැකිල්ල:Editnotice" වෙතින් සම්ප්‍රවේශනය කෙරිණි