Difference between revisions of "Template:Translations/code"

From Creative Commons
Jump to: navigation, search
Line 7: Line 7:
 
         <td style="padding-right:10px; padding-top:4px; padding-bottom:4px;"><!--
 
         <td style="padding-right:10px; padding-top:4px; padding-bottom:4px;"><!--
 
         -->{{#if: {{{articles|}}}
 
         -->{{#if: {{{articles|}}}
               | {{#arraydefine:a|{{#arraymap:{{{articles|}}},{{FULLPAGENAME}}|,|@@@@| <span style="display:none">{{#language:{{#ask:[[:@@@@]]|?Has language#=}}}} </span>[[:@@@@ | {{#language: {{#ask:[[:@@@@]]|?Has language#=}} }}]]}}|,|unique,sort=asc}}{{#arrayprint:a|&nbsp;&nbsp;'''&bull;'''&nbsp;&#32;|@@@@|@@@@}}{{#arrayreset:a}}<!--
+
               | {{#arraydefine:a<!--
 +
              -->|{{#arraymap:{{{articles|}}},{{FULLPAGENAME}}|,|@@@@<!--
 +
#                      prefix an artificial sort key, to fix sort (must end in " \n")
 +
                  -->| {{#language:{{Language code of page|@@@@}}}} \n<!--
 +
                    -->[[:@@@@|{{#language:{{Language code of page|@@@@}}}}]]<!--
 +
                -->}}<!--
 +
              -->|,<!--
 +
              -->|unique,sort=asc<!--
 +
            -->}}<!--
 +
            -->{{#arrayprint:a<!--
 +
              -->|&nbsp;&nbsp;'''&bull;'''&nbsp;&#32;<!--
 +
              -->|@@@@<!--
 +
#                  now remove the artificial sort key (inserted above)
 +
              -->|{{#explode:@@@@|\n|1}}<!--
 +
            -->}}<!--
 +
            -->{{#arrayreset:a}}<!--
 
           -->| {{{message-no-known-translations|}}}
 
           -->| {{{message-no-known-translations|}}}
 
                 [[{{Translation of|Category:Untranslated}}]]
 
                 [[{{Translation of|Category:Untranslated}}]]
 
             }}<!--
 
             }}<!--
       --></td><!--
+
       --></td>
  --></tr>
+
      </tr>
 
   </table><!--
 
   </table><!--
 
-->{{Assign property Last revision|{{REVISIONID}}}}<!--
 
-->{{Assign property Last revision|{{REVISIONID}}}}<!--

Revision as of 09:04, 28 April 2011

This is the code page for Template:Translations. Please refer to that template for instructions.