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

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Use {{SUBJECTSPACE}} to make the switch-case shorter.)
imported>Davidgothberg
(Adding parameter "ownuserpage" to /core.)
 
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-->
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}  
+
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}
 
   | {{FULLPAGENAME}}/Editnotice
 
   | {{FULLPAGENAME}}/Editnotice
 
   | Template:Editnotices/Page/{{FULLPAGENAME}}
 
   | Template:Editnotices/Page/{{FULLPAGENAME}}
Line 21: Line 21:
 
| 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-->
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}  
+
   {{#ifeq: {{SUBJECTSPACE}}#{{PAGENAME}} | {{ns:User}}#{{BASEPAGENAME}}
 +
  | 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
 
   | yes
 
   }}
 
   }}

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.