Vorlage:Infobox/Doku: Unterschied zwischen den Versionen

Aus k4cg.org
K (1 Version importiert: Infobox)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<noinclude>{{Dokumentation/Dokuseite}}</noinclude>
[[Template:Infobox package]] is used to describe [[package]]s in [[Fedora]]. Only the <code>package_name</code> tag is required, but contributors are encouraged to add as much information as possible.
Diese Vorlage dient der einheitlichen Darstellung von [[Hilfe:Infoboxen|Infoboxen]]. Sie sollte möglichst nicht direkt in Artikeln, sondern nur innerhalb von anderen Vorlagen für Infoboxen verwendet werden.


== Parameter ==
== Fields ==
{| class="wikitable"
This template has conventions regarding how some fields should be specified. To ensure the quality of the [[Fedora Project wiki]], these conventions should be followed whenever possible.
|- class="hintergrundfarbe6"
! Parameter !! default (Wert, wenn leer) !! Bedeutung
|-
| Titel || ''Das Lemma'' || Überschrift
|-
| Bildname || ''keiner'' || Ein Dateiname eines Bildes, das angezeigt werden soll.
|-
| Bildbreite || '''frameless''' || Breite für Bild von ''Bildname'' (z.B. <code>''280px''</code>)
|-
| Bildtext || ''Das Lemma'' || Text, der unter dem Bild (wenn vorhanden) stehen soll
|-
| colspan="3" class="hintergrundfarbe5" | <hr/>
|-
| [[#Parameter: Stil|Stil]] || '''1''' || Es gibt die Stile '''1''' und '''2'''. (siehe [[Vorlage:Infobox#Parameter: Stil|unten]])
|-
| [[#Farben|Titelfarbe]] || '''6''' || Eine Standardhintergrundfarbe der Überschrift (siehe [[Vorlage:Infobox#Farben|unten]])
|-
| [[#Farben|Farbe]] || ''leer'' || Hintergrundfarbe der Überschrift, wenn keine Standardfarbe gewählt wurde (siehe [[Vorlage:Infobox#Farben|unten]]). Syntax:  #RRGGBB  (RGB-Wert).
|-
| [[#Farben|Abschnittsfarbe]] || '''5''' || Farbe der "Unter-Überschriften"  (siehe [[Vorlage:Infobox#Farben|unten]])
|-
| Style || ''leer'' || Attribute für die Infobox (z. B. <code>''width:300px''</code>)
|-
| Feldstyle || ''leer'' || Darstellung des Feldnames. Falls ''leer'': '''fette''' Darstellung; Bei Style=1: text-align:center. Sonst: normale Darstellung mit text-align:left.
|-
| colspan="3" class="hintergrundfarbe5" | <hr/>
|-
| Feldname1 || ''leer'' || Feldname (linke Spalte) der ersten Zeile
|-
| Daten1 || ''leer'' || Daten (rechte Spalte) der ersten Zeile
|-
| Feldname2 || ''leer'' || Feldname (linke Spalte) der zweiten Zeile
|-
| Daten2 || ''leer'' || Daten (rechte Spalte) der zweiten Zeile
|-
! colspan="3" | …
|-
| Feldname30 || ''leer'' || Feldname (linke Spalte) der dreißigsten Zeile
|-
| Daten30 || ''leer'' || Daten (rechte Spalte) der dreißigsten Zeile
|-
| colspan="3" class="hintergrundfarbe5" | <hr/>
|-
| colspan="3" |
Wenn <code>'''DatenN'''</code> leer ist, wird die n-te Zeile nicht angezeigt.<br />
Wenn <code>'''FeldnameN'''</code> leer ist, wird der Text der n-ten Zeile über beide Spalten zentriert ausgegeben.<br />
Wenn <code>'''FeldnameN'''</code> ein <code>''-''</code> (minus) ist, wird die n-te Zeile als "Unter-Überschrift" ausgegeben.
|}


Kompatibiltät zur alten Vorlage:
'''package_maintainer''' should specify a link to the [[package maintainer|package owner]]. The package owner can be found using the [[Fedora Package Database]]. Ideally, the maintainer's user page on the Fedora Project wiki should be used. If the maintainer does not have a user page, this field should should point to the maintainer's account details on the [[Fedora Accounts System]], such as https://admin.fedoraproject.org/accounts/user/view/dafrito. Do not link to the maintainer's personal homepage or email address.
: Ein Bild kann auch mit ''Bild'' in Wikisyntax eingebunden werden.
'''Bitte nicht mehr benutzen!'''


== Kopiervorlage ==
'''package_name''' should specify the official package name, in the form that would be provided to [[yum]]. The package name should not be capitalized unless the capitalization is required. The package name should never contain links or miscellaneous information.


Nicht benötigte ''Feldname''/''Daten''-Paare bitte löschen.
'''name''' should contain the human-readable name of the packaged application, program, or library. Always prefer the official or formal name given or used by [[upstream]].
<nowiki>{{Infobox
| Titel =
| Bildname =
| Bildbreite =
| Bildtext =


| Stil = 1
If upstream does not provide or have a formal name, convert the package name to a title: capitalize each word appropriately, convert dashes and underscores to spaces, and omit articles such as "a" or "the" unless they're included in the name, and expand abbreviations. These rules should be broken if a more recognizable or natural name can be formed, but do not include extraneous information that is not part of the title: prefer [[Firefox]] over "Firefox web browser".
| Style =
| Titelfarbe =
| Farbe =
| Abschnittsfarbe =
| Feldstyle =


| Feldname1 =  | Daten1 =
Version-specific information such as version numbers, code-names, and build suffixes (RC, beta, alpha, etc.) should usually not be included unless there is a need to be specific. This may be necessary if there are currently multiple, packaged versions of the same application, or if there is a fork.
| Feldname2 =  | Daten2 =
| Feldname3 =  | Daten3 =
| Feldname4 =  | Daten4 =
| Feldname5 =  | Daten5 =
| Feldname6 =  | Daten6 =
| Feldname7 =  | Daten7 =
| Feldname8 =  | Daten8 =
| Feldname9 =  | Daten9 =
| Feldname10 = | Daten10 =
| Feldname11 = | Daten11 =
| Feldname12 = | Daten12 =
| Feldname13 = | Daten13 =
| Feldname14 = | Daten14 =
| Feldname15 = | Daten15 =
| Feldname16 = | Daten16 =
| Feldname17 = | Daten17 =
| Feldname18 = | Daten18 =
| Feldname19 = | Daten19 =
| Feldname20 = | Daten20 =
| Feldname21 = | Daten21 =
| Feldname22 = | Daten22 =
| Feldname23 = | Daten23 =
| Feldname24 = | Daten24 =
| Feldname25 = | Daten25 =
| Feldname26 = | Daten26 =
| Feldname27 = | Daten27 =
| Feldname28 = | Daten28 =
| Feldname29 = | Daten29 =
| Feldname30 = | Daten30 =
}}</nowiki>


== Abschnitt ==
== Examples ==
  | Feldname# =     -    | Daten# = Abschnitt
=== Example: Comprehensive infobox ===
Erzeugt einen Abschnitt mit der Bezeichnung «<code>Abschnitt</code>»
This example demonstrates an infobox that is providing almost every field.


== Parameter: Stil ==
''Code:''
<pre><nowiki>
{{Infobox package
| name = Fictional Package Manager
| package_name = fictional
| package_maintainer = [[User:Dafrito|Aaron Faanes]]
| package_added = [[Fedora 12]]
| package_removed = [[Fedora 13]]
| website = http://yum.baseurl.org/
| bug_tracker = http://yum.baseurl.org/report
| mailing_list = http://lists.baseurl.org/mailman/listinfo/yum
| irc = [irc://irc.freenode.net/#yum #yum] on [http://www.freenode.net irc.freenode.net]
}}
</nowiki></pre>


{| class="centered" style="background-color:transparent;"
''Output'':
|+ Beispiel für:
{{Infobox package
! Stil 1 !! Stil 2 || Stil 1; Feldstyle=n
| name = Fictional Package Manager
|-
| package_name = fictional
| width="200px" |
| package_maintainer = [[User:Dafrito|Aaron Faanes]]
{{Infobox
| package_added = [[Fedora 12]]
| Stil = 1
| package_removed = [[Fedora 13]]
| Titel = Bsp. für Stil 1
| website = http://yum.baseurl.org/
| Bildname =
| bug_tracker = http://yum.baseurl.org/report
| Bildtext = Werbefläche zu verkaufen!
| mailing_list = http://lists.baseurl.org/mailman/listinfo/yum
| irc = [irc://irc.freenode.net/#yum #yum] on [http://www.freenode.net irc.freenode.net]
}}


| Feldname1 = Feldname1 | Daten1 = Daten1
=== Example: Simple infobox ===
| Feldname2 = Feldname2 | Daten2 = Daten2
This example demonstrates an infobox that is relatively simple.
| Feldname3 = Feldname3 | Daten3 = Daten3


| Feldname4 =     -    | Daten4 = Abschnitt 4
''Code:''
<pre><nowiki>
{{Infobox package
| name = Fictional Package Manager
| package_name = fictional
| website = http://yum.baseurl.org/
| added = [[Fedora 13]]
}}
</nowiki></pre>


| Feldname5 = Feldname5 | Daten5 = Daten5
''Output:''
| Feldname6 =           | Daten6 = Langer Daten6
{{Infobox package
| Feldname7 = Feldname7 | Daten7 = Daten7
| name = Fictional Package Manager
| package_name = fictional
| website = http://yum.baseurl.org/
| added = [[Fedora 13]]
}}
}}
| width="200px" |
{{Infobox
| Stil = 2
| Titel = Bsp. für Stil 2
| Bildname =
| Bildtext = Werbefläche zu verkaufen!


| Feldname1 = Feldname1 | Daten1 = Daten1
=== Example: Minimum required infobox ===
| Feldname2 = Feldname2 | Daten2 = Daten2
This example shows an infobox containing only the required fields.
| Feldname3 = Feldname3 | Daten3 = Daten3


| Feldname4 =    -    | Daten4 = Abschnitt 4
''Code:''
 
<pre><nowiki>
| Feldname5 = Feldname5 | Daten5 = Daten5
{{Infobox package
| Feldname6 =          | Daten6 = Langer Daten6
| package_name = fictional
| Feldname7 = Feldname7 | Daten7 = Daten7
}}
}}
| width="300px" |
</nowiki></pre>
{{Infobox
| Stil = 1
| Style= width:300px
| Feldstyle=n
| Titel = Bsp. für Stil 1 mit Feldstyle=n
| Bildname =
| Bildtext = Werbefläche zu verkaufen!
| Feldname1 = Feldname1 | Daten1 = Daten1
| Feldname2 = '''<nowiki>'''Feldname2'''</nowiki>''' | Daten2 = Daten2
| Feldname3 = <center><nowiki><center>Feldname3</center></nowiki></center> | Daten3 = Daten3


| Feldname4 =    -    | Daten4 = Abschnitt 4
''Output:''
 
{{Infobox package
| Feldname5 = <center>'''<nowiki><center>'''Feldname3'''</center></nowiki>'''</center> | Daten5 = Daten5
| package_name = fictional
| Feldname6 =          | Daten6 = Langer Daten6
| Feldname7 = Feldname7 | Daten7 = Daten7
}}
}}
|}
== Farben ==
Standardfarben
{| class="centered wikitable" style="text-align:center;"
|+ Hintergrundfarbe mit:
| class="hintergrundfarbe1" | ''Titelfarbe = 1''<br />''Abschnittsfarbe = 1''
| class="hintergrundfarbe2" | ''Titelfarbe = 2''<br />''Abschnittsfarbe = 2''
| class="hintergrundfarbe3" | ''Titelfarbe = 3''<br />''Abschnittsfarbe = 3''
|-
| class="hintergrundfarbe4" | ''Titelfarbe = 4''<br />''Abschnittsfarbe = 4''
| class="hintergrundfarbe5" | ''Titelfarbe = 5''<br />''Abschnittsfarbe = 5''
| class="hintergrundfarbe6" | ''Titelfarbe = 6''<br />''Abschnittsfarbe = 6''
|-
| class="hintergrundfarbe7" | ''Titelfarbe = 7''<br />''Abschnittsfarbe = 7''
| class="hintergrundfarbe8" | ''Titelfarbe = 8''<br />''Abschnittsfarbe = 8''
| class="hintergrundfarbe9" | ''Titelfarbe = 9''<br />''Abschnittsfarbe = 9''
|}
Wenn keine der Standardfarben zusagt, kann mit dem Parameter "Farbe= #rrggbb" eine individuelle Titelfarbe gewählt werden.

Version vom 18. Januar 2016, 11:14 Uhr

Template:Infobox package is used to describe packages in Fedora. Only the package_name tag is required, but contributors are encouraged to add as much information as possible.

Fields

This template has conventions regarding how some fields should be specified. To ensure the quality of the Fedora Project wiki, these conventions should be followed whenever possible.

package_maintainer should specify a link to the package owner. The package owner can be found using the Fedora Package Database. Ideally, the maintainer's user page on the Fedora Project wiki should be used. If the maintainer does not have a user page, this field should should point to the maintainer's account details on the Fedora Accounts System, such as https://admin.fedoraproject.org/accounts/user/view/dafrito. Do not link to the maintainer's personal homepage or email address.

package_name should specify the official package name, in the form that would be provided to yum. The package name should not be capitalized unless the capitalization is required. The package name should never contain links or miscellaneous information.

name should contain the human-readable name of the packaged application, program, or library. Always prefer the official or formal name given or used by upstream.

If upstream does not provide or have a formal name, convert the package name to a title: capitalize each word appropriately, convert dashes and underscores to spaces, and omit articles such as "a" or "the" unless they're included in the name, and expand abbreviations. These rules should be broken if a more recognizable or natural name can be formed, but do not include extraneous information that is not part of the title: prefer Firefox over "Firefox web browser".

Version-specific information such as version numbers, code-names, and build suffixes (RC, beta, alpha, etc.) should usually not be included unless there is a need to be specific. This may be necessary if there are currently multiple, packaged versions of the same application, or if there is a fork.

Examples

Example: Comprehensive infobox

This example demonstrates an infobox that is providing almost every field.

Code:

{{Infobox package
| name = Fictional Package Manager
| package_name = fictional
| package_maintainer = [[User:Dafrito|Aaron Faanes]]
| package_added = [[Fedora 12]]
| package_removed = [[Fedora 13]]
| website = http://yum.baseurl.org/
| bug_tracker = http://yum.baseurl.org/report
| mailing_list = http://lists.baseurl.org/mailman/listinfo/yum
| irc = [irc://irc.freenode.net/#yum #yum] on [http://www.freenode.net irc.freenode.net]
}}

Output: Vorlage:Infobox package

Example: Simple infobox

This example demonstrates an infobox that is relatively simple.

Code:

{{Infobox package
| name = Fictional Package Manager
| package_name = fictional
| website = http://yum.baseurl.org/
| added = [[Fedora 13]]
}}

Output: Vorlage:Infobox package

Example: Minimum required infobox

This example shows an infobox containing only the required fields.

Code:

{{Infobox package
| package_name = fictional
}}

Output: Vorlage:Infobox package