Template:Editnotice load/core: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Code clean-up: Nah, javascript can re-create those links if needed, so removing most of the span tags and ids. |
Adding detection of blanked notices. (Suggested by User:MSGJ.) |
||
Line 2: | Line 2: | ||
{{#if: {{{group allowed|}}} |
{{#if: {{{group allowed|}}} |
||
| {{#ifexist: {{{groupnotice|}}} |
| {{#ifexist: {{{groupnotice|}}} |
||
| {{#switch: {{ {{{groupnotice|}}} }} |
|||
⚫ | |||
| - |
|||
| = <!--Notice is blank or only contains "-", don't use it--> |
|||
| #default = group |
|||
}} |
|||
}} |
}} |
||
}}{{#ifexist: {{{pagenotice|}}} |
}}{{#ifexist: {{{pagenotice|}}} |
||
| {{#switch: {{ {{{groupnotice|}}} }} |
|||
| page |
|||
⚫ | |||
| = <!--Notice is blank or only contains "-", don't use it--> |
|||
| #default = page |
|||
}} |
|||
}} |
}} |
||