Vorlage:Titel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 26: | Zeile 26: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#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[\/]*>)/}} | ||
Zeile 60: | Zeile 61: | ||
}}{{#arrayprint:page | }}{{#arrayprint:page | ||
||§|<nowiki/> §-h1 | ||§|<nowiki/> §-h1 | ||
− | }} | + | }} {{{class|}}} |
− | + | }}<!-- | |
Schreiben | Schreiben | ||
− | --><div class='firstHeading {{#var:class | + | --><div class='firstHeading {{#var:class}}'><span class=firstHeadingBody>{{#var:zusatz_markup}}{{#var:title_markup}}</span></div><!-- |
TOC | TOC | ||
-->{{#ifeq:{{#var:namespace}}|artikel | -->{{#ifeq:{{#var:namespace}}|artikel | ||
Zeile 118: | Zeile 119: | ||
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> | ||
{ | { |
Version vom 22. Dezember 2022, 21:22 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 |