anchor.diff:    
       <wiki:CheckRequestContext context='view|info|diff|upload'>
         <wiki:Permission permission="edit">
  -        <span class="actionEdit">
  +        <span>
             <wiki:PageType type="page">
               <wiki:EditLink>Edit page</wiki:EditLink>
             </wiki:PageType>
  
positive.code: 
    <div class="block">
    
      <span class='quick2Top'><a href="#Top" title='Go to Top' >9</a></span>
    
      <wiki:CheckRequestContext context='info|diff|upload|edit'>
        <span class="actionView">
          <wiki:PageType type="page">
            <wiki:LinkTo>View page</wiki:LinkTo>
          </wiki:PageType>
  
negative.code:     </wiki:CheckRequestContext>
    
      <wiki:PageExists>
        <wiki:CheckRequestContext context='view|info|diff|edit'>
          <wiki:PageType type="page">
            <wiki:Permission permission="upload">
              <span>
                <a href="<wiki:UploadLink format='url' />">Attach File</a>
              </span>
            </wiki:Permission>
          </wiki:PageType>
        </wiki:CheckRequestContext>
        <span>
          <wiki:CheckRequestContext context='view|diff|edit|upload'>
            <wiki:PageInfoLink>Page Info</wiki:PageInfoLink>
          </wiki:CheckRequestContext>
        </span>
      </wiki:PageExists>
    
      <wiki:CheckRequestContext context='!prefs'>
        <wiki:CheckRequestContext context='!preview'>
          <span>
            <wiki:LinkTo page="UserPreferences">My Prefs</wiki:LinkTo>
          </span>
        </wiki:CheckRequestContext>
      </wiki:CheckRequestContext>
      
      <wiki:UserCheck status="notAuthenticated">
        <span>
          <wiki:Link jsp="Login.jsp">Log in</wiki:Link>
        </span>
      </wiki:UserCheck>
      
      <wiki:UserCheck status="authenticated">
        <span>
          <wiki:Link jsp="Logout.jsp">Log out</wiki:Link>
        </span>
      </wiki:UserCheck>
      
      <wiki:Permission permission="createGroups">
        <span>
          <wiki:Link jsp="NewGroup.jsp">Create group</wiki:Link>
        </span>
      </wiki:Permission>
    
      <wiki:CheckRequestContext context='view|diff|edit|upload|info'>
        <div class="pageInfo">
          <wiki:CheckVersion mode="latest">
             This page (revision-<wiki:PageVersion />) last changed on
             <wiki:DiffLink version="latest" newVersion="previous">
               <wiki:PageDate format='<%= prefDateFormat %>'/>
             </wiki:DiffLink>
             by <wiki:Author />.
          </wiki:CheckVersion>
    
          <wiki:CheckVersion mode="notlatest">
            This particular version was published on
              <wiki:PageDate format='<%= prefDateFormat %>'/> by <wiki:Author />.
          </wiki:CheckVersion>
    
          <wiki:NoSuchPage>Page not created yet.</wiki:NoSuchPage>
    
        </div>
      </wiki:CheckRequestContext>
    
      <span class='quick2Bottom'><a href="#Bottom" title='Go to Bottom' >&nbsp;</a></span>
  
    </div>
  
  