summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-09-19 18:01:01 +0200
committerReid <reidyaro@gmail.com>2016-09-19 18:01:34 +0200
commit82add9ceb3027018c34b55b8b465f623b730aa54 (patch)
tree46b4e2685d5d252211bda7b3526dbd9ac3917fc0
parentc4b98648ee365fcee10fe7b08665bbab3ae3d194 (diff)
downloadevol-tools-82add9ceb3027018c34b55b8b465f623b730aa54.tar.gz
evol-tools-82add9ceb3027018c34b55b8b465f623b730aa54.tar.bz2
evol-tools-82add9ceb3027018c34b55b8b465f623b730aa54.tar.xz
evol-tools-82add9ceb3027018c34b55b8b465f623b730aa54.zip
Update the contributor XSLs.
-rw-r--r--contrib_xsl/about-server.xsl17
-rw-r--r--contrib_xsl/contributors.xml10
-rw-r--r--contrib_xsl/wiki.xsl25
3 files changed, 33 insertions, 19 deletions
diff --git a/contrib_xsl/about-server.xsl b/contrib_xsl/about-server.xsl
index 2d8610f..6059f1a 100644
--- a/contrib_xsl/about-server.xsl
+++ b/contrib_xsl/about-server.xsl
@@ -35,7 +35,7 @@ Copyright (C) 2016 Evol Online -->
<xsl:text>##3-- &lt;&lt;Freesound Contributors&gt;&gt; --&#xa;</xsl:text>
<xsl:text>##3---------------------------&#xa;&#xa;</xsl:text>
- <xsl:apply-templates select="freesoundcontributor"/>
+ <xsl:apply-templates select="contributor"/>
</xsl:template>
<xsl:template match="other">
@@ -60,13 +60,14 @@ Copyright (C) 2016 Evol Online -->
<xsl:value-of select="@mailserver"/>
<xsl:text>&gt;</xsl:text>
</xsl:if>
- <xsl:text>&#xa;</xsl:text>
- </xsl:template>
-
- <xsl:template match="freesoundcontributor">
- <xml:text>##9<xsl:value-of select="@nick"/> </xml:text>
- <xsl:text> &lt;</xsl:text>
- <xsl:value-of select="@page"/>
+ <xsl:if test="@page">
+ <xsl:text>[@@</xsl:text>
+ <xsl:value-of select="@page"/>
+ <xsl:text>|&lt;&lt;</xsl:text>
+ <xsl:value-of select="@page"/>
+ <xsl:text>&gt;&gt; </xsl:text>
+ <xsl:text>@@]</xsl:text>
+ </xsl:if>
<xsl:text>&#xa;</xsl:text>
</xsl:template>
diff --git a/contrib_xsl/contributors.xml b/contrib_xsl/contributors.xml
index 1b4eaa3..39ee81a 100644
--- a/contrib_xsl/contributors.xml
+++ b/contrib_xsl/contributors.xml
@@ -96,11 +96,11 @@ http://wiki.themanaworld.org/index.php/Contributors
</tmw-ufb>
<!-- Freesound Contributors -->
<freesound>
- <freesoundcontributor nick="D W" page="http://freesound.org/people/D%20W/"/>
- <freesoundcontributor nick="beerbelly38" page="http://freesound.org/people/beerbelly38/"/>
- <freesoundcontributor nick="spookymodem" page="http://freesound.org/people/spookymodem/"/>
- <freesoundcontributor nick="Q.K." page="http://freesound.org/people/Q.K./"/>
- <freesoundcontributor nick="SkeetMasterFunk69" page="http://freesound.org/people/SkeetMasterFunk69/"/>
+ <contributor nick="D W" page="http://freesound.org/people/D%20W/"/>
+ <contributor nick="beerbelly38" page="http://freesound.org/people/beerbelly38/"/>
+ <contributor nick="spookymodem" page="http://freesound.org/people/spookymodem/"/>
+ <contributor nick="Q.K." page="http://freesound.org/people/Q.K./"/>
+ <contributor nick="SkeetMasterFunk69" page="http://freesound.org/people/SkeetMasterFunk69/"/>
</freesound>
<!-- Related Communities -->
<other>
diff --git a/contrib_xsl/wiki.xsl b/contrib_xsl/wiki.xsl
index 3fd1566..dcce0a5 100644
--- a/contrib_xsl/wiki.xsl
+++ b/contrib_xsl/wiki.xsl
@@ -14,16 +14,20 @@ Copyright (C) 2016 Evol Online -->
<xsl:template match="evol">
<xsl:text>^ Evol Online Contributors ^^&#xa;</xsl:text>
- <xsl:text>^ Nickname ^ Real Name / Email ^&#xa;</xsl:text>
-
- <xsl:apply-templates select="contributor"/>
+ <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^&#xa;</xsl:text>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="tmw-ufb">
<xsl:text>^ Unknown Flying Bullet Contributors ^^&#xa;</xsl:text>
- <xsl:text>^ Nickname ^ Real Name / Email ^&#xa;</xsl:text>
+ <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^&#xa;</xsl:text>
+ <xsl:apply-templates/>
+ </xsl:template>
- <xsl:apply-templates select="contributor"/>
+ <xsl:template match="freesound">
+ <xsl:text>^ Freesound Contributors ^^&#xa;</xsl:text>
+ <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^&#xa;</xsl:text>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="other">
@@ -68,7 +72,16 @@ Copyright (C) 2016 Evol Online -->
<xsl:text> |</xsl:text>
</xsl:otherwise>
</xsl:choose>
-
+ <xsl:choose>
+ <xsl:when test="@page">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@page"/>
+ <xsl:text> |</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text> No Data |</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text>&#xa;</xsl:text>
</xsl:template>