Difference between revisions of "Template:GetTitle"

From Synfig Studio :: Documentation
Jump to: navigation, search
(fix output format)
(Undo revision 11290 by Zelgadis (Talk) (wrong window ^_^''''))
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
+
{{#switch: {{#explode:{{{1}}}|:|0}} |Media|Special|Image={{{1}}}|
  {{#dpl:namespace=Category|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
  {{#ifexist:{{{1}}}
  | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
+
    |
    | {{#dpl:titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
    {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
    | {{#dpl:namespace={{#explode:{{{1}}}|:|0}}|titlematch={{#explode:{{{1}}}|:|-1}}|include={Title}.dpl|format=,}}
+
      {{#dpl:namespace=Category|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|noresultsheader={{{1}}}}}
 +
      | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
 +
        | {{#dpl:namespace=|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|noresultsheader={{{1}}}}}
 +
        | {{#dpl:namespace={{#explode:{{{1}}}|:|0}}|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|noresultsheader={{{1}}}}}
 +
        }}
 
     }}
 
     }}
 +
    | {{{1}}}
 +
  }}
 
}}
 
}}

Latest revision as of 18:25, 27 January 2010

{{{1}}}