https://bugzilla.wikimedia.org/show_bug.cgi?id=43013

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|VisualEditor: Wrong number  |VisualEditor: Deal with
                   |of notices displayed        |en.wikipedia.org's edit
                   |(interface says there are   |notice system
                   |two when there is only one) |

--- Comment #3 from Krinkle <[email protected]> ---
It counts 2 because there are 2. One from VisualEditor (the default
alpha-warning) and one from en.wikipedia.org.

English Wikipedia has this self-invented wikitext-organised edit notice system.
Long story short, it means there is never not a notice. It always shows
something.

In this case the edit notice that it loads is the following html:

<div id="editnotice-area" class="editnotice-area" style="clear: both; width:
100%;"><div class="editnotice-namespace" style="width: 100%;">  </div><div
class="editnotice-link editnotice-redlink sysop-show accountcreator-show"
style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height:
1em; display: none;"> <small><a
href="/w/index.php?title=Template:Editnotices/Page/You_Can%27t_Make_a_Heart_Love_Somebody&amp;action=edit&amp;redlink=1"
class="new" title="Template:Editnotices/Page/You Can't Make a Heart Love
Somebody (page does not exist)">Page notice</a></small> </div><div
style="clear: both;"></div> </div>

English Wikipedia uses Template:Editnotices to maintain their notices (embedded
from a one-liner in the MediaWiki namespace) since they don't want to restrict
it to sysops. Aside from that they want to advertise this template and make it
easy to find. So when there is no edit notice, the template outputs a link to
create one. This is not created by MediaWiki nor by VisualEditor.

However it isn't a mini-notice with a red link for most users. It is only
visible to sysops and account creators (via the CSS class sysop-show and
accountcreator-show), so for regular users it is just empty.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to