Wikiquote talk:Quote of the day
From Wikiquote
Proposals for "Quotes of the day" were once handled at Wikiquote:Quote of the day/Quote proposals, but now are usually made on pages for each month:
| Archives |
Contents |
[edit] Suggestion: only sourced quotes?
I think Wikiquote has progressed to the point where we have enough sourced quotes to only use those as quotes of the day, and it would improve the perceived quality we put forth on the front page. I always find myself somewhat disappointed when I see an interesting quote and click through to the article, only to find that it's merely "attributed" with no source. Sourced attributions might also be okay, for example for ancient authors where there is no original quote, but there is some source as to who attributes it to them. But completely unsourced attributions are often apocryphal or urban legends (I've moved a few to "misattributed" myself), so putting them on the front page seems dicey. --Delirium 23:23, 28 November 2006 (UTC)
[edit] Confused on how exactly to nominate a quote
Do I just add it under the date I think it should appear (like on the Wookieepedia quote of the day), am I able to vote on my own nominations? Deuxhero 20:19, 13 February 2007 (UTC)
[edit] RSS for QOTD?
can't believe this hasn't become a wikimedia standard yet....any plans on implementing? http://en.wiktionary.org/wiki/Wiktionary_talk:Word_of_the_day#RSS.3F--69.110.138.58 02:44, 26 March 2007 (UTC)
- I agree - get on this! 69.114.223.239 17:07, 18 May 2007 (UTC)
whats the status on this? --69.111.8.109 20:33, 21 June 2007 (UTC)
Guys, I made a shoddy quote of the day RSS feed here - http://pipes.yahoo.com/pipes/pipe.info?_id=6h6J2j0_3RGUoYItnkartA - Hopefully it's helpful. 38.98.105.130 03:38, 21 June 2008 (UTC)
[edit] Line breaks, spaces, and daily-article-l.
Would it be possible to add spaces before line breaks to prevent what happened to the Merchant quote? -- Jeandré, 2007-10-26t07:46z
- I've just converted the old HTML breaks with no space into XHTML-compatible breaks with one space on each side, as I frequently do in articles, for easier editing and standards compliance. I don't know how the Wikiquote Quote of the Day is getting into this Wikimedia maillist (oh, the gaps in my wiki-knowledge!), but if you do, can you try something that would test to see if this fixes the undesirable word-squishing you pointed out? Thanks. ~ Jeff Q (talk) 10:38, 26 October 2007 (UTC)
I will put spaces to each side of the breaks in the future. ~ Kalki 11:33, 26 October 2007 (UTC)
[edit] A PHP script to get Quote of the Day
Hello, I made a php script to get the quote of the day and I want to share it with the community. You must copy this text and create files "wikiquote.php" and "quote.php", upload both of them to your web server and you will be able to see it. You can use "wikiquote.php" to extract the content, "quote.php" is only an example code to show it.
[edit] wikiquote.php
<?php
// wikiquote.php
//
// Autor: Javier Matos Odut
// Date: 2008.08.17
// email: niseteocurra AT gmail DOT com
//
// This script return three variables to show Quote of the Day in your webpage. You will find
// quote in $quote variable, author in $author variable and a link to wikipedia in $author_link.
// You can include this file in other php code and use these three variables.
// It only works with english quote version.
//
// Este pequeño script devuelve a través de tres variables principales la frase célebre del
// día ($quote), el autor ($author) y el enlace hacia la wikipedia del autor ($author_link).
// Está creado unicamente para la versión inglesa de la wikipedia.
// Crea la ruta de acceso de wikiquote
$base = 'http://en.wikiquote.org/wiki/Special:Export/Wikiquote:Quote_of_the_day/';
$date = date('F_j,_Y');
// Crea una sesión curl
$ch = curl_init();
// Parámetros, URL y "ocultación" de lo captado
curl_setopt($ch, CURLOPT_URL, $base.$date);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Se ejecuta la consulta y se decodifica
//$source = utf8_decode(curl_exec($ch));
$source = curl_exec($ch);
// Se termina cerrando sesión
curl_close($ch);
// Se aisla la cita así como el autor
//$pattern = '/<comment>(.*) ~ \[\[(.*)\]\]<\/comment>/';
$pattern = '/\| ([^|]*) ~ \[\[([^\]]*)\]\]/';
preg_match($pattern, $source, $match);
$quote = $match[1];
$author = $match[2];
// Compone el enlace hacia el autor de la cita
$wikipedia_link = 'http://en.wikipedia.org/wiki/';
$author_link = $wikipedia_link.preg_replace('/\ /', '_', $author);
?>
[edit] quote.php
<?php include_once('wikiquote.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Quote of the day</title>
<style type="text/css">
<!--
body {
margin: 5em;
padding: 0;
background: #edf5fa;
font: 12px/170% Verdana, sans-serif;
color: #494949;
}
a:link, a:visited {
color: #027AC6;
text-decoration: none;
}
a:hover {
color: #0062A0;
text-decoration: underline;
}
a:active{
color: #5895be;
}
#quote {
position:relative;
margin: auto;
width: 400px !important;
min-height: 40px;
clear: both;
text-align: justify;
border-collapse: collapse;
padding: 10px 15px 10px 15px;
-moz-border-radius: 7px;
-khtml-border-radius: 7px;
border-radius: 7px;
font-size: 0.8em;
border:1px solid #eee;
background-color:#fafafa;
}
#author {
padding-top:1.5em;
text-align:right;
}
-->
</style>
</head>
<body>
<div id="quote">
<?php echo $quote ?>
<div id="author">
<a href="<?php echo $author_link ?>"><?php echo $author ?></a>
</div>
</div>
</body>
</html>

