MediaWiki:RC.xsl: Difference between revisions

From Calidus HUB
(Initial Creation)
 
m (Minor formatting change)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
   <xsl:template match="api/query/recentchanges">
   <xsl:template match="api/query/recentchanges">
     <html>
     <html>
<head>
<style>
body {
    font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
}
table {
    border-collapse: collapse;
}
table thead tr {
    background-color: grey;
    color: white;
}
table tbody tr {
    vertical-align: top;
}
</style>
</head>
       <body>
       <body>
         <h2>Recent Changes</h2>
         <h2>Recent Changes</h2>

Latest revision as of 11:36, 22 September 2025

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:output method="html" indent="yes"/>
 <xsl:template match="api/query/recentchanges">
   <html>

<head> <style> body {

   font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif;
   margin: 0;
   padding: 0;

} table {

   border-collapse: collapse;

} table thead tr {

   background-color: grey;
   color: white;

} table tbody tr {

   vertical-align: top;

} </style> </head>

     <body>

Recent Changes

<thead> <xsl:for-each select="rc[1]/@*">
             </xsl:for-each>
</thead> <tbody> <xsl:for-each select="rc"> <xsl:for-each select="@*">
               </xsl:for-each>
</xsl:for-each> </tbody>
<xsl:value-of select="name()"/>
<xsl:value-of select="."/>
     </body>
   </html>
 </xsl:template>

</xsl:stylesheet>