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

From Creative Commons
Jump to: navigation, search
Line 13: Line 13:
 
       |unique
 
       |unique
 
   }}<!--
 
   }}<!--
-->{{#arrayprint:lang|<br />|@@lang|<!--
+
-->{{#arrayprint:lang||@@lang|<!--
 
   --><h3>{{#language:@@lang}} <small>(@@lang)</small></h3><!--
 
   --><h3>{{#language:@@lang}} <small>(@@lang)</small></h3><!--
  
   -->Articles that require synchronisation:<br /><!--
+
   -->Translations that require synchronisation with the original:<br /><!--
   -->{{#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 27: Line 27:
 
       }}<!--
 
       }}<!--
 
   --><ul><!--
 
   --><ul><!--
   -->{{#arrayprint:pop||@@pop|<!--
+
   -->{{#arrayprint:synch||@@synch|<!--
       -->{{#iferror: {{#expr: {{#ask:[[:@@pop]]|?Translated from revision=}} < <!--
+
       -->{{#iferror: {{#expr: {{#ask:[[:@@synch]]|?Translated from revision=}} < <!--
                         -->{{#ask:{{#ask:[[:@@pop]]|?Translated from=}}|?Last 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=}}<!--
 
                   -->}}<!--
 
                   -->}}<!--
 
             -->|<!--
 
             -->|<!--
Line 47: Line 47:
 
   -->}}<!--
 
   -->}}<!--
 
   --></ul><!--
 
   --></ul><!--
 +
 +
  -->Pages in categories of other languages:<br /><!--
 +
  -->{{#arraydefine:cat
 +
        |{{#ask:[[Has language::@@lang]][[Category::+]]
 +
            | link = none
 +
            | searchlabel=
 +
            | limit=10000
 +
          }}
 +
        |,
 +
        |unique
 +
      }}<!--
 +
  --><ul><!--
 +
  -->{{#arrayprint:cat||@@cat|<!--
 +
      --><li> [[:@@cat]], {{#ask:[[@@cat]]|?Category=|link=none}}<!--
 +
  -->}}<!--
 +
  --></ul><!--
 +
 
-->}}
 
-->}}
  

Revision as of 03:00, 2 May 2011

{{#arraydefine:lang

     |{{#ask:Has language::+
        | ?Has language=
        | sort=Has language
        | mainlabel=-
        | order = ascending
        | link = none
        | searchlabel=
        | limit=10000
      }}
     |,
     |unique

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

@@lang (@@lang)

Translations that require synchronisation with the original:
{{#arraydefine:synch

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

}}

  • {{#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=}}}}|}}}}}}

Pages in categories of other languages:
{{#arraydefine:cat

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

}}

  • {{#arrayprint:cat||@@cat|
  • @@cat, {{#ask:@@cat|?Category=|link=none}}}}

}}


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