MediaWiki r43999 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r43998‎ | r43999 (on ViewVC)‎ | r44000 >
Date:19:42, 27 November 2008
Author:jhsoby
Status:reverted
Tags:
Comment:
This is a test, to see if it is possible to have several interface languages for one Planet; will delete again shortly.
Modified paths:

Diff [purge]

Index: trunk/tools/planet/de/templates/index.nb.html.tmpl
===================================================================
--- trunk/tools/planet/de/templates/index.nb.html.tmpl	(revision 0)
+++ trunk/tools/planet/de/templates/index.nb.html.tmpl	(revision 43999)
@@ -0,0 +1,159 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

+<html>

+

+### Fancy Planet HTML template.

+### 

+### When combined with the stylesheet and images in the output/ directory

+### of the Planet source, this gives you a much prettier result than the

+### default examples template and demonstrates how to use the config file

+### to support things like faces

+### 

+### For documentation on the more boring template elements, see

+### examples/config.ini and examples/index.html.tmpl in the Planet source.

+

+<head>

+<title><TMPL_VAR name></title>

+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

+<meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">">

+<link rel="stylesheet" href="planet.css" type="text/css">

+<TMPL_IF feedtype>

+<link rel="alternate" href="<TMPL_VAR feed ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">" type="application/<TMPL_VAR feedtype>+xml">

+</TMPL_IF>

+</head>

+

+<body>

+<h1><TMPL_VAR name></h1>

+

+<TMPL_LOOP Items>

+<TMPL_IF new_date>

+<TMPL_UNLESS __FIRST__>

+### End <div class="channelgroup">

+</div>

+### End <div class="daygroup">

+</div>

+</TMPL_UNLESS>

+<div class="daygroup">

+<h2><TMPL_VAR new_date></h2>

+</TMPL_IF>

+

+<TMPL_IF new_channel>

+<TMPL_UNLESS new_date>

+### End <div class="channelgroup">

+</div>

+</TMPL_UNLESS>

+<div class="channelgroup">

+

+### Planet provides template variables for *all* configuration options for

+### the channel (and defaults), even if it doesn't know about them.  We

+### exploit this here to add hackergotchi faces to our channels.  Planet

+### doesn't know about the "face", "facewidth" and "faceheight" configuration

+### variables, but makes them available to us anyway.

+

+<h3><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">"><TMPL_VAR channel_name></a></h3>

+<TMPL_IF channel_face>

+<img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt="">

+</TMPL_IF>

+</TMPL_IF>

+

+

+<div class="entrygroup" id="<TMPL_VAR id>"<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>>

+<TMPL_IF title>

+<h4<TMPL_IF title_language> lang="<TMPL_VAR title_language>"</TMPL_IF>><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></h4>

+</TMPL_IF>

+<div class="entry">

+<div class="content"<TMPL_IF content_language> lang="<TMPL_VAR content_language>"</TMPL_IF>>

+<TMPL_VAR content>

+</div>

+

+### Planet also makes available all of the information from the feed

+### that it can.  Use the 'planet-cache' tool on the cache file for

+### a particular feed to find out what additional keys it supports.

+### Comment extra fields are 'author' and 'category' which we

+### demonstrate below.

+

+<p class="date">

+<a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF author>von <TMPL_VAR author> - </TMPL_IF><TMPL_VAR date><TMPL_IF category> unter <TMPL_VAR category></TMPL_IF></a>

+</p>

+</div>

+</div>

+

+<TMPL_IF __LAST__>

+### End <div class="channelgroup">

+</div>

+### End <div class="daygroup">

+</div>

+</TMPL_IF>

+</TMPL_LOOP>

+

+

+<div class="sidebar">

+<img src="images/logo.png" width="135" height="135" alt="">

+<h2>Abonner</h2>

+<ul><li>

+<a href="/atom.xml">atom feed</A></li>

+<li><a href="/rss10.xml">rss 1.0</A></li>

+<li><a href="/rss20.xml">rss 2.0</a></li>

+</ul>

+

+<h2>Om</h2>

+

+<I>

+Planet Wikimedia er en oversikt over bloggposter av wikimedianere om wikier. <a href="http://meta.wikimedia.org/wiki/Planet_Wikimedia">Mer informasjon</A>

+</I>

+

+<h2>Bloggere</h2>

+<ul>

+<TMPL_LOOP Channels>

+<li>

+<a href="<TMPL_VAR url ESCAPE="HTML">" title="subscribe"><img src="images/feed-icon-10x10.png" alt="(feed)"></a> <a <TMPL_IF link>href="<TMPL_VAR link ESCAPE="HTML">" </TMPL_IF><TMPL_IF message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR name></a>

+</li>

+</TMPL_LOOP>

+</ul>

+<P>

+<strong><a href="http://meta.wikimedia.org/wiki/Planet_Wikimedia">Legg til din blogg</A> &ndash; <a href="http://meta.wikimedia.org/wiki/Planet_Wikimedia/New_language">Foreslå nytt språk</A></strong>

+</P>

+<p>

+<strong>Sist oppdatert:</strong><br>

+<TMPL_VAR date><br>

+<em>Alle tider i UTC.</em><br>

+<br>

+Software:<br>

+<a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a>

+</p>

+<P>

+<H2>Forbehold</H2>
+
+Planet Wikimedia opereres av <a href="http://wikimediafoundation.org/">Wikimedia Foundation</a> med det formål å tilrettelegge for deling av informasjon og meninger mellom Wikimedias bidragsytere. Innsamlinga av poster fra diverse blogger er en datastyrt prosess, og Wikimedia Foundation kan ikke holdes ansvarlig for innholdet i bloggpostene.

+</P>

+<p>

+<h2>Planetarium</h2>

+<ul>

+<li><a href="http://wikiblogplanet.com/">Wiki Blog Planet</a></li>

+<li><a href="http://www.planetapache.org/">Planet Apache</a></li>

+<li><a href="http://planet.debian.net/">Planet Debian</a></li>

+<li><a href="http://planet.freedesktop.org/">Planet freedesktop.org</a></li>

+<li><a href="http://planet.gnome.org/">Planet GNOME</a></li>

+<li><a href="http://planetsun.org/">Planet Sun</a></li>

+<li><a href="http://fedora.linux.duke.edu/fedorapeople/">Fedora People</a></li>

+<li><a href="http://www.planetplanet.org/">mer...</a></li>

+</ul>

+</p>

+<p>

+<h2>Språk</h2>

+<ul>

+<li><a href="http://ar.planet.wikimedia.org">العربية</a></li>

+<li><a href="http://cs.planet.wikimedia.org">Česky</a></li>
+<li><a href="http://de.planet.wikimedia.org">Deutsch</a></li>

+<li><a href="http://en.planet.wikimedia.org">English</a></li>

+<li><a href="http://fr.planet.wikimedia.org">Français</a></li>

+<li><a href="http://pl.planet.wikimedia.org">Polski</a></li>

+<li><a href="http://pt.planet.wikimedia.org">Português</a></li>

+<li><a href="http://ru.planet.wikimedia.org">Русский</a></li>

+<li><a href="http://sr.planet.wikimedia.org">Српски / Srpski</a></li>

+<li><a href="http://zh.planet.wikimedia.org">中文</a></li>

+</ul>

+</p>

+</div>

+</body>

+

+</html>

Status & tagging log

Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox