Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. !!article
  2. Template:subpagefun/sub1/sub2/sub3
  3. !! config
  4. wgCapitalLinks=false
  5. !!text
  6. Test
  7. !!endarticle
  8.  
  9. !! test
  10. SUBPAGELEVEL as function on a page which looks like a subpage but is none
  11. !! config
  12. wgCapitalLinks=false
  13. !! input
  14. "{{SUBPAGELEVEL: Template:subpagefun/sub1/sub2/sub3 }}"
  15. !!result
  16. <p>"0"
  17. </p>
  18. !! end
  19.  
  20.  
  21. !!article
  22. Template:subpagefun/sub1/sub2
  23. !! config
  24. wgCapitalLinks=false
  25. !!text
  26. Test
  27. !!endarticle
  28.  
  29. !! test
  30. SUBPAGELEVEL as function on a page which is a subpage (1)
  31. !! config
  32. wgCapitalLinks=false
  33. !! input
  34. "{{SUBPAGELEVEL: Template:subpagefun/sub1/sub2/sub3 }}"
  35. !!result
  36. <p>"1"
  37. </p>
  38. !! end
  39.  
  40.  
  41. !!article
  42. Template:subpagefun/sub1
  43. !! config
  44. wgCapitalLinks=false
  45. !!text
  46. Test
  47. !!endarticle
  48.  
  49. !! test
  50. SUBPAGELEVEL as function on a page which is a subpage (2)
  51. !! config
  52. wgCapitalLinks=false
  53. !! input
  54. "{{SUBPAGELEVEL: Template:subpagefun/sub1/sub2/sub3 }}"
  55. !!result
  56. <p>"2"
  57. </p>
  58. !! end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement