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

From Creative Commons
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[User:Cga]]
 +
[[User:CCeditman]]
 +
 +
 
<!--
 
<!--
 +
 +
#  create array with all existing languages
 +
 
-->{{#arraydefine:lang
 
-->{{#arraydefine:lang
       |{{#ask:[[Has language::+]]
+
       |{{lc:{{#ask:[[Has language::+]]
 
         | ?Has language=
 
         | ?Has language=
        | sort=Has language
 
 
         | mainlabel=-
 
         | mainlabel=-
        | order = ascending
 
        | link = none
 
 
         | searchlabel=
 
         | searchlabel=
 
         | limit=10000
 
         | limit=10000
       }}
+
       }}}}
 
       |,
 
       |,
 
       |unique
 
       |unique
 
   }}<!--
 
   }}<!--
-->{{#arrayprint:lang|<br />|@@lang|<!--
+
-->{{#arraysort:lang|asc}}<!--
 +
 
 +
-->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
 +
 
 +
-->{{#arrayprint:lang||@@lang|<!--
 +
 
 +
#    print the section header
 +
 
 
   --><h3>{{#language:@@lang}} <small>(@@lang)</small></h3><!--
 
   --><h3>{{#language:@@lang}} <small>(@@lang)</small></h3><!--
  
  -->Articles that require synchronisation:<br /><!--
+
#    show translations out of synch with their original
   -->{{#arraydefine:pop
+
 
 +
   -->{{#arraydefine:synch
 
         |{{#ask:[[Has language::@@lang]] [[Translated from::+]] [[Translated from revision::+]]
 
         |{{#ask:[[Has language::@@lang]] [[Translated from::+]] [[Translated from revision::+]]
 
             | link = none
 
             | link = none
Line 26: Line 45:
 
         |unique
 
         |unique
 
       }}<!--
 
       }}<!--
 +
 +
  -->Translations that require synchronisation with the original:<br /><!--
 
   --><ul><!--
 
   --><ul><!--
   -->{{#arrayprint:pop||@@pop|<!--
+
   -->{{#arrayprint:synch||@@synch|<!--
       -->{{#iferror: {{#expr: {{#ask:[[:@@pop]]|?Translated from revision=}} < <!--
+
 
                        -->{{#ask:{{#ask:[[:@@pop]]|?Translated from=}}|?Last revision=}}<!--
+
       -->{{#iferror: {{#expr: {{#ask:[[:@@synch]]|?Translated from revision=}} < <!--
 +
                    -->{{#ask:{{#ask:[[:@@synch]]|?Translated from=}}|?Last revision=}}<!--
 
                   -->}}<!--
 
                   -->}}<!--
 
         -->|<!--
 
         -->|<!--
         -->|{{#ifexpr: {{#ask:[[:@@pop]]|?Translated from revision=}} < <!--
+
         -->|{{#ifexpr: {{#ask:[[:@@synch]]|?Translated from revision=}} < <!--
             -->{{#ask:{{#ask:[[:@@pop]]|?Translated from=}}|?Last revision=}}<!--
+
             -->{{#ask:{{#ask:[[:@@synch]]|?Translated from=}}|?Last revision=}}<!--
             -->| <li> [[:@@pop]] <!--
+
             -->| <li> [[:@@synch]] <!--
                       - {{#ask:[[:@@pop]]|?Translated from=}}, <!--
+
                       - {{#ask:[[:@@synch]]|?Translated from=}}, <!--
                       {{#ask:[[:@@pop]]|?Translated from revision=}}, <!--
+
                       {{#ask:[[:@@synch]]|?Translated from revision=}}, <!--
                       {{#ask:{{#ask:[[:@@pop]]|?Translated from=}}|?Last revision=}}, <!--
+
                       {{#ask:{{#ask:[[:@@synch]]|?Translated from=}}|?Last revision=}}, <!--
                   -->{{{{Translation of|Template:Diff since trans|@@pop}}<!--
+
                   -->{{{{Translation of|Template:Diff since trans|@@synch}}<!--
                       -->|source={{#ask:[[:@@pop]]|?Translated from=}}<!--
+
                       -->|source={{#ask:[[:@@synch]]|?Translated from=}}<!--
                       -->|rev={{#ask:[[:@@pop]]|?Translated from revision=}}<!--
+
                       -->|rev={{#ask:[[:@@synch]]|?Translated from revision=}}<!--
 
                   -->}}<!--
 
                   -->}}<!--
 
             -->|<!--
 
             -->|<!--
 
           -->}}<!--
 
           -->}}<!--
 
       -->}}<!--
 
       -->}}<!--
 +
 
   -->}}<!--
 
   -->}}<!--
 
   --></ul><!--
 
   --></ul><!--
 +
  -->{{#arrayreset:synch}}<!--
 +
 +
#    show translations with categories in other languages
 +
 +
  -->{{#arraydefine:cat
 +
        |{{#ask:[[Has language::@@lang]][[Category::+]]
 +
            | link = none
 +
            | searchlabel=
 +
            | limit=10000
 +
          }}
 +
        |,
 +
        |unique
 +
      }}<!--
 +
 +
  -->Pages in categories of other languages:<br /><!--
 +
  --><ul><!--
 +
{{#arrayprint:cat||@@cat|<!--
 +
<li> [[:@@cat]], {{#ask:[[@@cat]]|?Category=|link=none}}<!--
 +
}}<!--
 +
  --></ul><!--
 +
 
-->}}
 
-->}}
  

Latest revision as of 02:41, 5 December 2013

User:Cga User:CCeditman


{{#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