Template:Editnotice load/core: Difference between revisions
Content deleted Content added
m Protected Template:Editnotice load/core: Highly visible template: Will soon be used in the interface. Semi-protecting it now in case we forget to protected it when we deploy it. ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)) |
m 23 revisions imported from wikipedia:Template:Editnotice_load/core |
||
(12 intermediate revisions by 6 users not shown) | |||
Line 2:
{{#if: {{{group allowed|}}}
| {{#ifexist: {{{groupnotice|}}}
| {{#switch:
{{ {{{groupnotice|}}} | notice action={{{notice action|}}} }}
| -
| = <!--Notice is blank or only contains "-", don't use it-->
Line 9 ⟶ 10:
}}
}}{{#ifexist: {{{pagenotice|}}}
| {{#switch:
{{ {{{pagenotice|}}} | notice action={{{notice action|}}} }}
| -
| = <!--Notice is blank or only contains "-", don't use it-->
Line 18 ⟶ 20:
| group =
<!--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="editnotice-redlink {{#if: {{{
<div class="editnotice-group" style="clear: both; width: 100%;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div>
| page =
<!--We have a page notice, but no group notice-->
<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-redlink sysop-show
}} [[{{{pagenotice|}}}|Page notice]]</small> </div>
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{
| grouppage =
<!--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-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 {{#if: {{{userpage|}}} | id="editnotice-ns-{{
| #default =
<!-- See [[Template:Editnotice_load/notext]] and [[MediaWiki:Editnotice-notext]] for the display of the red link. This must remain empty. -->
}}<noinclude>
|