Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1340
parserTests.nocat.txt
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 7:01 PM
2014-11-21 19:01:01 (UTC+0)
Size
720 B
Referenced Files
None
Subscribers
None
parserTests.nocat.txt
View Options
!! article
Category:MediaWiki user's guide
!! text
!! endarticle
!! article
Category:Lorem ipsum
!! text
!! endarticle
!! article
Template:Foobar
!! text
This is filler text
[[Category:MediaWiki user's guide]]
!! endarticle
# Test that the text is correctly displayed
!! test
nocat 1
!! input
{{nocat:Foobar}}
!! result
<p>This is filler text
</p>
!! end
# Test that the category is not present
!! test
nocat 2
!! options
cat
!! input
{{nocat:Foobar}}
!! result
!! end
# Test that other categories on the page are included correctly
!! test
nocat 3
!! options
cat
!! input
[[Category:Lorem ipsum]]
{{nocat:Foobar}}
!! result
<a href="/wiki/Category:Lorem_ipsum" title="Category:Lorem ipsum">Lorem ipsum</a>
!! end
File Metadata
Details
Attached
Mime Type
text/html
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1239
Default Alt Text
parserTests.nocat.txt (720 B)
Attached To
Mode
T2835: syntax to transclude a page without the containing page inheriting categories, interlanguage links
Attached
Detach File
Event Timeline
Log In to Comment