Skip to content

Commit

Permalink
update wikiquote eo+en+es
Browse files Browse the repository at this point in the history
Update docs for languages
wikiquote eo
wikiquote en
wikiquote es
wikiquote it
and JSON examples
  • Loading branch information
JaviRamosLab committed Feb 6, 2024
1 parent 0a0e89c commit b3f0e6a
Show file tree
Hide file tree
Showing 28 changed files with 759 additions and 359 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,46 @@ API for image and video storage and manipulation - free for up to 75,000 images
## Quotation marks
https://symbl.cc/en/collections/quotation-marks/

Style by language/country
- “ ”English double.
- ‘ ’English Single.
- « »French "Christmas trees".
- „ “German "paws".
- „ ”Polish.
- » «Swedish reverse.
- " "Double universal.

Quantity of characters: 25
- «
-
- »
-
-
-
-
-
-
- "
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-





## HTML tags and CSS
Aditional info and comments about HTML tags ```<blockquote> <q> <cite> <poem>``` and CSS ```lang="en" hreflang="en" translate="no" :lang()```

Expand Down
7 changes: 6 additions & 1 deletion docs/en-wikiquote.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ <h2>English Wikiquote (en.wikiquote.org)</h2>
<p><a href="https://en.wikiquote.org/wiki/Category:Quote_of_the_day">Category:Quote of the day</a></p>

<p>Endpoint:</p>
<code>https://en.wikiquote.org/w/api.php?format=json&action=parse&page=Template:QoD</code>
<code>https://en.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Template:QoD</code>

<hr>
<hr>

<span id="enWikiquote"></span>

<script src="js/en-wikiquote.js"></script>
<a href="https://github.com/javiramoslab/Wikiquote-API" class="github-corner" aria-label="View source on GitHub">
Expand Down
11 changes: 10 additions & 1 deletion docs/eo-wikiquote.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<link href="./css/corner.css" rel="stylesheet" type="text/css">
<link href="css/prism.css" rel="stylesheet" />
<link href="../styles/style-1.css" rel="stylesheet" type="text/css">
<title>Esperanto (EO) Wikiquote API</title>
</head>

<body>
<nav></nav>
<h1>Esperanto (EO) Wikiquote API - Quote Of The Day (QOTD)</h1>

<h2>Esperanto Wikiquote (eo.wikiquote.org)</h2>
Expand All @@ -22,13 +25,19 @@ <h2>Esperanto Wikiquote (eo.wikiquote.org)</h2>
<p>Endpoint:</p>
<code>https://eo.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Vikicitaro:Citaĵo_de_la_tago/CDLT</code>

<hr>
<pre><code class="language-html">&lt;span id=&quot;eoWikiquote&quot;&gt;&lt;/span&gt;</code></pre>
<br>
<pre><code class="language-html">&lt;script src=&quot;https://raw.githubusercontent.com/JaviRamosLab/wikiquote-API/main/docs/js/eo-wikiquote.js&quot;&gt;&lt;/script&gt;</code></pre>

<hr>
<hr>

<span id="eoWikiquote"></span>


<footer></footer>
<script src="js/eo-wikiquote.js"></script>
<script src="js/prism.js"></script>
<a href="https://github.com/javiramoslab/Wikiquote-API" class="github-corner" aria-label="View source on GitHub">
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0px; right: 0px; border: 0px;"
aria-hidden="true">
Expand Down
9 changes: 6 additions & 3 deletions docs/es-wikiquote.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ <h2>Spanish Wikiquote (es.wikiquote.org)</h2>
<p><a href="https://es.wikiquote.org/wiki/Categoría:Wikiquote:Frase_del_día">Categoría:Wikiquote:Frase del día</a></p>
<p>Endpoint:</p>
<code>{{Frase-{{CURRENTDAYNAME}}}}</code>
<code></code>
<code>https://es.wikiquote.org/w/api.php?format=json&action=parse&page=Wikiquote:Frase_del_día/Frase_del_día</code>
<br>
<code>https://es.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Wikiquote:Frase_del_día/Frase_del_día</code>

<span id="seoo"></span>
<hr>
<hr>

<span id="esWikiquote"></span>


<script src="js/es-wikiquote.js"></script>
Expand Down
22 changes: 10 additions & 12 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</head>

<body>
<nav></nav>
<h1>Wikiquote API - Quote Of The Day (QOTD)</h1>
<p>At the moment exist in 10 languages (en, it,es, eo, pt, fr, as, da, fa, sq)</p>
<p>At the moment active in 6 languages (en, it,es, eo, pt, fr), unfinished in 4 (as, da, fa, sq)</p>
Expand All @@ -19,7 +20,7 @@ <h2>English Wikiquote (en.wikiquote.org)</h2>
<p><a href="https://en.wikiquote.org/wiki/Category:Quote_of_the_day">Category:Quote of the day</a></p>
</p>
<p>Endpoint:</p>
<code>https://en.wikiquote.org/w/api.php?format=json&action=parse&page=Template:QoD</code>
<code>https://en.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Template:QoD</code>

<h2>Spanish Wikiquote (es.wikiquote.org)</h2>
<p>Spanish wikiquote (Quote Of The Day) API call</p>
Expand All @@ -30,17 +31,16 @@ <h2>Spanish Wikiquote (es.wikiquote.org)</h2>
<p><a href="https://es.wikiquote.org/wiki/Categoría:Wikiquote:Frase_del_día">Categoría:Wikiquote:Frase del día</a></p>
<p>Endpoint:</p>
<code>{{Frase-{{CURRENTDAYNAME}}}}</code>
<code></code>
<code>https://es.wikiquote.org/w/api.php?format=json&action=parse&page=Wikiquote:Frase_del_día/Frase_del_día</code>
<br>
<code>https://es.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Wikiquote:Frase_del_día/Frase_del_día</code>

<h2>Esperanto Wikiquote (eo.wikiquote.org)</h2>
<p>Esperanto wikiquote (Quote Of The Day) API call</p>
<p><a href="https://eo.wikiquote.org/wiki/Vikicitaro:Citaĵo_de_la_tago">Vikicitaro:Citaĵo de la tago</a></p>
<p>Today QOTD <a href="https://eo.wikiquote.org/wiki/Vikicitaro:Citaĵo_de_la_tago/CDLT">Vikicitaro:Citaĵo_de_la_tago/CDLT</a>
</p>
<p>Endpoint:</p>
<!-- <code>https://eo.wikiquote.org/w/api.php?action=parse&text={{Vikicitaro:Citaĵo_de_la_tago/CDLT}}&format=json</code> -->
<code>https://eo.wikiquote.org/w/api.php?format=json&action=parse&page=Vikicitaro:Citaĵo_de_la_tago/CDLT</code>
<code>https://eo.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Vikicitaro:Citaĵo_de_la_tago/CDLT</code>

<h2>it</h2>
<p>Categoria:Servizi - Citazione del giorno</p>
Expand All @@ -53,7 +53,7 @@ <h2>it</h2>

<p><a href="https://it.wikiquote.org/wiki/Template:Qotd">Template:Qotd</a></p>
<p>Endpoint:</p>
<code>https://it.wikiquote.org/w/api.php?format=json&action=parse&page=Template:Qotd</code>
<code>https://it.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Template:Qotd</code>

<h2>fr</h2>
<p>Wikiquote:Citation du jour</p>
Expand All @@ -65,7 +65,7 @@ <h2>fr</h2>
<p>Modèle:Citation du jour</p>
<p><a href="https://fr.wikiquote.org/wiki/Modèle:Citation_du_jour">Modèle:Citation du jour</a></p>
<p>Endpoint:</p>
<code>https://fr.wikiquote.org/w/api.php?format=json&action=parse&page=Modèle:Citation_du_jour</code>
<code>https://fr.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Modèle:Citation_du_jour</code>


<h2>pt</h2>
Expand All @@ -78,7 +78,7 @@ <h2>pt</h2>
<p>Endpoint:</p>
<code>{{frase do dia/{{CURRENTDAY}} de {{CURRENTMONTHNAME}}}}</code>
<code>https://pt.wikiquote.org/wiki/Predefinição:Frase_do_dia/1_de_janeiro</code>
<code>https://pt.wikiquote.org/w/api.php?format=json&action=parse&page=Wikiquote:Frase_do_dia</code>
<code>https://pt.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Wikiquote:Frase_do_dia</code>


<h2>zh</h2>
Expand All @@ -88,7 +88,7 @@ <h2>zh</h2>
<p></p>
<p><a href="https://zh.wikiquote.org/wiki/Template:Qotd">Template:Qotd</a></p>
<p>Endpoint:</p>
<code>https://zh.wikiquote.org/w/api.php?format=json&action=parse&page=Template:Qotd</code>
<code>https://zh.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Template:Qotd</code>


<h1>Others</h1>
Expand All @@ -114,10 +114,8 @@ <h1>Others</h1>
<li>ar - <a href="https://ar.wikiquote.org/wiki/ويكي_الاقتباس:اقتباسات_مختارة">ar</a></li>
<br>

<footer>

</footer>

<footer></footer>
<script src="js/app.js"></script>
<a href="https://github.com/javiramoslab/Wikiquote-API" class="github-corner" aria-label="View source on GitHub">
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0px; right: 0px; border: 0px;" aria-hidden="true">
Expand Down
6 changes: 5 additions & 1 deletion docs/it-wikiquote.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ <h2>it</h2>

<p><a href="https://it.wikiquote.org/wiki/Template:Qotd">Template:Qotd</a></p>
<p>Endpoint:</p>
<code>https://it.wikiquote.org/w/api.php?format=json&action=parse&page=Template:Qotd</code>
<code>https://it.wikiquote.org/w/api.php?format=json&origin=*&action=parse&page=Template:Qotd</code>

<hr>
<hr>

<span id="itWikiquote"></span>

<script src="js/it-wikiquote.js"></script>
<a href="https://github.com/javiramoslab/Wikiquote-API" class="github-corner" aria-label="View source on GitHub">
Expand Down
4 changes: 2 additions & 2 deletions docs/js/es-wikiquote.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if(day == 6) titulo='{{Plantilla:Frase-sábado}}';



// url = 'http://es.wikiquote.org/w/api.php?action=parse&text='+titulo+'&format=json&callback=pon_frase_en_span';
url = 'json/es.wikiquote.org_api-result.json';
url = 'http://es.wikiquote.org/w/api.php?action=parse&text='+titulo+'&format=json&callback=pon_frase_en_span';
// url = 'json/es.wikiquote.org_api-result.json';

var elem = document.createElement ('script');
elem.setAttribute ('src', url);
Expand Down
79 changes: 79 additions & 0 deletions docs/json-examples/en.wikiquote.org_api-result.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"parse": {
"title": "Template:QoD",
"pageid": 94955,
"revid": 2859543,
"text": {
"*": "<div class=\"mw-parser-output\"><div style=\"width:55%; background-color:#fff3f3; border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black\">\n<table style=\"background: &#123;&#123;&#123;color&#125;&#125;&#125;\">\n<tbody><tr>\n<td align=\"center\"><span typeof=\"mw:File\"><a href=\"/wiki/File:Woody_Guthrie_2.jpg\" class=\"mw-file-description\"><img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/0/09/Woody_Guthrie_2.jpg/252px-Woody_Guthrie_2.jpg\" decoding=\"async\" width=\"252\" height=\"232\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/0/09/Woody_Guthrie_2.jpg/378px-Woody_Guthrie_2.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/09/Woody_Guthrie_2.jpg/504px-Woody_Guthrie_2.jpg 2x\" data-file-width=\"3152\" data-file-height=\"2907\" /></a></span>\n</td>\n<td align=\"center\">&#160;\n</td>\n<td align=\"center\">\n<table style=\"text-align:center; width:100%\">\n<tbody><tr>\n<td><a href=\"/wiki/Work\" title=\"Work\">Work</a> and <a href=\"/wiki/Play\" title=\"Play\">play</a> are an artificial pair of opposites, because the best kind of play contains an element of work, and the most <a href=\"/wiki/Productive\" class=\"mw-redirect\" title=\"Productive\">productive</a> kind of work must include something of the <a href=\"/wiki/Spirit\" title=\"Spirit\">spirit</a> of play.\n</td></tr>\n<tr>\n<td style=\"font-size:smaller;\">~ <a href=\"/wiki/Sydney_J._Harris\" title=\"Sydney J. Harris\">Sydney J. Harris</a> ~\n</td></tr></tbody></table>\n</td>\n<td align=\"center\">&#160;\n</td>\n<td align=\"center\"><span typeof=\"mw:File\"><a href=\"/wiki/File:Dictator_charlie9.jpg\" class=\"mw-file-description\"><img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Dictator_charlie9.jpg/321px-Dictator_charlie9.jpg\" decoding=\"async\" width=\"321\" height=\"233\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Dictator_charlie9.jpg/482px-Dictator_charlie9.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Dictator_charlie9.jpg/642px-Dictator_charlie9.jpg 2x\" data-file-width=\"704\" data-file-height=\"512\" /></a></span>\n</td></tr></tbody></table>\n</div>\n<!-- \nNewPP limit report\nParsed by mw1354\nCached time: 20230914222417\nCache expiry: 5744\nReduced expiry: true\nComplications: []\nCPU time usage: 0.011 seconds\nReal time usage: 0.020 seconds\nPreprocessor visited node count: 20/1000000\nPost\u2010expand include size: 877/2097152 bytes\nTemplate argument size: 240/2097152 bytes\nHighest expansion depth: 5/100\nExpensive parser function count: 1/500\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 0/5000000 bytes\nNumber of Wikibase entities loaded: 0/400\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00% 6.002 1 -total\n100.00% 6.002 1 Wikiquote:Quote_of_the_day/September_14,_2023\n 42.25% 2.536 1 Template:Quote_of_the_day\n-->\n\n<!-- Saved in parser cache with key enwikiquote:pcache:idhash:94955-0!canonical and timestamp 20230914222417 and revision id 2859543. Rendering was triggered because: page-view\n -->\n</div>"
},
"langlinks": [
{
"lang": "as",
"url": "https://as.wikiquote.org/wiki/%E0%A6%B8%E0%A6%BE%E0%A6%81%E0%A6%9A:%E0%A6%86%E0%A6%9C%E0%A6%BF%E0%A7%B0_%E0%A6%89%E0%A6%A6%E0%A7%8D%E0%A6%A7%E0%A7%83%E0%A6%A4%E0%A6%BF",
"langname": "asama",
"autonym": "\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be",
"*": "\u09b8\u09be\u0981\u099a:\u0986\u099c\u09bf\u09f0 \u0989\u09a6\u09cd\u09a7\u09c3\u09a4\u09bf"
}
],
"categories": [
{
"sortkey": "QoD",
"*": "Quote_of_the_day"
}
],
"links": [
{
"ns": 0,
"exists": "",
"*": "Sydney J. Harris"
},
{
"ns": 0,
"exists": "",
"*": "Play"
},
{
"ns": 0,
"exists": "",
"*": "Productive"
},
{
"ns": 0,
"exists": "",
"*": "Spirit"
},
{
"ns": 0,
"exists": "",
"*": "Work"
}
],
"templates": [
{
"ns": 4,
"exists": "",
"*": "Wikiquote:Quote of the day/September 14, 2023"
},
{
"ns": 10,
"exists": "",
"*": "Template:Quote of the day"
}
],
"images": [
"Woody_Guthrie_2.jpg",
"Dictator_charlie9.jpg"
],
"externallinks": [],
"sections": [],
"parsewarnings": [],
"displaytitle": "<span class=\"mw-page-title-namespace\">Template</span><span class=\"mw-page-title-separator\">:</span><span class=\"mw-page-title-main\">QoD</span>",
"iwlinks": [],
"properties": [
{
"name": "wikibase_item",
"*": "Q117802255"
}
]
}
}

0 comments on commit b3f0e6a

Please sign in to comment.