Difference between revisions of "Template:GetTitle"

From Synfig Studio :: Documentation
Jump to: navigation, search
(parse nonexisting pages)
(Ignore dynamic namespaces)
Line 1: Line 1:
{{#ifexist:{{{1}}}
+
{{#switch: {{#explode:{{{1}}}|:|0}} |Media|Special|File={{{1}}}|
   |
+
   {{#ifexist:{{{1}}}
  {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
+
    |
    {{#dpl:namespace=Category|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
    {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
    | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
+
      {{#dpl:namespace=Category|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
      | {{#dpl:titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
      | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
      | {{#dpl:namespace={{#explode:{{{1}}}|:|0}}|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
        | {{#dpl:titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
      }}
+
        | {{#dpl:namespace={{#explode:{{{1}}}|:|0}}|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
 +
        }}
 +
    }}
 +
    | {{{1}}}
 
   }}
 
   }}
  | {{{1}}}
 
 
}}
 
}}

Revision as of 11:39, 7 September 2009

{{{1}}}