From 82add9ceb3027018c34b55b8b465f623b730aa54 Mon Sep 17 00:00:00 2001 From: Reid <reidyaro@gmail.com> Date: Mon, 19 Sep 2016 18:01:01 +0200 Subject: Update the contributor XSLs. --- contrib_xsl/about-server.xsl | 17 +++++++++-------- contrib_xsl/contributors.xml | 10 +++++----- contrib_xsl/wiki.xsl | 25 +++++++++++++++++++------ 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-- <<Freesound Contributors>> --
</xsl:text> <xsl:text>##3---------------------------

</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>></xsl:text> </xsl:if> - <xsl:text>
</xsl:text> - </xsl:template> - - <xsl:template match="freesoundcontributor"> - <xml:text>##9<xsl:value-of select="@nick"/> </xml:text> - <xsl:text> <</xsl:text> - <xsl:value-of select="@page"/> + <xsl:if test="@page"> + <xsl:text>[@@</xsl:text> + <xsl:value-of select="@page"/> + <xsl:text>|<<</xsl:text> + <xsl:value-of select="@page"/> + <xsl:text>>> </xsl:text> + <xsl:text>@@]</xsl:text> + </xsl:if> <xsl:text>
</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 ^^
</xsl:text> - <xsl:text>^ Nickname ^ Real Name / Email ^
</xsl:text> - - <xsl:apply-templates select="contributor"/> + <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^
</xsl:text> + <xsl:apply-templates/> </xsl:template> <xsl:template match="tmw-ufb"> <xsl:text>^ Unknown Flying Bullet Contributors ^^
</xsl:text> - <xsl:text>^ Nickname ^ Real Name / Email ^
</xsl:text> + <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^
</xsl:text> + <xsl:apply-templates/> + </xsl:template> - <xsl:apply-templates select="contributor"/> + <xsl:template match="freesound"> + <xsl:text>^ Freesound Contributors ^^
</xsl:text> + <xsl:text>^ Nickname ^ Real Name / Email ^ Link ^
</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>
</xsl:text> </xsl:template> -- cgit v1.2.3-70-g09d2