Vorlage:ThisWay: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
(54 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'
-->{{#vardefine: pageauthor
+
| class='zurueck textbox_body' title='zurück zum Hauptartikel'}} }}<!--  
| {{#if: {{{autor|}}} | {{{autor|}}}, }}
+
-->{{#vardefine: shorttitle
}}<!--
+
| {{#titleparts:{{PAGENAME}}| | -1}}  
-------------------------
 
        NAVIGATION
 
-------------------------
 
-->{{#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="nv_content">
 
<div id="chapters">
 
{{#var: navigation}}
 
</div>
 
</div></div><!--
 
  
   Zitieren
+
KATEGORIEN und Attribute
 +
 
 +
-->{{#if: {{{nocat|}}} | <!-- do nothing -->
 +
| [[Kategorie:Artikel]] <!--
 +
-->{{#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 ===
  
-->{{#switch: {{NAMESPACENUMBER}}
+
<pre>
| 6
+
{{ThisWay
|14 = <!-- do nothing -->
+
|
| #default = {{#if: {{{nocite|}}} |<!-- do nothing-->
+
| nocat=
|<div class='zitieren'><span id='zitieren'>''Diese Seite zitieren''</span> <div id='z_hide'  class='z_hide'>{{#var: pageauthor}} „{{#getdisplaytitle:{{FULLPAGENAME}}}}.“  In: Bernhard Scheid (Hg.),  ''[{{canonicalurl:{{MediaWiki:Mainpage}} }} {{SITENAME}}: {{MediaWiki:Sitesubtitle}}]''. Universität Wien, seit 2001 (Stand:  {{REVISIONDAY}}.{{REVISIONMONTH1}}.{{REVISIONYEAR}}). URL: {{canonicalurl:{{FULLPAGENAME}}}}?oldid={{REVISIONID}}<span id='z_X' class='fa fa-times'></span>
+
| noway=
</div></div> }} }}<!--
+
| autor=  <!-- nicht BS -->
+
}} </pre>
-->{{#css:
 
  
}}<noinclude>
+
<templatedata>
Parameter:  
+
{
* 1 = "Link"
+
"params": {
* 2 = "... zu"
+
"1": {
* nocite (kein Zitat)
+
"description": "link adresse",
* nocat (keine Kategorie)
+
"type": "string",
 +
"autovalue": "Parent-Pagename"
 +
},
 +
"noway": {
 +
"description": "keinen Link anzeigen",
 +
"type": "boolean",
 +
"autovalue": "0"
 +
},
 +
"nocat": {
 +
"label": "no category",
 +
"description": "keine Kategorie hinzufügen",
 +
"type": "boolean",
 +
"autovalue": "0"
 +
},
 +
"autor": {
 +
"description": "Gastautor",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Fügt Weiter-zu Links am Ende des Artikels ein.",
 +
"format": "block"
 +
}
 +
</templatedata>
 
</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