Vorlage:Para
|

Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) one is a value for the first example parameter, or (if the first {{para}}
parameter is empty) an unnamed example parameter.
Examples
-
{{para|name}}
- renders as
|name=
-
{{para|title|<var>book title</var>}}
- renders as
|title=book title
-
{{para| |section}}
- renders as
|section
- (for unnamed parameters in the example code; note the empty first parameter in the
{{para}}
template)
-
{{para|<var>parameter</var>|<var>value</var>}}
- renders as
|parameter=value
When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var>
(appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4).
See also
- Template:Tlx – for providing examples of entire-template code with included parameters
Typ → | Verlinkt | Nicht verlinkt | Linkt mit Ersetzung | Verlinkt inklusive der ersten Klammer | Verlinkt mit alternativem Text | |
---|---|---|---|---|---|---|
Text Stil ↓ | {{tlg}} option1
|
— | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=FOO
|
Normal | — | {{tl}} · {{tlp}} 2 · {{tlg}} 1, 2
|
{{tlf}} 2
|
{{tls}} · {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
code=yes ortt=yes
|
{{tlx}}
|
{{tlc}} 2 · {{tld}} · {{tnull}}
|
{{tlxs}} · {{tlxsp}}
|
||
Fett | bold=yes
|
{{tlb}}
|
||||
Kursiv | italic=yes
|
{{tli}}
| ||||
Fetter Code
|
bold=yes|code=yes
|
{{tlxb}}
|
{{tlcb}}
|
|||
Kursiver Code
|
italic=yes|code=yes
|
{{tlxi}}
|
{{tlci}}
|
{{tlg}}
ist die allgemeine Vorlage, die alle mögliche Kombinationen an Textsstil und Linkarten erlaubt.2 = Schützt vor Zeilenumbrüchen durch die Verwendung des Tags
<span class="nowrap">...</span>
Typ → | Verlinkt | Nicht verlinkt | Linkt mit Ersetzung | Verlinkt inklusive der ersten Klammer | Verlinkt mit alternativem Text | |
---|---|---|---|---|---|---|
Text Stil ↓ | — | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=FOO
| |
Normal | — | {{VCard}} · {{VCard}} · {{VCard}} | {{VCard}} | {{subst:VCard}} · {{subst:VCard}} | {{VCard}} | {{Listing}} |
Code
|
code=yes ortt=yes
|
{{VCard}}
|
{{VCard}} · {{VCard}} · {{VCard}}
|
{{subst:VCard}} · {{subst:VCard}}
|
||
Fett | bold=yes
|
{{VCard|param}} | ||||
Kursiv | italic=yes
|
{{VCard|param}} | ||||
Fetter Code
|
bold=yes|code=yes
|
{{VCard|param}}
|
{{VCard|param}}
|
|||
Kursiver Code
|
italic=yes|code=yes
|
{{VCard|param}}
|
{{VCard|param}}
|
Bei der Dokumentation von Hilfsvorlagen, die im allgemeinen sehr kurz sind, kannst du statt der Vorlage {{Tl}} auf {{Tn}} zurückgreifen. Dort werden die inneren Klammern mit in den Link aufgenommen. So lässt sich besser auf die Vorlage klicken, da der Zielbereich nicht so schmal ist.
- Hinweis
- Der Parameter
|bold=
wirkt nur auf die Vorlagenbezeichnung - Der Parameter
|italic=
wirkt nur auf die Parameter
- Stilvergleich
{{tl|Dokumentation|Parameter}}
…ergibt… {{Dokumentation}} Beachte! Eine Darstellung der Parameter erfolgt hier nicht.{{tlp|Dokumentation|Parameter}}
…ergibt… {{Dokumentation|Parameter}}{{tlf|Dokumentation|Parameter}}
…ergibt… {{Dokumentation|Parameter}}{{tlc|Dokumentation|Parameter}}
…ergibt…{{Dokumentation|Parameter}}
{{tlx|Dokumentation|Parameter}}
…ergibt…{{Dokumentation|Parameter}}
{{tli|Dokumentation|Parameter}}
…ergibt… {{Dokumentation|Parameter}}{{tlb|Dokumentation|Parameter}}
…ergibt… {{Dokumentation|Parameter}}
- Die obige Dokumentation wurde aus der Seite Vorlage:Para/Doku eingefügt. (bearbeiten | Versionsgeschichte) Die Kategorien für diese Vorlage sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.
- Liste der Unterseiten