Jump to content

Template:Editnotice load/core: Difference between revisions

From Simple English Wikipedia, the free encyclopedia
Content deleted Content added
Commenting the code and some code clean-up.
Changing to using CSS ids instead of classes for the links, for efficient access in javascript.
Line 10: Line 10:
| group =
| group =
<!--We have a group notice, but no page notice-->
<!--We have a group notice, but no page notice-->
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span class="editnotice-group-link">[[{{{groupnotice|}}}|Group notice]]</span> <span class="editnotice-page-create {{#if: {{{userpage|}}} || sysop-show accountcreator-show }}" style="{{#if: {{{userpage|}}} || display: none; }}">&nbsp; [[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span id="editnotice-group-link">[[{{{groupnotice|}}}|Group notice]]</span> <span class="editnotice-page-create {{#if: {{{userpage|}}} || sysop-show accountcreator-show }}" style="{{#if: {{{userpage|}}} || display: none; }}">&nbsp; [[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div class="editnotice-group" style="clear: both;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
<div class="editnotice-group" style="clear: both;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>


| page =
| page =
<!--We have a page notice, but no group notice-->
<!--We have a page notice, but no group notice-->
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>{{#if: {{{group allowed|}}}
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>{{#if: {{{group allowed|}}}
| <span class="editnotice-group-create sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span>
| <span id="editnotice-group-create" class="sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span>
}} <span class="editnotice-page-link">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
}} <span id="editnotice-page-link">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{NAMESPACEID}}" }} class="editnotice-page" style="clear: both;"> {{ {{{pagenotice|}}} | notice action={{{notice action|}}} }} </div>
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{NAMESPACEID}}" }} class="editnotice-page" style="clear: both;"> {{ {{{pagenotice|}}} | notice action={{{notice action|}}} }} </div>


| grouppage =
| grouppage =
<!--We have both a group notice and a page notice-->
<!--We have both a group notice and a page notice-->
<div class="editnotice-group-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[{{{groupnotice|}}}|Group notice]]</small> </div>
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span id="editnotice-group-link">[[{{{groupnotice|}}}|Group notice]]</span></small> </div>
<div class="editnotice-group" style="clear: both;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
<div class="editnotice-group" style="clear: both;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
<div class="editnotice-page-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[{{{pagenotice|}}}|Page notice]]</small> </div>
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span id="editnotice-page-link">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{NAMESPACEID}}" }} class="editnotice-page" style="clear: both;"> {{ {{{pagenotice|}}} | notice action={{{notice action|}}} }} </div>
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{NAMESPACEID}}" }} class="editnotice-page" style="clear: both;"> {{ {{{pagenotice|}}} | notice action={{{notice action|}}} }} </div>


Line 32: Line 32:
| {{#if: {{{userpage|}}}
| {{#if: {{{userpage|}}}
| <!--On a user rootpage-->
| <!--On a user rootpage-->
<div style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span class="editnotice-group-create sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span> <span class="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small><span id="editnotice-group-create" class="sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span> <span id="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
| <!--On any other page, and group notices allowed-->
| <!--On any other page, and group notices allowed-->
<div class="sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em; display: none;"> <small><span class="editnotice-group-create">[[{{{groupnotice|}}}|Group notice]]</span> &nbsp; <span class="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div class="editnotice-link sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em; display: none;"> <small><span id="editnotice-group-create">[[{{{groupnotice|}}}|Group notice]]</span> &nbsp; <span id="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
}}
}}
| <!--Group notices not allowed, so also not in user space-->
| <!--Group notices not allowed, so also not in user space-->
<div class="sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em; display: none;"> <small><span class="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
<div class="editnotice-link sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em; display: none;"> <small><span id="editnotice-page-create">[[{{{pagenotice|}}}|Page notice]]</span></small> </div>
}}
}}



Revision as of 05:52, 7 January 2010