Difference between revisions of "Template:Editnotice load/core"
Jump to navigation
Jump to search
imported>Jo-Jo Eumerus (As requested on Wikipedia talk:Editnotice; accountcreator show is no longer needed as accountcreators no longer can override the titleblacklist on editnotices) |
imported>Xaosflux (class updates requested at Wikipedia talk:Editnotice - revert if any issues) |
||
| Line 20: | Line 20: | ||
| group = | | group = | ||
<!--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="editnotice-redlink {{#if: {{{ownuserpage|}}} || sysop-show templateeditor-show }}" style="{{#if: {{{ownuserpage|}}} || display: none; }}"> [[{{{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="editnotice-redlink {{#if: {{{ownuserpage|}}} || sysop-show templateeditor-show extendedmover-show }}" style="{{#if: {{{ownuserpage|}}} || display: none; }}"> [[{{{pagenotice|}}}|Page notice]]</span></small> </div> |
<div class="editnotice-group" style="clear: both; width: 100%;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div> | <div class="editnotice-group" style="clear: both; width: 100%;"> {{ {{{groupnotice|}}} | notice action={{{notice action|}}} }} </div> | ||
| Line 26: | Line 26: | ||
<!--We have a page notice, but no group notice--> | <!--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|}}} | <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 templateeditor-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] </span> | + | | <span class="editnotice-redlink sysop-show templateeditor-show extendedmover-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] </span> |
}} [[{{{pagenotice|}}}|Page notice]]</small> </div> | }} [[{{{pagenotice|}}}|Page notice]]</small> </div> | ||
<div {{#if: {{{userpage|}}} | id="editnotice-ns-{{NAMESPACEID}}" }} class="editnotice-page" style="clear: both; width: 100%;"> {{ {{{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> | ||
Revision as of 15:59, 27 November 2018
| 40x40px | This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
This is the {{editnotice load/core}} sub-template.
Do not use this template directly, use {{editnotice load}} instead.
This template is called from {{editnotice load}}. It holds parts of the code for {{editnotice load}}, while {{editnotice load}} does parameter preprocessing. Thus simplifying the code.
This template is used by the editnotice system.
Technical details
This sub-template handles the loading of the group and page notices, and the links to them. This template currently expects these parameters:
{{editnotice load/core
| notice action = {{{notice action|}}} <!--"view" or empty string-->
| group allowed = {{ns has subpages}} <!--"yes" or empty string-->
| groupnotice = <!--The possible group notice pagename-->
| pagenotice = <!--The possible page notice pagename-->
| userpage = <!--"yes" if a user editable userpage notice, else empty string-->
| ownuserpage = <!--"yes" if the user is on his own
user or user talk rootpage, else empty string-->
}}
For more documentation see {{editnotice load}}.
it:Template:Editnotice load/core
| The above documentation is transcluded from Template:Editnotice load/core/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |