Difference between revisions of "Template:L"

From Synfig Studio :: Documentation
Jump to: navigation, search
(support for "hash" sign in links)
(Template is reimplemented as ParserFunction now.)
 
(4 intermediate revisions 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}}}}}}}]]
+
      }}
+
      |
+
      {{#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}}}}}}}]]
+
      }}
+
  }}
+
  |
+
  {{#ifeq:{{#explode:{{{1}}}|#|1}}||
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
      }}
+
      |
+
      {{#ifeq:{{#pos:{{PagenameFromLink|{{{1}}}}}|Category:}}|0|
+
        [[:{{PagenameFromLink|{{{1}}}}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
        |
+
        [[{{PagenameFromLink|{{{1}}}}}#{{#explode:{{{1}}}|#|1}}|{{{2|{{GetTitle|{{{1}}}}}}}}]]
+
      }}
+
  }}
+
}}
+

Latest revision as of 12:10, 14 June 2010

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