Difference between revisions of "Template:GetTitle"

From Synfig Studio :: Documentation
Jump to: navigation, search
(suppresserrors=true)
(fallback to page name if no title found)
Line 1: Line 1:
 +
{{#ifeq:
 
{{#switch: {{#explode:{{{1}}}|:|0}} |Media|Special|Image={{{1}}}|
 
{{#switch: {{#explode:{{{1}}}|:|0}} |Media|Special|Image={{{1}}}|
 
   {{#ifexist:{{{1}}}
 
   {{#ifexist:{{{1}}}
 
     |
 
     |
 
     {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
 
     {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
       {{#dpl:namespace=Category|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|suppresserrors=true}}
+
       {{#dpl:namespace=Category|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|noresultsheader={{{1}}}}}
 
       | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
 
       | {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}}
         | {{#dpl:namespace=|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|suppresserrors=true}}
+
         | {{#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=,|suppresserrors=true}}
+
         | {{#dpl:namespace={{#explode:{{{1}}}|:|0}}|titlematch={{PagenameFromLink|{{#explode:{{{1}}}|:|-1}}}}|include={Title}.dpl|format=,|noresultsheader={{{1}}}}}
 
         }}
 
         }}
 
     }}
 
     }}

Revision as of 17:46, 13 January 2010

{{#ifeq: {{{1}}}