Vorlage:ThisWay: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(93 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|{{ | + | | {{#if: {{{1|}}} | {{{1|}}} | {{#var:defaultlink}} }} |
}}<!-- | }}<!-- | ||
+ | -->{{#vardefine: link_markup | ||
+ | | {{#if: {{{1|}}} | ||
+ | | [[{{{1|}}}|<span>Weiter zu:</span> {{#show: {{{1|}}}|?hat_titel}} {{#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|}}} | + | | {{#if: {{{1|}}} |
− | + | | class='thisway {{#var:color-class}}' title='zum nächsten Thema' | |
− | + | | class='thisway zurueck {{#var:color-class}}' title='zurück zum Hauptartikel' | |
− | + | }} | |
− | + | }}<!-- | |
− | | {{ | ||
− | }}<!-- | ||
SCHREIBEN | SCHREIBEN | ||
− | --><div {{#var:class}} | + | --><div {{#var:class}} >{{#var:link_markup}}</div><!-- |
− | + | ||
− | + | --><noinclude> | |
− | + | === Code === | |
− | </div> | + | |
− | + | <pre> | |
− | + | {{ThisWay| }}</pre> | |
− | |||
− | -->< | ||
− | < | ||
− | {{ | ||
− | </ | ||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |