Vorlage:Titel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(37 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 8: | Zeile 8: | ||
| <!-- Titel --> | | <!-- Titel --> | ||
| <!-- Titelzusatz, auch zusatz= --> | | <!-- Titelzusatz, auch zusatz= --> | ||
− | | class= <!-- z.B. | + | | class= <!-- z.B. pagename, lc --> |
| notoc= <!-- 1 --> | | notoc= <!-- 1 --> | ||
}} | }} | ||
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 | ||
+ | | {{#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 74: | 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 88: | Zeile 118: | ||
background: none; | background: none; | ||
padding-: 2rem; | padding-: 2rem; | ||
− | width: | + | width: 15rem; |
position: absolute; | position: absolute; | ||
left: 0; | left: 0; | ||
Zeile 110: | Zeile 140: | ||
font-family: 'Font Awesome 5 Free'; | font-family: 'Font Awesome 5 Free'; | ||
margin-left: 0.2em; | margin-left: 0.2em; | ||
− | } | + | } }}}}</includeonly><noinclude> |
− | }} | + | <templatedata> |
− | }}</ | + | { |
+ | "params": { | ||
+ | "1": { | ||
+ | "description": "Haupttitel", | ||
+ | "type": "content", | ||
+ | "required": true | ||
+ | }, | ||
+ | "2": { | ||
+ | "description": "Nebentitel", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "class": { | ||
+ | "description": "z.B. für Kapitel- bzw. Seitenschmuck", | ||
+ | "example": "kitsune", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "notoc": { | ||
+ | "description": "Schaltet autom. TOC aus", | ||
+ | "type": "boolean" | ||
+ | }, | ||
+ | "zusatz": { | ||
+ | "description": "Titelzusatz", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "autor": { | ||
+ | "description": "Gastautoren", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "nobodyclass": { | ||
+ | "description": "hinzufügen der article-Klasse unterbinden", | ||
+ | "type": "boolean" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Gestaltung der Seitenüberschrift", | ||
+ | "paramOrder": [ | ||
+ | "1", | ||
+ | "2", | ||
+ | "zusatz", | ||
+ | "class", | ||
+ | "notoc", | ||
+ | "nobodyclass", | ||
+ | "autor" | ||
+ | ] | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
Aktuelle Version vom 30. Januar 2023, 16: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 |