Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
(18 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>
+
<!--
===Code ===
 
 
 
<nowiki>{{ThisWay
 
<!-- optional: -->
 
| <!-- pagename -->
 
| nocat= 1 <!-- keine Kategorien -->
 
| noway= 1 <!-- kein Thisway-Link -->
 
}} </nowiki>
 
</noinclude><!--
 
------------
 
  
 
VARIABLE
 
VARIABLE
Zeile 23: Zeile 13:
 
-->{{#vardefine: link_markup
 
-->{{#vardefine: link_markup
 
| {{#if: {{{1|}}}
 
| {{#if: {{{1|}}}
| [[{{{1|}}}|{{#show: {{{1|}}}|?hat_titel}} {{#fas:angle-double-right}}]]
+
| [[{{{1|}}}|<span>Weiter zu:</span> {{#show: {{{1|}}}|?hat_titel}} &nbsp;{{#fas:angle-double-right}}]]
| [[{{#var:link}}|{{#fas:angle-double-left}} {{#show: {{#var:link}}|?hat_titel}}]]
+
| [[{{#var:link}}|{{#fas:angle-double-left}} <span>Zurück zu:</span> {{#show: {{#var:link}}|?hat_titel}}]]
 
}} }}<!--
 
}} }}<!--
 
-->{{#vardefine: class
 
-->{{#vardefine: class
| {{#if: {{{1|}}}|  title='zum nächsten Thema'
+
| {{#if: {{{1|}}}|  title='zum nächsten Thema' class='textbox_body'
| class='zurueck' title='zurück zum Hauptartikel'}} }}<!--  
+
| class='zurueck textbox_body' title='zurück zum Hauptartikel'}} }}<!--  
 
-->{{#vardefine: shorttitle
 
-->{{#vardefine: shorttitle
 
| {{#titleparts:{{PAGENAME}}| | -1}}  
 
| {{#titleparts:{{PAGENAME}}| | -1}}  
Zeile 36: Zeile 26:
  
 
-->{{#if: {{{noway|}}} |<!-- do nothing-->
 
-->{{#if: {{{noway|}}} |<!-- do nothing-->
|<div class='toparrow'>[[#top|top]]</div><!--
+
|<div {{#var:class}} id=thisway>{{#var:link_markup}}</div>
--><div {{#var:class}} id=thisway>{{#var:link_markup}}</div>
+
}}<!--  
 +
 
 +
--><includeonly>{{#css:
 +
#siteNotice .crumbs {
 +
    display: none;
 +
}
 
}}<!--
 
}}<!--
  
NAVIGATION
+
KATEGORIEN und Attribute
  
--><includeonly> {{#ifeq: {{PAGENAME}} | Religion-in-Japan
+
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
| <!-- do nothing -->
+
| [[Kategorie:Artikel]] <!--
| {{Sitemap}}  
+
-->{{#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 ===
  
KATEGORIEN
+
<pre>
 +
{{ThisWay
 +
 +
| nocat= 
 +
| noway= 
 +
| autor=  <!-- nicht BS -->
 +
}} </pre>
  
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
+
<templatedata>
| [[category:artikel]] {{#if: {{{1|}}} | [[category:Hauptartikel]] | [[category:Sidepage]]}} <!--
+
{
-->{{#set: thisway links to={{#var:link}}
+
"params": {
| written_by={{#if: {{{autor|}}}| {{{autor|}}} | Bernhard Scheid}}
+
"1": {
}}
+
"description": "link adresse",
{{#ifeq: {{NAMESPACENUMBER}} | 0
+
"type": "string",
| {{#set: is_mainspace_article={{#var:shorttitle}} }}
+
"autovalue": "Parent-Pagename"
}} }}</includeonly>
+
},
 +
"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>

Version vom 4. April 2022, 21:27 Uhr

Code

{{ThisWay 
|  
| nocat=  
| noway=  
| autor=  <!-- nicht BS -->
}} 

Fügt Weiter-zu Links am Ende des Artikels ein.

Vorlagenparameter

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterBeschreibungTypStatus
11

link adresse

Autowert
Parent-Pagename
Zeichenfolgeoptional
Nowaynoway

keinen Link anzeigen

Autowert
0
Booleschoptional
no categorynocat

keine Kategorie hinzufügen

Autowert
0
Booleschoptional
Autorautor

Gastautor

Zeichenfolgeoptional