Skip to content

Commit ffc5732

Browse files
committed
start of urdu templates, based on #40
1 parent f421a5d commit ffc5732

File tree

8 files changed

+615
-0
lines changed

8 files changed

+615
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
#------------------
2+
# Wikipedia Top 100
3+
# If you want to translate the charts on top.hatnote.com, start with a copy
4+
# of this file and leave us a note at:
5+
# https://github.com/hatnote/top/issues
6+
#------------------------------------------------------------------------------
7+
8+
#-----------
9+
# Page title
10+
#------------------------------------------------------------------------------
11+
12+
title: Top 100
13+
full_title: >-
14+
اردو Wikipedia Top 100 on {formatted_date}
15+
16+
index_title: >-
17+
اردو Wikipedia Top 100
18+
19+
rss_title: >-
20+
اردو Wikipedia's 100 most-visited articles
21+
22+
wikipedia: Wikipedia
23+
language_project: اردو Wikipedia
24+
tagline: >-
25+
اردو ویکیپیڈیا کے سب سے زیادہ ملاحظہ کردہ مضامین کی فہرست۔ <a
26+
href="#about" class="learn">مزید معلومات کے لیے</a> ۔ ۔ ۔
27+
28+
alt_tagline: >-
29+
The most-visited اردو Wikipedia articles, updated daily.
30+
31+
#------
32+
# Links
33+
#------------------------------------------------------------------------------
34+
35+
about_link: About
36+
more_langs_link: More languages
37+
feed_link: Feed
38+
blog_link: Blog
39+
top: Back to top
40+
41+
#---------
42+
# Articles
43+
#
44+
# Each article has statistics at the bottom like this:
45+
# 934.8K views (↑300.5K from yesterday)
46+
#------------------------------------------------------------------------------
47+
48+
views: views
49+
from_yesterday: from yesterday
50+
streak: day streak
51+
52+
#------------
53+
# About section
54+
#------------------------------------------------------------------------------
55+
56+
about_header: About
57+
about_section: >-
58+
<p>Read the <a href="http://top.hatnote.com/en/wikipedia">archive</a>.</p>
59+
60+
<p>A daily list of the most visited Wikipedia articles, generated
61+
by <a href="https://twitter.com/sklaporte">Stephen LaPorte</a>
62+
and <a href="https://twitter.com/mhashemi">Mahmoud
63+
Hashemi</a>. It's also available in <a
64+
href="http://top.hatnote.com/about.html">more languages</a>. If
65+
you find this list interesting, you will enjoy <a
66+
href="http://weekly.hatnote.com">The Weeklypedia</a>, a weekly
67+
digest of the most edited Wikipedia articles. Learn more on the <a
68+
href="#">Hatnote Blog</a>.</p>
69+
70+
<p>This page was made possible by <a
71+
href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\
72+
pageviews_top_project_access_year_month_day">Wikipedia's new page
73+
view API</a>, with some nice images and summaries from the <a
74+
href="https://www.mediawiki.org/wiki/API:Query">MediaWiki
75+
API</a>. You can find more code and documentation <a
76+
href="https://github.com/hatnote/top">available on
77+
github</a>.</p>
78+
79+
<p>Want to see a list of the most visited articles in another
80+
language of Wikipedia? So do we! Please <a
81+
href="https://github.com/hatnote/top/issues">send a request</a>
82+
and let us know if you can help translate the templates.</p>
83+
84+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
85+
86+
#-------
87+
# Tweets
88+
#
89+
# We can provide three possible tweets. They shouldn't be longer than 117
90+
# characters (including the article title, so there is enough space to
91+
# include a link.
92+
#------------------------------------------------------------------------------
93+
94+
long_tweet: >-
95+
On a {streak}-day streak, {title} was the #{rank} most
96+
read article on #{project} w/ {views} views
97+
98+
medium_tweet: "{title} was viewed {views} times on #{project}"
99+
short_tweet: "{title} was #{rank} on #{project}"
100+
101+
#-------------
102+
# Archive page
103+
#------------------------------------------------------------------------------
104+
105+
all_traffic_data: All traffic data
106+
107+
#----
108+
# RSS
109+
#------------------------------------------------------------------------------
110+
111+
rss_intro: The new اردو Wikipedia numbers are in!
112+
rss_description: >-
113+
<a href="{permalink|s}">{title}</a> came in at #{rank}, with {views_short}
114+
views{?streak_min}, continuing its {streak_len}-day streak on the chart
115+
({view_trend|s}{view_delta} views since yesterday){/streak_min}.
116+
117+
rss_read_more: Read more...

top/templates/ur_chart.dust

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>{?is_index}اردو Wikipedia Top 100{:else}اردو Wikipedia Top 100 on {formatted_date}{/is_index}</title>
5+
<script src="{dir_depth}js/jquery.js"></script>
6+
<script src="{dir_depth}js/jquery.peity.min.js"></script>
7+
<script src="{dir_depth}js/jquery.jknav.js"></script>
8+
<script src="{dir_depth}js/jquery.hotkeys.js"></script>
9+
<link href="{dir_depth}css/fonts.css" rel="stylesheet" type="text/css">
10+
<link href="{dir_depth}css/chart.css" rel="stylesheet" type="text/css"
11+
<link href="{dir_depth}feeds/{lang}{project_lower}.rss" title="اردو Wikipedia Top 100" type="application/rss+xml" rel="alternate" />
12+
<style>
13+
{#articles}
14+
.cover-{rank} {
15+
background: url({image_url});
16+
background-size: cover;
17+
background-position: 50%;
18+
}
19+
{/articles}
20+
.rank {
21+
border-radius: 0 7px 7px 0;
22+
-moz-border-radius: 0 7px 7px 0;
23+
-webkit-border-radius: 0 7px 7px 0;
24+
}
25+
</style>
26+
<script>
27+
28+
$(function() {
29+
$('.rank').jknav();
30+
$.jknav.init({speed: 'fast', circular: true});
31+
$('.sparkline').peity('line', {fill: null,
32+
width: 50,
33+
height: 14,
34+
stroke: 'rgba(116, 131, 138, 0.7)'})
35+
$('.row').hover(function() {
36+
$('.permalink', this).toggle();
37+
});
38+
});
39+
</script>
40+
<!--
41+
Generated: {meta.generated}
42+
Fetched: {meta.fetched}
43+
Total Traffic: {total_traffic_short}
44+
-->
45+
</head>
46+
<body dir="rtl">
47+
<div class="top-area">
48+
<div class="top container">
49+
<ul>
50+
<li><a href="#about">About</a></li>
51+
<li><a href="{dir_depth}about.html" id="other-langs">More languages</a></li>
52+
<li><a href="{dir_depth}feeds/{lang}{project_lower}.rss">Feed</a></li>
53+
<li><a href="http://blog.hatnote.com/">Blog</a></li>
54+
</ul>
55+
</div>
56+
</div>
57+
58+
<div class="header">
59+
<div class="container">
60+
<h1>اردو Wikipedia <span class="ultra">Top 100</span></h1>
61+
<p>اردو ویکیپیڈیا کے سب سے زیادہ ملاحظہ کردہ مضامین کی فہرست۔ <a href="#about" class="learn">مزید معلومات کے لیے</a> ۔ ۔ ۔</p>
62+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center date"><a href="{dir_depth}/{lang}/{project_lower}/{date.year}/{date.month}">{formatted_date}</a></p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
63+
<br style="clear: left;" />
64+
</div>
65+
</div>
66+
</div>
67+
68+
<div class="container">
69+
<ul>
70+
{#articles}
71+
<li class="row">
72+
<div class="column rank">
73+
<p><a href="{dir_depth}{current}#rank-{rank}">{local_rank}</a></p>
74+
</div>
75+
<a class="column cover-art cover-{rank}" href="{url}" target="_blank"></a>
76+
<div class="column label">
77+
<a id="rank-{rank}"></a>
78+
<a id="title-{article}"></a>
79+
<p class="sparkline-area"></p>
80+
<p class="title"><a href="{url}" target="_blank">{title}</a><a href="{dir_depth}{current}#title-{article}"><img class="permalink" src="{dir_depth}img/permalink.png"></a></p>
81+
<p class="summary">{summary}</p>
82+
<div class="meta-area">
83+
<p class="views">{local_views_short} views <span class="meta">({@gt key=streak_len value=1}<a href="{dir_depth}{prev}#title-{article}" class="yesterday">{/gt}{view_trend|s}{local_view_delta} from yesterday{@gt key=streak_len value=1}</a>{/gt})</span><span class="sparkline">{#history}{.}{@sep},{/sep}{/history}, {views}</span></p>
84+
<p class="streak">{@gt key=streak_len value=1}{local_streak_len} day streak{/gt}</p>
85+
<a href="http://twitter.com/share?text={tweet}&amp;url={permalink|uc}" target="_blank"><img class="twitter-icon" src="{dir_depth}img/twitter.png"></a>
86+
</div>
87+
</div>
88+
</li>
89+
{/articles}
90+
</ul>
91+
</div>
92+
93+
<div class="end-nav">
94+
<div class="container">
95+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center date"><a href="./">{formatted_date}</a></p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
96+
<br style="clear: left;" />
97+
</div>
98+
</div>
99+
</div>
100+
101+
<div class="footer-area">
102+
<div class="container footer">
103+
<h2>About</h2>
104+
<a name="about"></a>
105+
<p>Read the <a href="http://top.hatnote.com/en/wikipedia">archive</a>.</p>
106+
<p>A daily list of the most visited Wikipedia articles, generated by <a href="https://twitter.com/sklaporte">Stephen LaPorte</a> and <a href="https://twitter.com/mhashemi">Mahmoud Hashemi</a>. It's also available in <a href="http://top.hatnote.com/about.html">more languages</a>. If you find this list interesting, you will enjoy <a href="http://weekly.hatnote.com">The Weeklypedia</a>, a weekly digest of the most edited Wikipedia articles. Learn more on the <a href="#">Hatnote Blog</a>.</p>
107+
<p>This page was made possible by <a href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\ pageviews_top_project_access_year_month_day">Wikipedia's new page view API</a>, with some nice images and summaries from the <a href="https://www.mediawiki.org/wiki/API:Query">MediaWiki API</a>. You can find more code and documentation <a href="https://github.com/hatnote/top">available on github</a>.</p>
108+
<p>Want to see a list of the most visited articles in another language of Wikipedia? So do we! Please <a href="https://github.com/hatnote/top/issues">send a request</a> and let us know if you can help translate the templates.</p>
109+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
110+
<p><a href="{dir_depth}feeds/{lang}{project_lower}.rss"><img src="{dir_depth}img/feed.png"></a> <a href="#top" class="up">&uarr; Back to top</a></p>
111+
</div>
112+
</div>
113+
114+
<script>
115+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
116+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
117+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
118+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
119+
ga('create', 'UA-40320359-1', 'hatnote.com');
120+
ga('send', 'pageview');
121+
</script>
122+
</body>
123+
</html>

top/templates/ur_index.dust

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>{^is_index}اردو Wikipedia Top 100{:else}اردو Wikipedia Top 100 on {formatted_date}{/is_index}</title>
5+
<script src="{dir_depth}js/jquery.js"></script>
6+
<link href="{dir_depth}css/fonts.css" rel="stylesheet" type="text/css">
7+
<link href="{dir_depth}css/chart.css" rel="stylesheet" type="text/css">
8+
<link href="{dir_depth}feeds/{lang}{project_lower}.rss" title="اردو Wikipedia Top 100" type="application/rss+xml" rel="alternate" />
9+
<script>
10+
11+
$(function() {
12+
13+
});
14+
</script>
15+
</head>
16+
<body dir="rtl">
17+
<div class="top-area">
18+
<div class="top container">
19+
<ul>
20+
<li><a href="#about">About</a></li>
21+
<li><a href="{dir_depth}about.html" id="other-langs">More languages</a></li>
22+
<li><a href="{dir_depth}feeds/{lang}{project_lower}.rss">Feed</a></li>
23+
<li><a href="#">Blog</a></li>
24+
</ul>
25+
</div>
26+
</div>
27+
<div class="header">
28+
<div class="container">
29+
<h1><span class="ultra">Top 100</span></h1>
30+
<p>The most-visited اردو Wikipedia articles, updated daily.</p>
31+
<div class="subtitle light">{?prev}<a class="issue_nav left" href="{dir_depth}{prev}">&larr;</a>{:else}<span class="left issue_nav"></span>{/prev}<p class="center">Available wikis</p>{?next}<a class="issue_nav right" href="{dir_depth}{next}">&rarr;</a>{:else}<span class="right issue_nav"></span>{/next}
32+
<br style="clear: left;" />
33+
</div>
34+
</div>
35+
36+
</div>
37+
38+
<div class="container">
39+
{?months}
40+
<ul>
41+
{#months}
42+
<li><a href="{month}/">{month_name}</a></li>
43+
{/months}
44+
</ul>
45+
{/months}
46+
{?years}
47+
<ul>
48+
{#years}
49+
<li><a href="{.}/">{.}</a></li>
50+
{/years}
51+
</ul>
52+
{/years}
53+
{?projects}
54+
<ul class="projects">
55+
{#projects}
56+
<li><a href="{.}/">{full_lang} {.}</a></li>
57+
{/projects}
58+
</ul>
59+
{/projects}
60+
</table>
61+
</div>
62+
63+
<div class="footer-area">
64+
<div class="container footer">
65+
<h2>About</h2>
66+
<a name="about"></a>
67+
<p>Read the <a href="http://top.hatnote.com/en/wikipedia">archive</a>.</p>
68+
<p>A daily list of the most visited Wikipedia articles, generated by <a href="https://twitter.com/sklaporte">Stephen LaPorte</a> and <a href="https://twitter.com/mhashemi">Mahmoud Hashemi</a>. It's also available in <a href="http://top.hatnote.com/about.html">more languages</a>. If you find this list interesting, you will enjoy <a href="http://weekly.hatnote.com">The Weeklypedia</a>, a weekly digest of the most edited Wikipedia articles. Learn more on the <a href="#">Hatnote Blog</a>.</p>
69+
<p>This page was made possible by <a href="https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_\ pageviews_top_project_access_year_month_day">Wikipedia's new page view API</a>, with some nice images and summaries from the <a href="https://www.mediawiki.org/wiki/API:Query">MediaWiki API</a>. You can find more code and documentation <a href="https://github.com/hatnote/top">available on github</a>.</p>
70+
<p>Want to see a list of the most visited articles in another language of Wikipedia? So do we! Please <a href="https://github.com/hatnote/top/issues">send a request</a> and let us know if you can help translate the templates.</p>
71+
<p><a href="https://twitter.com/hatnotable">@hatnotable</a></p>
72+
<p><a href="#top" class="up">&uarr; Back to top</a></p>
73+
</div>
74+
</div>
75+
76+
<script>
77+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
78+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
79+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
80+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
81+
ga('create', 'UA-40320359-1', 'hatnote.com');
82+
ga('send', 'pageview');
83+
</script>
84+
</body>
85+
</html>

0 commit comments

Comments
 (0)