User photos: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 6: Line 6:
[[User_photos_guys|The Guys]]<br>
[[User_photos_guys|The Guys]]<br>
[[User_photos_girls|The Girls]]
[[User_photos_girls|The Girls]]


==Adding & Updating Photos==
==Adding & Updating Photos==
Line 11: Line 12:
Please add/update yourself, but upload the image and use the following syntax: <br>
Please add/update yourself, but upload the image and use the following syntax: <br>
<nowiki>[[Image:mypic.jpg|left|100px]] [User:myname|myname]</nowiki>
<nowiki>[[Image:mypic.jpg|left|100px]] [User:myname|myname]</nowiki>
==How the hell I made this==
Well, for anyone who is curious
public class Photos{
public static void main(String [] args){
String temp = " ";
while(!Console.EndOfFile()){
String stIn = Console.readToken();
if(stIn.charAt(0)!=temp.charAt(0)){
System.out.println("");
System.out.println("==" + stIn.charAt(0) + "==");
}
if(!stIn.equalsIgnoreCase(temp)){
System.out.println("http://www.redbrick.dcu.ie/~magluby/pics/" + stIn +".jpg [[User:"+ stIn +"|" + stIn + "]]");
System.out.println("");
}
temp=stIn;
}
}
}
not exactly my best work ;)

Navigation menu