Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 23: Zeile 23:
 
-->{{#vardefine: class
 
-->{{#vardefine: class
 
| {{#if: {{{1|}}}
 
| {{#if: {{{1|}}}
   | title='zum nächsten Thema' class='textbox_body {{#var:color-class}}'
+
   | class='thisway {{#var:color-class}}' title='zum nächsten Thema'
   | class='zurueck textbox_body {{#var:color-class}}' title='zurück zum Hauptartikel'
+
   | class='thisway zurueck {{#var:color-class}}' title='zurück zum Hauptartikel'
 
   }}  
 
   }}  
 
}}<!--  
 
}}<!--  
-->{{#vardefine: shorttitle
 
| {{#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| }}