Template:Editnotice load/core: Difference between revisions
Appearance
Content deleted Content added
Davidgothberg (talk | changes) Changing to the parameter name "group allowed". |
Davidgothberg (talk | changes) Adding more handling for the hide/show of the create links. This is nasty code... |
||
Line 12: | Line 12: | ||
<div class="editnotice-group-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[{{{groupnotice|}}}|view]] </div> |
<div class="editnotice-group-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[{{{groupnotice|}}}|view]] </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-create sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small>[[{{{pagenotice|}}}|Page notice]]</small> </div> |
<div class="editnotice-page-create {{#if: {{{userpage|}}} || sysop-show accountcreator-show }}" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; {{#if: {{{userpage|}}} || display: none; }}"> <small>[[{{{pagenotice|}}}|Page notice]]</small> </div> |
||
| page = |
| page = |
||
Line 28: | Line 28: | ||
<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; font-size: 88%; line-height: 1em;"> [[{{{pagenotice|}}}|view]] </div> |
<div class="editnotice-page-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[{{{pagenotice|}}}|view]] </div> |
||
⚫ | |||
⚫ | |||
| id="editnotice-ns-{{NAMESPACEID}}" |
|||
⚫ | |||
| #default = |
| #default = |
||
<!--We have no group and no page notice--> |
<!--We have no group and no page notice--> |
||
{{#if: {{{group allowed|}}} |
{{#if: {{{group allowed|}}} |
||
⚫ | |||
⚫ | | <div class="editnotice-group-create editnotice-page-create sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small>[[{{{groupnotice|}}}|Group notice]] [[{{{pagenotice|}}}|Page notice]]</small> </div> |
||
| <div class="editnotice-group-create editnotice-page-create" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small><span class="sysop-show accountcreator-show" style="display: none;">[[{{{groupnotice|}}}|Group notice]] </span> [[{{{pagenotice|}}}|Page notice]]</small> </div> |
|||
⚫ | | <div class="editnotice-group-create editnotice-page-create sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small>[[{{{groupnotice|}}}|Group notice]] [[{{{pagenotice|}}}|Page notice]]</small> </div> |
||
}} |
|||
| <div class="editnotice-page-create sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small>[[{{{pagenotice|}}}|Page notice]]</small> </div> |
| <div class="editnotice-page-create sysop-show accountcreator-show" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; t_font-size: 88%; line-height: 1em; display: none;"> <small>[[{{{pagenotice|}}}|Page notice]]</small> </div> |
||
}} |
}} |
Revision as of 23:07, 6 January 2010
This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss 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}}.