Template:Archive heading: Difference between revisions

no edit summary
imported>BravelyPeculiar
No edit summary
imported>BravelyPeculiar
No edit summary
Line 1: Line 1:
<h2>{{#vardefine: titleparts |{{#titleparts: {{PAGENAME}} | -1 | 2 }}}}
<h2>{{#vardefine: path_middle |{{#titleparts: {{PAGENAME}} | -1 | 2 }}}}
{{#vardefine: link_text |{{{archive|Content}}}/{{#var: titleparts}}}}
{{#vardefine: link_text |{{{archive|Content}}}/{{#var: path_middle}}}}
{{#if: {{#var: titleparts}} | [[Content/{{#var: titleparts}}#{{#var: link_text}}|{{#var: link_text}}]]|[[{{{archive|Content}}}]]}}/{{SUBPAGENAME}}</h2>
{{#if: {{#var: path_middle}} | [[Content/{{#var: path_middle}}#{{#var: link_text}}|{{#var: link_text}}]]|[[{{{archive|Content}}}]]}}/{{SUBPAGENAME}}</h2>
<noinclude>
<noinclude>
<templatedata>
<templatedata>