User talk:Mtew/Icon Gallery

From Guild Wars 2 Wiki
Jump to navigationJump to search

You probably already know this[edit]

You could use DPL to generate a list of the icons you uploaded, rather than manually updating it each time there are new ones. (I apologize if you already know about this and are dynamically generating the wikicode externally.) The one thing I don't know how to do is to generate a left→right→down order (the code below generates a list that goes top→down→right).

<dpl>

namespace = File
ignorecase = true

allowcachedresults = true

titlematch =%.ateu.png
replaceintitle = /\.ateu\.png/

shownamespace = false
noresultsheader = Houston, we have a problem.

format   = ,\n:[[FILE:%TITLE%.ateu.png]]<br /> [[%PAGE%|%TITLE%]],,
columns=10

</dpl>

Either way, good luck with whatever you are up to :-) – Tennessee Ernie Ford (TEF) 02:59, 17 June 2012 (UTC)

Change the format line to the following:
format = ,<div style="float:left">[[FILE:%TITLE%.ateu.png|thumb|[[%PAGE%|%TITLE%]]]]</div>,,
and you've got floating images that will fill the screen left → right. —Dr Ishmael User Dr ishmael Diablo the chicken.png 04:05, 17 June 2012 (UTC)
Actually I have a bash script that generates the list for these pages and DPL will not really help since the files have not been uploaded yet, but the formatting suggestion are worth looking at. --Max 2 06:15, 17 June 2012 (UTC)
Cool. – Tennessee Ernie Ford (TEF) 19:18, 17 June 2012 (UTC)