Vorlage:SiteSub: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
{{#vardefine: namespace  
+
{{#vardefine: namespace | {{#if: {{NAMESPACE}}  
| {{#if: {{NAMESPACE}} |  > {{NAMESPACE}}  }}  
+
|  > {{NAMESPACE}}  }} }}<!--
 +
-->{{#vardefine: page |{{#ifeq: {{PAGENAME}} | {{SUBPAGENAME}}
 +
| > {{PAGENAME}} }} 
 
}}<!--
 
}}<!--
-->{{#vardefine: root  
+
-->{{#vardefine: root |{{#if: {{#var: page}} | <!-- do nothing -->
| {{#ifeq: {{ROOTPAGENAME}} | {{SUBPAGENAME}} |<!-- do nothing -->  
+
| > [[{{#if: {{NAMESPACE}} | {{NAMESPACE}}: }}{{ROOTPAGENAME}}| {{ROOTPAGENAME}}]] }}
|> [[{{#titleparts: {{FULLPAGENAME}} |1 }}|{{ROOTPAGENAME}}]]}}
 
 
}}<!--
 
}}<!--
-->{{#vardefine: v3 | {{#titleparts: {{FULLPAGENAME}} |1 |3}} }}<!--
+
-->{{#vardefine: base |{{#if: {{#var: page}} |  <!-- do nothing -->
 +
| {{#ifeq: {{BASEPAGENAME}} | {{ROOTPAGENAME}} | <!-- do nothing -->
 +
| > [[{{#if: {{NAMESPACE}} | {{NAMESPACE}}: }}{{BASEPAGENAME}}| {{#titleparts:{{BASEPAGENAME}} | 1 | 2 }}]]
 +
}} }} }}<!--
 +
-->{{#vardefine: sub|{{#if: {{#var: page}} |  <!-- do nothing -->
 +
| > {{SUBPAGENAME}} }} }}<!--
  
Schreiben
+
Schreiben:
  
 
--><div id=siteSub3> [[Religion-in-Japan]] <!--
 
--><div id=siteSub3> [[Religion-in-Japan]] <!--
 
-->{{#ifeq: {{PAGENAME}}| Religion-in-Japan |<!-- do nothing -->
 
-->{{#ifeq: {{PAGENAME}}| Religion-in-Japan |<!-- do nothing -->
|{{#var: namespace}} {{#var: root}} > {{SUBPAGENAME}}<!--
+
|{{#var:namespace}} {{#var:page}} {{#var:root}} {{#var:base}} {{#var:sub}}<!--
 
-->}}  
 
-->}}  
 
</div>
 
</div>

Version vom 23. Januar 2019, 22:49 Uhr

Religion-in-Japan > Vorlage > SiteSub