Difference between revisions of "Template:L"

From Synfig Studio :: Documentation
Jump to: navigation, search
(fix bug)
(Template is reimplemented as ParserFunction now.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{PagenameFromLink|{{{1}}}}}/{{#titleparts:{{PAGENAME}}||-1}}|
+
{{#link:{{{1}}}|{{{2|}}}}}
  {{#ifeq:{{#explode:{{{1}}}|#|1}}||
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}/{{#titleparts:{{PAGENAME}}||-1}}|{{{2|{{GetTitle|{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}}}}}}{{#if:{{{3|}}}|{{{!}}}{{{3}}}|}}]]
+
      }}
+
      |
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}/{{#titleparts:{{PAGENAME}}||-1}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}/{{#titleparts:{{PAGENAME}}||-1}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}/{{#titleparts:{{PAGENAME}}||-1}}}}}}}{{#if:{{{3|}}}|{{{!}}}{{{3}}}|}}]]
+
      }}
+
  }}
+
  |
+
  {{#ifeq:{{#explode:{{{1}}}|#|1}}||
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}|{{{2|{{GetTitle|{{{1}}}}}}}}{{#if:{{{3|}}}|{{{!}}}{{{3}}}|}}]]
+
      }}
+
      |
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}}}}}}{{#if:{{{3|}}}|{{{!}}}{{{3}}}|}}]]
+
      }}
+
  }}
+
}}
+

Latest revision as of 12:10, 14 June 2010

[[{{{1}}}|{{{1}}}]]