Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
(75 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<!--------------
+
<!--
  
 
VARIABLE
 
VARIABLE
  
 +
-->{{#vardefine: defaultlink
 +
| {{#ifeq: {{NAMESPACENUMBER}}| 0
 +
| {{BASEPAGENAME}}
 +
| {{NAMESPACE}}:{{BASEPAGENAME}}
 +
}} }}<!--
 
-->{{#vardefine: link  
 
-->{{#vardefine: link  
| {{{1|{{#ifeq: {{NAMESPACENUMBER}}| 0
+
| {{#if: {{{1|}}} | {{{1|}}} | {{#var:defaultlink}} }}  
| {{BASEPAGENAME}}  
 
| {{NAMESPACE}}:{{BASEPAGENAME}} }} }}}  
 
 
}}<!--
 
}}<!--
 +
-->{{#vardefine: link_markup
 +
| {{#if: {{{1|}}}
 +
| [[{{{1|}}}|<span>Weiter zu:</span> {{#show: {{{1|}}}|?hat_titel}} &nbsp;{{#fas:angle-double-right}}]]
 +
| [[{{#var:link}}|{{#fas:angle-double-left}} <span>Zurück zu:</span> {{#show: {{#var:link}}|?hat_titel}}]]
 +
}} }}<!--
 
-->{{#vardefine: class
 
-->{{#vardefine: class
| {{#if: {{{1|}}}||class=zurueck}} }}<!--
+
| {{#if: {{{1|}}}| title='zum nächsten Thema' class='textbox_body'
-------------------------
+
| class='zurueck textbox_body' title='zurück zum Hauptartikel'}} }}<!--  
        NAVIGATION
+
-->{{#vardefine: shorttitle
-------------------------
+
| {{#titleparts:{{PAGENAME}}| | -1}}  
-->{{#vardefine: navigation
 
| {{Metalog:Sitemap}}
 
 
}}<!--
 
}}<!--
  
 
SCHREIBEN
 
SCHREIBEN
  
--><div {{#var:class}} id=thisway><!--
+
-->{{#if: {{{noway|}}} |<!-- do nothing-->
-->{{#if: {{{1|}}}
+
|<div {{#var:class}} id=thisway>{{#var:link_markup}}</div>
|{{{2|{{{Weiter|Weiter}}} }}} zu}} [[{{#var:link}}]] {{#if: {{{1|}}}|| (zurück zum Hauptartikel)
+
}}<!--  
}}
+
 
</div>
+
--><includeonly>{{#css:
{{#if: {{{nocat|}}} | <!-- do nothing -->
+
#siteNotice .crumbs {
| {{#if: {{{1|}}} | [[Kategorie:Hauptartikel]] | [[Kategorie:Sidepage]]}}
+
    display: none;
 +
}
 
}}<!--
 
}}<!--
--><div id="nv">
 
<div id="chapters">
 
{{#var: navigation}}
 
</div><!--
 
Suche
 
--><div class=s-background></div>
 
</div><!--
 
  
TAGLINE
+
KATEGORIEN und Attribute
  
-->{{#vardefine: v1 | {{#titleparts: {{FULLPAGENAME}} |1 |1}} }}<!--
+
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
-->{{#vardefine: v2 | {{#titleparts: {{FULLPAGENAME}} |1 |2}} }}<!--
+
| [[Kategorie:Artikel]] <!--
-->{{#vardefine: v3 | {{#titleparts: {{FULLPAGENAME}} |1 |3}} }}<!--
+
-->{{#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 ===
  
Schreiben
+
<pre>
 +
{{ThisWay
 +
 +
| nocat= 
 +
| noway= 
 +
| autor=  <!-- nicht BS -->
 +
}} </pre>
  
--><div id=siteSub2> [[Religion-in-Japan]] <!--
+
<templatedata>
-->{{#if: {{NAMESPACE}} |  > {{NAMESPACE}} }} <!--
+
{
--> > [[{{#var: v1}}|{{ROOTPAGENAME}}]] <!--
+
"params": {
-->{{#if: {{#var: v2}}
+
"1": {
| > [[{{#var: v1}}/{{#var: v2}}|{{#var: v2}}]]
+
"description": "link adresse",
}} <!--
+
"type": "string",
-->{{#if: {{#var: v3}}
+
"autovalue": "Parent-Pagename"
| > [[{{#var: v1}}/{{#var: v2}}/{{#var: v3}}|{{#var: v3}}]]
+
},
}}
+
"noway": {
</div><!--
+
"description": "keinen Link anzeigen",
-->{{#css:
+
"type": "boolean",
 
+
"autovalue": "0"
.s-background {
+
},
  height: 44px;
+
"nocat": {
  border: 1px solid #aaa;
+
"label": "no category",
  background: #f5f5ee;
+
"description": "keine Kategorie hinzufügen",
  margin-top: 1px;
+
"type": "boolean",
}
+
"autovalue": "0"
div#mw-navigation {
+
},
  position: absolute;
+
"autor": {
  padding: 0 100px;
+
"description": "Gastautor",
  z-index: 1;
+
"type": "string"
  top: 0;
+
}
  left: 0;
+
},
  right: 0;
+
"description": "Fügt Weiter-zu Links am Ende des Artikels ein.",
 +
"format": "block"
 
}
 
}
div#mw-head  { /* wie #content */
+
</templatedata>
  position: static;
 
  background: transparent;
 
  max-width: 80em;
 
  min-width: 50em;
 
  margin: 16px auto 0;
 
  right: auto;
 
  width: auto;
 
}
 
.action-view #right-navigation {/* wie #bodyContent */
 
  display: block; 
 
  position: relative;
 
  margin: auto;
 
  float: none;
 
  width: auto;
 
}
 
#p-views,
 
#p-cactions {
 
display: none;
 
}
 
div#p-search {/* wie #nv */
 
  position: absolute;
 
  top: 446px;
 
  left: -90px;
 
  width: 180px;
 
  font-size: 13px;
 
  margin: 0;
 
}
 
div#p-search.fixed {
 
  position: fixed;
 
  top: 277px;
 
  left: 10px;
 
}
 
#p-search form {
 
  margin-top: 2px;
 
  padding: 10px 18px;
 
}
 
div#simpleSearch {
 
width:auto;
 
margin:0;
 
  border-color: #ccc;
 
  border-radius: 3px;
 
  height: 20px;
 
}
 
}}<noinclude>
 
Parameter: 1 = "Link", 2 = "... zu", nocat (keine Kategorie)
 
 
</noinclude>
 
</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