Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(4 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>}}<!--  
 
  
--><includeonly>{{#css:
+
--><noinclude>
#siteNotice .crumbs {
 
    display: none;
 
}
 
}}<!--
 
 
 
KATEGORIEN und Attribute
 
 
 
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
 
| [[Kategorie:Artikel]] <!--
 
-->{{#if: {{{1|}}}
 
  | {{#set: thisway links to={{#var:link}}
 
    | written_by={{#if: {{{autor|}}}| {{{autor|}}} | Bernhard Scheid}}
 
    }}
 
  }}<!--
 
-->{{#set:
 
    {{#switch: {{NAMESPACENUMBER}}
 
    | 0= is_mainspace_article
 
    | 4= is_metalog_article
 
    | 12= is help 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.",
 
"format": "block"
 
}
 
</templatedata>
 
 
</noinclude>
 
</noinclude>

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

Code

{{ThisWay| }}