Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(87 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:color-class
 +
| {{#regex:{{lc:{{FULLPAGENAME}}}}
 +
  |/[^:\/]+/
 +
  }}-tw
 +
}}<!--
 
-->{{#vardefine: class
 
-->{{#vardefine: class
| {{#if: {{{1|}}}||class=zurueck}} }}<!--
+
| {{#if: {{{1|}}}
-------------------------
+
  | class='thisway {{#var:color-class}}' title='zum nächsten Thema'
        NAVIGATION
+
  | class='thisway zurueck {{#var:color-class}}' title='zurück zum Hauptartikel'
-------------------------
+
  }}  
-->{{#vardefine: navigation
+
}}<!--  
| {{Metalog:Sitemap}}
 
}}<!--
 
  
 
SCHREIBEN
 
SCHREIBEN
  
--><div {{#var:class}} id=thisway><!--
+
--><div {{#var:class}} >{{#var:link_markup}}</div><!--  
-->{{#if: {{{1|}}}
+
 
|{{{2|{{{Weiter|Weiter}}} }}} zu}} [[{{#var:link}}]] {{#if: {{{1|}}}|| (zurück zum Hauptartikel)
+
--><noinclude>
}}
+
=== Code ===
</div>
 
{{#if: {{{nocat|}}} | <!-- do nothing -->
 
| {{#if: {{{1|}}} | [[Kategorie:Hauptartikel]] | [[Kategorie:Sidepage]]}}
 
}}<!--
 
--><div id="nv">
 
<div id="chapters">
 
{{#var: navigation}}
 
</div><!--
 
Suche
 
--><div class=s-background></div>
 
</div><!--
 
-->{{#css:
 
  
.s-background {
+
<pre>
  height: 44px;
+
{{ThisWay| }}</pre>
  border: 1px solid #aaa;
 
  background: #f5f5ee;
 
  margin-top: 1px;
 
}
 
div#mw-navigation {
 
  position: absolute;
 
  padding: 0 100px;
 
  z-index: 1;
 
  top: 0;
 
  left: 0;
 
  right: 0;
 
}
 
div#mw-head  { /* wie #content */
 
  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: 421px;
 
  left: -90px;
 
  width: 180px;
 
  font-size: 13px;
 
  margin: 0;
 
}
 
div#p-search.fixed {
 
  position: fixed;
 
  top: 252px;
 
  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>

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

Code

{{ThisWay| }}