Vorlage:Titel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(32 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 25: | Zeile 25: | ||
|{{{1|}}}<!-- | |{{{1|}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | -->{{#vardefine:autor | ||
+ | | {{#if:{{{autor|}}}|<span class=autor>{{{autor|}}}</span>}} | ||
+ | }}<!-- | ||
-->{{#vardefine:title_plain | -->{{#vardefine:title_plain | ||
− | |{{#regex: {{#var:title}} | + | | {{#regex: {{#var:title}} |
− | |/<[\/]*\w+[\/]*>/| }} | + | |/<[\/]*\w+[\/]*>/ |
− | }}<!-- | + | | |
+ | }}}}<!-- | ||
-->{{#vardefine:title_markup | -->{{#vardefine:title_markup | ||
| {{#if: {{#regex: {{#var:title}} |/(:{{!}}<br[\/]*>)/}} | | {{#if: {{#regex: {{#var:title}} |/(:{{!}}<br[\/]*>)/}} | ||
| {{#regex: {{#var:title}} | | {{#regex: {{#var:title}} | ||
|/([^:]+)(:{{!}}<br[\/]*>)\s*([^:]+)/ | |/([^:]+)(:{{!}}<br[\/]*>)\s*([^:]+)/ | ||
− | |$1 <span class='bottom'>$3</span> | + | |$1 <span class='bottom'>$3{{#var:ref}}</span> |
}} | }} | ||
− | |{{#var:title}} | + | |{{#var:title}}{{#var:ref}} |
}} | }} | ||
}}<!-- | }}<!-- | ||
Zeile 54: | Zeile 58: | ||
}}<!-- | }}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
-->{{#vardefine:class | -->{{#vardefine:class | ||
− | | {{ | + | | {{#arraydefine:page |
− | |/[ | + | |{{lc:{{FULLPAGENAMEE}}}} |
− | }}}} | + | |/[:\/]/ |
+ | }}{{#arrayprint:page | ||
+ | ||§|<nowiki/> §-h1 | ||
+ | }} {{{class|}}} | ||
}}<!-- | }}<!-- | ||
− | Schreiben | + | Schreiben |
− | --><div class=' | + | --><div class='firstHeadingTitel {{#var:class}}'><!-- |
+ | text | ||
+ | --><span class=firstHeadingBody>{{#var:autor}}{{#var:zusatz_markup}}{{#var:title_markup}}</span><!-- | ||
+ | Search: | ||
+ | --><div class=wrapSearch2 id=search-container style=''><span class=search2>{{#fas:search}}</span></div><!-- | ||
+ | body class | ||
+ | (Vorsicht: kann ungewollt <p> erzeugen) | ||
+ | -->{{#ifeq:{{#var:namespace}}|artikel | ||
+ | | {{#if: {{{nobodyclass|}}}|<!--do nothing--> | ||
+ | |{{#addbodyclass:article}} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | --></div><!-- | ||
TOC | TOC | ||
-->{{#ifeq:{{#var:namespace}}|artikel | -->{{#ifeq:{{#var:namespace}}|artikel | ||
Zeile 80: | Zeile 98: | ||
#firstHeading { | #firstHeading { | ||
display: none; | display: none; | ||
+ | } | ||
+ | #search-container { | ||
+ | position: absolute; | ||
+ | right: 4.5rem; | ||
+ | top:-3.25rem; | ||
+ | z-index:4; | ||
} | } | ||
{{#ifanon:<!--do nothing-->| | {{#ifanon:<!--do nothing-->| | ||
Zeile 116: | Zeile 140: | ||
font-family: 'Font Awesome 5 Free'; | font-family: 'Font Awesome 5 Free'; | ||
margin-left: 0.2em; | margin-left: 0.2em; | ||
− | } | + | } }}}}</includeonly><noinclude> |
− | }} | ||
− | }}</includeonly> | ||
− | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Zeile 144: | Zeile 165: | ||
"description": "Titelzusatz", | "description": "Titelzusatz", | ||
"type": "content" | "type": "content" | ||
+ | }, | ||
+ | "autor": { | ||
+ | "description": "Gastautoren", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "nobodyclass": { | ||
+ | "description": "hinzufügen der article-Klasse unterbinden", | ||
+ | "type": "boolean" | ||
} | } | ||
}, | }, | ||
Zeile 152: | Zeile 181: | ||
"zusatz", | "zusatz", | ||
"class", | "class", | ||
− | "notoc" | + | "notoc", |
+ | "nobodyclass", | ||
+ | "autor" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 30. Januar 2023, 17:17 Uhr
{{Titel | <!-- Titel --> | <!-- Titelzusatz, auch zusatz= --> | class= <!-- z.B. pagename, lc --> | notoc= <!-- 1 --> }}
- HTML-Markup für Titel {{{1|}}} und Titelzusatz {{{2|}}}.
- Titel {{{1|}}} kann Doppelpunkt oder <br> enthalten, um Haupt- und Untertitel zu trennen.
- Titelzusatz {{{2|}}} erscheint über dem Haupttitel, Untertitel darunter.
- Titel ohne Markup wird mit DISPLAYTITLE als Metainfo gespeichert (aber so nicht angezeigt).
- class fügt eine entsprechende CSS-Klasse ein.
Gestaltung der Seitenüberschrift
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
1 | 1 | Haupttitel | Inhalt | erforderlich |
2 | 2 | Nebentitel | Inhalt | optional |
Zusatz | zusatz | Titelzusatz | Inhalt | optional |
Class | class | z.B. für Kapitel- bzw. Seitenschmuck
| Inhalt | optional |
Notoc | notoc | Schaltet autom. TOC aus | Boolesch | optional |
Nobodyclass | nobodyclass | hinzufügen der article-Klasse unterbinden | Boolesch | optional |
Autor | autor | Gastautoren | Zeichenfolge | optional |