General » IMCDb at Wikipedia
IMCDb at Wikipedia
Published 05/11/2007 @ 20:27:37, By Steinninn
I just thought I'd tell you about two new templates that I created at en.wikipedia.org
http://en.wikipedia.org/wiki/Template:Imcdb_vehicle
http://en.wikipedia.org/wiki/Template:Imcdb_movie
The problem is that urls keep changing.
http://www.imcdb.org/movie_1004509120-Chips--Chips-In-Black.html
http://www.imcdb.org/movie.php?id=1004509120
is the same title, can this be fixed?
http://en.wikipedia.org/wiki/Template:Imcdb_vehicle
http://en.wikipedia.org/wiki/Template:Imcdb_movie
The problem is that urls keep changing.
http://www.imcdb.org/movie_1004509120-Chips--Chips-In-Black.html
http://www.imcdb.org/movie.php?id=1004509120
is the same title, can this be fixed?
IMCDb at Wikipedia
Published 05/11/2007 @ 23:04:36, By antp
Nice
But what should be fixed? Both URL are valid. First one is for better referencing in Google, but the part after the first dash is not important:
http://www.imcdb.org/movie_1004509120-Chips--Chips-In-Black.html
http://www.imcdb.org/movie_1004509120-Anything.html
http://www.imcdb.org/movie_1004509120-You-write-what-you-want.html
So it is simply a way to include title in URL, but if it is complicated, you can use the URL that contains only the IMDB number.
Latest Edition: 05/11/2007 @ 23:05:11
But what should be fixed? Both URL are valid. First one is for better referencing in Google, but the part after the first dash is not important:
http://www.imcdb.org/movie_1004509120-Chips--Chips-In-Black.html
http://www.imcdb.org/movie_1004509120-Anything.html
http://www.imcdb.org/movie_1004509120-You-write-what-you-want.html
So it is simply a way to include title in URL, but if it is complicated, you can use the URL that contains only the IMDB number.
Latest Edition: 05/11/2007 @ 23:05:11
IMCDb at Wikipedia
Published 05/11/2007 @ 23:25:27, By Steinninn
Interesting, it makes things a little easier to know that it's the imdb id number.
I hope you know wiki, because things are going to get complicated. [[Template:imcdb movie]] looks like this:
http://www.imcdb.org/movie_{{{1}}}.html
So I only need the imdb id number in the first parameter, no matter what the url for Chips in black was. But things are going to get complicated now.
[[Template:imcdb]] vehicle looks like:
http://www.imcdb.org/vehicles_make-{{{1}}}.html
Some one wants to add an imcdb link to the article about [[Morris Marina]]. There are two kinds of urls that I know of that lead to the imcdb page
this is easy: http://www.imcdb.org/vehicles_make-morris_model-marina.html it's easy,
but what about this one: http://www.imcdb.org/vehicles.php?make=morris&model=marina
I'm just thinking, no matter where people are, they should all have an easy code that they can put into the first parameter.
I hope you know wiki, because things are going to get complicated. [[Template:imcdb movie]] looks like this:
http://www.imcdb.org/movie_{{{1}}}.html
So I only need the imdb id number in the first parameter, no matter what the url for Chips in black was. But things are going to get complicated now.
[[Template:imcdb]] vehicle looks like:
http://www.imcdb.org/vehicles_make-{{{1}}}.html
Some one wants to add an imcdb link to the article about [[Morris Marina]]. There are two kinds of urls that I know of that lead to the imcdb page
this is easy: http://www.imcdb.org/vehicles_make-morris_model-marina.html it's easy,
but what about this one: http://www.imcdb.org/vehicles.php?make=morris&model=marina
I'm just thinking, no matter where people are, they should all have an easy code that they can put into the first parameter.
IMCDb at Wikipedia
Published 05/11/2007 @ 23:30:03, By antp
Both work in the same way, like for movies. You do not especially have to make something for the two kinds of URLs. You can chose one of the two.
IMCDb at Wikipedia
Published 05/11/2007 @ 23:40:11, By Steinninn
Well, I see now, it would make things easier if they all redirect to one url, but what the hey.
IMCDb at Wikipedia
Published 05/11/2007 @ 23:40:51, By antp
I use Apache URL-rewriting rather than redirecting pages in PHP, but what does it change in this case?
You can also do that:
http://imcdb.org/vehicle?id=1234/Chevrolet/Chevelle
(but this style is not made on purpose, it is due to the fact that extensions can be omitted and that it discards all what is after page name)
I'd recommend to only use the style that is the easiest for you, and do not care about the others, as they give the same result.
Latest Edition: 05/11/2007 @ 23:46:43
You can also do that:
http://imcdb.org/vehicle?id=1234/Chevrolet/Chevelle
(but this style is not made on purpose, it is due to the fact that extensions can be omitted and that it discards all what is after page name)
I'd recommend to only use the style that is the easiest for you, and do not care about the others, as they give the same result.
Latest Edition: 05/11/2007 @ 23:46:43
IMCDb at Wikipedia
Published 05/11/2007 @ 23:50:10, By Steinninn
If you stuble upon one url, it might not be easy to find the right text to put in the parameter to make the template work
IMCDb at Wikipedia
Published 05/11/2007 @ 23:59:51, By Steinninn
I've changed the template into:
http://www.imcdb.org/vehicles_make-{{{make}}}{{#if:{{{model|}}}|_model-{{{model}}} }}.html {{{1|{{PAGENAME}}}}}
If someone is interested, here is a list of pages where the two templates might be usefull:
http://en.wikipedia.org/w/index.php?title=Special:Linksearch&target=www.imcdb.or- g&namespace=&limit=500&offset=0
http://www.imcdb.org/vehicles_make-{{{make}}}{{#if:{{{model|}}}|_model-{{{model}}} }}.html {{{1|{{PAGENAME}}}}}
If someone is interested, here is a list of pages where the two templates might be usefull:
http://en.wikipedia.org/w/index.php?title=Special:Linksearch&target=www.imcdb.or- g&namespace=&limit=500&offset=0
IMCDb at Wikipedia
Published 06/11/2007 @ 00:13:27, By antp
I did not know that there were so many links, last time that I checked there were at most 10
IMCDb at Wikipedia
Published 08/11/2007 @ 04:40:06, By Ddey65