Template:Editnotice load/core: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content deleted Content added
Feeding "notice action" to the notices also when checking if they are empty, since was weird to show the link of a notice when it wasn't visible when just "viewing the source" of a protected page.
Adding "width: 100%;" to the notice divs, so (older?) Internet Explorers won't place the links for the group and page notices wrongly when blank notices.
Line 21: Line 21:
<!--We have a group notice, but no page notice-->
<!--We have a group notice, but no page notice-->
<div class="editnotice-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; line-height: 1em;"> <small>[[{{{groupnotice|}}}|Group notice]] <span class="{{#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>[[{{{groupnotice|}}}|Group notice]] <span class="{{#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; width: 100%;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>


| page =
| page =
Line 28: Line 28:
| <span class="sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span>
| <span class="sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] &nbsp;</span>
}} [[{{{pagenotice|}}}|Page notice]]</small> </div>
}} [[{{{pagenotice|}}}|Page notice]]</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; width: 100%;"> {{ {{{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-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>[[{{{groupnotice|}}}|Group notice]]</small> </div>
<div class="editnotice-group" style="clear: both;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
<div class="editnotice-group" style="clear: both; width: 100%;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
<div class="editnotice-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>[[{{{pagenotice|}}}|Page notice]]</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; width: 100%;"> {{ {{{pagenotice|}}} | notice action={{{notice action|}}} }} </div>


| #default =
| #default =

Revision as of 12:58, 7 January 2010