Difference between revisions of "User:Hamilton Abreu/Tests"

From Creative Commons
Jump to: navigation, search
Line 15: Line 15:
 
-->{{#arraysort:lang|asc}}<!--
 
-->{{#arraysort:lang|asc}}<!--
  
-->Currently there are translations in {{#arraysize:lang}} languages: {{#arrayprint:lang|, |@@lang|{{#language:@@lang}} (@@lang)}}.<!--
+
-->Currently there are translations in {{#arraysize:lang}} languages:
 +
  <ol>
 +
  {{#arrayprint:lang||@@lang|<!--
 +
  --><li>[[#{{#language:@@lang}} (@@lang)|{{#language:@@lang}} <small>(@@lang)</small>]] ({{#ask:[[Has language::@@lang]]|format=count}})<!--
 +
-->}}
 +
  </ol><!--
  
 
#  for each language
 
#  for each language

Revision as of 14:05, 2 May 2011

{{#arraydefine:lang

     |{{#ask:has language::+
        | ?has language=
        | mainlabel=-
        | searchlabel=
        | limit=10000
      }}
     |,
     |unique
  }}{{#arraysort:lang|asc}}Currently there are translations in {{#arraysize:lang}} languages:
  1. {{#arrayprint:lang||@@lang|
  2. @@lang (@@lang) ({{#ask:Has language::@@lang|format=count}})}}

{{#arrayprint:lang||@@lang|

@@lang (@@lang)

{{#arraydefine:synch

        |{{#ask:Has language::@@lang Translated from::+ Translated from revision::+
           | link = none
           | searchlabel=
           | limit=10000
         }}
        |,
        |unique

}}Translations that require synchronisation with the original:

  • {{#arrayprint:synch||@@synch|{{#iferror: {{#expr: {{#ask:@@synch|?Translated from revision=}} < {{#ask:{{#ask:@@synch|?Translated from=}}|?Last revision=}}}}||{{#ifexpr: {{#ask:@@synch|?Translated from revision=}} < {{#ask:{{#ask:@@synch|?Translated from=}}|?Last revision=}}|
  • @@synch {{{{#if: Template:Diff since trans | {{#if: {{#ask:@@synch|?Has language=}} | {{#if: {{#ask: Translated from::Template:Diff since trans [[Has language::{{#show: @@synch | ?Has language = | link=none}}]] }} | {{#ask: Translated from::Template:Diff since trans [[Has language::{{#show: @@synch | ?Has language = | link=none}}]] | link=none }} | Template:Diff since trans }} | Template:Diff since trans }} }}|source={{#ask:@@synch|?Translated from=}}|rev={{#ask:@@synch|?Translated from revision=}}}}|}}}}}}

{{#arrayreset:synch}}{{#arraydefine:cat

        |{{#ask:Has language::@@lang[[Category::+]]
           | link = none
           | searchlabel=
           | limit=10000
         }}
        |,
        |unique

}}Pages in categories of other languages:
}}


Query elements
[[:+]] only pages in the main namespace
[[User:+]] only pages in the User namespace
[[File:+]] only pages in the File namespace
[[:Category:+]] only pages in the Category namespace
[[:Category:+||User:+]] only pages in the Category and User namespaces