Difference between revisions of "Template:L"

From Synfig Studio :: Documentation
Jump to: navigation, search
(use GetTitle template)
(simplify function)
Line 1: Line 1:
 
{{#ifexist:{{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}} ||{{#explode:{{{1}}}|:|0}}:}}{{#explode:{{{1}}}|:|-1}}/{{#titleparts:{{PAGENAME}}||-1}}|
 
{{#ifexist:{{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}} ||{{#explode:{{{1}}}|:|0}}:}}{{#explode:{{{1}}}|:|-1}}/{{#titleparts:{{PAGENAME}}||-1}}|
 
   {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}} |
 
   {{#ifeq: {{#explode:{{{1}}}|:|-1}} | {{{1}}} |
   [[{{#explode:{{{1}}}|:|-1}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]|
+
   [[{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}/{{#titleparts:{{PAGENAME}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]|
 
   {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
 
   {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|
     [[:Category:{{#explode:{{{1}}}|:|-1}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]|
+
     [[:{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]|
     [[{{#explode:{{{1}}}|:|0}}:{{#explode:{{{1}}}|:|-1}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]}}
+
     [[{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}}}}}}/{{#titleparts:{{PAGENAME}}||-1}}]]}}
 
   }}|
 
   }}|
 
   {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]}}
 
   {{#ifeq: {{#sub:{{{1}}}|0|10}}|:Category:|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]}}
 
}}
 
}}

Revision as of 07:51, 7 September 2009

{{#ifexist:{{{1}}}/L|

 {{#ifeq: {{{1}}} | {{{1}}} |
 [[{{{1}}}/L|{Template:2|
 [[{{{1}}}|{{{1}}}]]

}}