Difference between revisions of "Template:GetTitle"

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

Revision as of 07:45, 7 September 2009

{{{1}}}