User:Sven/Latest
Jump to navigation
Jump to search
An automatically updated Latest uploads gallery![edit]
You can make User:BryanBot generate your own gallery of pictures you uploaded in the last x days. Perform these simple steps:
- Make your own User Category, for examle Category:Files by User:Sven
- add all your images to this category, for example by using by using your own Information template
- Make a subpage, for example Special:MyPage/Latest or simply on your user page
- Add some code like this on the page:
- The inclusion of User:BryanBot/CategoryWatch (see there for syntax).
Substitute your template! For example subst:User:Sven/Latest/Template. And add only your category with your media files. - Something like this:
{{#tag: gallery| <!--category watch--><!--category watch--> }}
- The inclusion of User:BryanBot/CategoryWatch (see there for syntax).
- Make the template page and fill it with content like this:
{{subst:ns:{{{namespace}}}}}:{{{title}}}{{!}}comment
. See /Template for an example.
You're done! BryanBot will cycle your page hourly and update the gallery which you can include on your user page, ...
Limitations[edit]
- BryanBot will only show the media in the last X days, not your latest media. For example, if you load up an image on 24. december, then you go into holiday, afterwards the gallery will be empty because the last X days expired and the picture was removed from the gallery again.
This solution uses a workaround for a <gallery>
bug, see User:Sven/Template:Gallery for another solution wich works, too.