Vorlage:ThisWay: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(134 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | {{# | + | <!-- |
− | | | + | |
− | | | + | VARIABLE |
− | | | + | |
− | | | + | -->{{#vardefine: defaultlink |
− | + | | {{#ifeq: {{NAMESPACENUMBER}}| 0 | |
− | + | | {{BASEPAGENAME}} | |
− | + | | {{NAMESPACE}}:{{BASEPAGENAME}} | |
− | + | }} }}<!-- | |
− | + | -->{{#vardefine: link | |
− | + | | {{#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: | + | }} }}<!-- |
− | }} | + | -->{{#vardefine:color-class |
− | + | | {{#regex:{{lc:{{FULLPAGENAME}}}} | |
− | + | |/[^:\/]+/ | |
− | + | }}-tw | |
− | < | + | }}<!-- |
− | + | -->{{#vardefine: class | |
− | < | + | | {{#if: {{{1|}}} |
− | </div> | + | | class='thisway {{#var:color-class}}' title='zum nächsten Thema' |
− | < | + | | class='thisway zurueck {{#var:color-class}}' title='zurück zum Hauptartikel' |
− | + | }} | |
− | {{ | + | }}<!-- |
+ | |||
+ | SCHREIBEN | ||
+ | |||
+ | --><div {{#var:class}} >{{#var:link_markup}}</div><!-- | ||
+ | |||
+ | --><noinclude> | ||
+ | === Code === | ||
+ | |||
+ | <pre> | ||
+ | {{ThisWay| }}</pre> | ||
+ | </noinclude> |