Vorlage:ThisWay: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
|||
(125 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | {{#vardefine: | + | <!-- |
− | }}< | + | |
− | + | VARIABLE | |
− | + | ||
− | + | -->{{#vardefine: defaultlink | |
− | + | | {{#ifeq: {{NAMESPACENUMBER}}| 0 | |
− | + | | {{BASEPAGENAME}} | |
− | </ | + | | {{NAMESPACE}}:{{BASEPAGENAME}} |
− | < | + | }} }}<!-- |
− | {{# | + | -->{{#vardefine: link |
− | [ | + | | {{#if: {{{1|}}} | {{{1|}}} | {{#var:defaultlink}} }} |
− | {{#if: {{{1|}}} | | + | }}<!-- |
− | }} | + | -->{{#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 | ||
+ | | {{#if: {{{1|}}} | ||
+ | | 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> |