Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 16: Zeile 16:
 
| [[{{#var:link}}|{{#fas:angle-double-left}} <span>Zurück zu:</span> {{#show: {{#var:link}}|?hat_titel}}]]
 
| [[{{#var:link}}|{{#fas:angle-double-left}} <span>Zurück zu:</span> {{#show: {{#var:link}}|?hat_titel}}]]
 
}} }}<!--
 
}} }}<!--
 +
-->{{#vardefine:color-class
 +
| {{#regex:{{lc:{{FULLPAGENAME}}}}
 +
  |/[^:\/]+/
 +
  }}-tw
 +
}}<!--
 
-->{{#vardefine: class
 
-->{{#vardefine: class
| {{#if: {{{1|}}}| title='zum nächsten Thema' class='textbox_body'
+
| {{#if: {{{1|}}}
| class='zurueck textbox_body' title='zurück zum Hauptartikel'}} }}<!--
+
  | class='thisway {{#var:color-class}}' title='zum nächsten Thema'
-->{{#vardefine: shorttitle
+
  | class='thisway zurueck {{#var:color-class}}' title='zurück zum Hauptartikel'
| {{#titleparts:{{PAGENAME}}| | -1}}  
+
  }}  
}}<!--
+
}}<!--  
  
 
SCHREIBEN
 
SCHREIBEN
  
-->{{#if: {{{noway|}}} |<!-- do nothing-->
+
--><div {{#var:class}} >{{#var:link_markup}}</div><!--  
|<div {{#var:class}} id=thisway>{{#var:link_markup}}<div class=thiswayBg></div></div>
 
}}<!--
 
  
NAVIGATION
+
--><noinclude>
 
 
--><includeonly> {{#ifeq: {{PAGENAME}} | Religion-in-Japan
 
| <!-- do nothing -->
 
| {{Sitemap}}
 
}}<!--
 
 
 
KATEGORIEN
 
 
 
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
 
| [[category:artikel]] {{#if: {{{1|}}} | [[category:Hauptartikel]] | [[category:Sidepage]]}} <!--
 
-->{{#set: thisway links to={{#var:link}}
 
| written_by={{#if: {{{autor|}}}| {{{autor|}}} | Bernhard Scheid}}
 
}}
 
{{#ifeq: {{NAMESPACENUMBER}} | 0
 
| {{#set: is_mainspace_article={{#var:shorttitle}} }}
 
}}
 
{{#ifeq: {{NAMESPACENUMBER}} | 4
 
| {{#set: is_metalog_article={{#var:shorttitle}} }}
 
}} }}</includeonly>
 
<noinclude>
 
 
=== Code ===
 
=== Code ===
  
 
<pre>
 
<pre>
{{ThisWay  
+
{{ThisWay| }}</pre>
|
 
| nocat= 
 
| noway= 
 
| autor=  <!-- nicht BS -->
 
}} </pre>
 
 
 
<templatedata>
 
{
 
"params": {
 
"1": {
 
"description": "link adresse",
 
"type": "string",
 
"autovalue": "Parent-Pagename"
 
},
 
"noway": {
 
"description": "keinen Link anzeigen",
 
"type": "boolean",
 
"autovalue": "0"
 
},
 
"nocat": {
 
"label": "no category",
 
"description": "keine Kategorie hinzufügen",
 
"type": "boolean",
 
"autovalue": "0"
 
},
 
"autor": {
 
"description": "Gastautor",
 
"type": "string"
 
}
 
},
 
"description": "Fügt Weiter-zu Links am Ende des Artikels ein, ist aber auch für das Placement der Navigation am Kopf der Seite verantwortlich",
 
"format": "block"
 
}
 
</templatedata>
 
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 4. Januar 2023, 20:28 Uhr

Code

{{ThisWay| }}