|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | {{Issue
| |
− | |Type = Bug
| |
− | |Extension = DPL
| |
− | |Version = 1.8.6
| |
− | |Description = namespace = foo OR is not working?
| |
− | |Status = open
| |
− | }}
| |
| | | |
− | == Problem ==
| |
− | [[:Image:Cookie.jpg]] is used on: [[Muha Test]], [[:Category:Test Images]] and [[User:Subfader/Z]]. Now lets return those 3 as page links according to [[Namespace#namespace]]:<br>
| |
− | '''Code'''
| |
− | <pre>
| |
− | {{#dpl:
| |
− | |debug=0
| |
− | |namespace=User||Category
| |
− | |imageused=Cookie.jpg
| |
− | |count=1
| |
− | |format=,[[%PAGE%]],,
| |
− | }}
| |
− | </pre>
| |
− | '''Result:'''
| |
− | {{#dpl:
| |
− | |debug=0
| |
− | |namespace=User||Category
| |
− | |imageused=Cookie.jpg
| |
− | |count=1
| |
− | |format=,[[%PAGE%]],,
| |
− | }}
| |
− |
| |
− | '''Note''': I tried all variations for namespace=User||Category, but either it returns an error when <nowiki>''</nowiki> is used for Main only the last is considered on namespace=User|Category. Same for "category=Test Images" instead og imageused=Cookie.jpg.
| |
− |
| |
− | You can also test your own examples from the manual like
| |
− | <pre>
| |
− | <DPL>
| |
− | category=Policy
| |
− | namespace=Wikinews|Discussion
| |
− | </DPL>
| |
− | </pre>
| |
− | Result:
| |
− |
| |
− | == Reply ==
| |