Difference between revisions of "User:Subfader/Examples"
From FollowTheScore
(New page: =Gallery of images in a cetagory= This returns a gallery for images in a certain category with a focus on their usage. ===Version 1=== Returning a page link only if there's one page using...) |
m |
||
| (16 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | =Gallery of images in a | + | <h1 style="background:#f9f9f9">Gallery of images in a cetegory</h1> |
| − | This returns a gallery for images in a certain category with a focus on their usage. | + | This returns a gallery for images in a certain category with a focus on their usage on articles. |
| − | + | ||
| − | Returning a page link only if there's one page using the image | + | <big>'''Version 1'''</big> (Returning a page link only if there's one page using the image) |
| + | ---- | ||
| + | <br> | ||
{{#dpl: | {{#dpl: | ||
|category=Test Images | |category=Test Images | ||
| Line 10: | Line 12: | ||
|order=descending | |order=descending | ||
|count=10 | |count=10 | ||
| − | |resultsheader=There are %TOTALPAGES% images in | + | |resultsheader=There are %TOTALPAGES% images in [[:Category:Test Images]]. |
|format=«gallery»\n,\n%PAGE%¦²{#ifexpr:²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² < 1 | |format=«gallery»\n,\n%PAGE%¦²{#ifexpr:²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² < 1 | ||
¦(This image is not used.) | ¦(This image is not used.) | ||
¦²{#ifexpr:²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² = 1 | ¦²{#ifexpr:²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² = 1 | ||
¦²{User:Subfader/Examples/Images used/Template¦%PAGE%}² | ¦²{User:Subfader/Examples/Images used/Template¦%PAGE%}² | ||
| − | ¦([[:%PAGE%#filelinks|²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² | + | ¦([[:%PAGE%#filelinks|²{User:Subfader/Examples/Images used/Template/Res¦%PAGE%}² articles use this image.]]) |
}²}²,,\n«/gallery» | }²}²,,\n«/gallery» | ||
}} | }} | ||
| − | + | <br><br> | |
| − | Returning all links to the pages that use image | + | <big>'''Version 2'''</big> (Returning all links to the pages that use the image) |
| + | ---- | ||
| + | <br> | ||
{{#dpl: | {{#dpl: | ||
|category=Test Images | |category=Test Images | ||
| Line 27: | Line 31: | ||
|order=descending | |order=descending | ||
|count=10 | |count=10 | ||
| − | |resultsheader=There are %TOTALPAGES% images in | + | |resultsheader=There are %TOTALPAGES% images in [[:Category:Test Images]]. |
|format=«gallery»\n,\n%PAGE%¦²{User:Subfader/Examples/Images used/Template¦%PAGE%}²,,\n«/gallery» | |format=«gallery»\n,\n%PAGE%¦²{User:Subfader/Examples/Images used/Template¦%PAGE%}²,,\n«/gallery» | ||
| + | |reset=all | ||
}} | }} | ||
Latest revision as of 19:25, 17 July 2009
Gallery of images in a cetegory
This returns a gallery for images in a certain category with a focus on their usage on articles.
Version 1 (Returning a page link only if there's one page using the image)
Version 2 (Returning all links to the pages that use the image)
