Difference between revisions of "Template:Editnotice load/test1"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Back to version previous version 14:12, 7 January 2010, to test the IE bug again.)
imported>Davidgothberg
(Adding parameter "ownuserpage" to /core.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="editnotice-area" class="editnotice-area" style="clear: both;"><!--
+
<div id="editnotice-area" class="editnotice-area" style="clear: both; width: 100%;"><!--
 
   Namespace notice:
 
   Namespace notice:
 
-->{{#ifeq: {{{notice action|}}} | view
 
-->{{#ifeq: {{{notice action|}}} | view
 
|  <!--"Viewing the source" of a protected page, don't show namespace notice-->
 
|  <!--"Viewing the source" of a protected page, don't show namespace notice-->
 
| {{#ifexist: Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}
 
| {{#ifexist: Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}
   | <div class="editnotice-namespace"> {{Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}}} </div>
+
   | <div class="editnotice-namespace" style="width: 100%;"> {{Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}}} </div>
 
   }}
 
   }}
 
}}<!--
 
}}<!--
 
   Group and page notice:
 
   Group and page notice:
-->{{editnotice load/core
+
-->{{editnotice load/test1/core
 
| notice action = {{{notice action|}}}
 
| notice action = {{{notice action|}}}
 
| group allowed = {{ns has subpages}}  <!--"yes" or empty string-->
 
| group allowed = {{ns has subpages}}  <!--"yes" or empty string-->
Line 15: Line 15:
 
   <!--If on a user or user talk rootpage, then use /Editnotice,
 
   <!--If on a user or user talk rootpage, then use /Editnotice,
 
       else use normal protected notice-->
 
       else use normal protected notice-->
   {{#switch: {{PAGENAME}}:::{{NAMESPACE}}
+
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}
  | {{BASEPAGENAME}}:::{{ns:User}}  
+
  | {{FULLPAGENAME}}/Editnotice
  | {{BASEPAGENAME}}:::{{ns:User talk}} = {{FULLPAGENAME}}/Editnotice
+
   | Template:Editnotices/Page/{{FULLPAGENAME}}
   | #default = Template:Editnotices/Page/{{FULLPAGENAME}}
 
 
   }}
 
   }}
 
| userpage =  
 
| userpage =  
 
   <!--If on a user or user talk rootpage, then "yes", else empty string-->
 
   <!--If on a user or user talk rootpage, then "yes", else empty string-->
   {{#switch: {{PAGENAME}}:::{{NAMESPACE}}
+
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}
   | {{BASEPAGENAME}}:::{{ns:User}}  
+
   | yes
  | {{BASEPAGENAME}}:::{{ns:User talk}} = yes
+
  }}
 +
| ownuserpage =
 +
  <!--If on the user's own user or user talk rootpage, then "yes", else empty string. {{REVISIONUSER}} returns current user when in system messages. -->
 +
  {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{REVISIONUSER}}
 +
  | yes
 
   }}
 
   }}
 
}}<div style="clear: both;"></div> </div><noinclude>
 
}}<div style="clear: both;"></div> </div><noinclude>
Line 34: Line 37:
  
 
The area above the header is template code on this page, the examples below are transclusions of this page and show how that code renders when used. If you anyway have updated the code above then you have to {{purge|purge this page}} to see the effect on the examples below.
 
The area above the header is template code on this page, the examples below are transclusions of this page and show how that code renders when used. If you anyway have updated the code above then you have to {{purge|purge this page}} to see the effect on the examples below.
 +
 +
The code in this test template usually works together with {{tl|editnotice load/test1/core}}, but sometimes with {{tl|editnotice load/core}}.
  
  

Latest revision as of 10:37, 14 January 2010


David's sandbox for {{editnotice load}}

Here David Göthberg is testing and showing new code versions. Please do not edit this page. If you want to experiment do so in {{editnotice load/sandbox}} or create your own subpage under {{editnotice load}} or in your own user space.

The area above the header is template code on this page, the examples below are transclusions of this page and show how that code renders when used. If you anyway have updated the code above then you have to Script error: No such module "Purge". to see the effect on the examples below.

The code in this test template usually works together with {{editnotice load/test1/core}}, but sometimes with {{editnotice load/core}}.


{{editnotice load/test1}}


{{editnotice load/test1| notice action=view }}


Testing {{editnotice load}}

{{editnotice load}}


Testing some code parts

1: Doesn't exist

2: Doesn't exist

3: Namespace notice returns an empty string.