Vorlage:Infobox Gemeinde: Unterschied zwischen den Versionen

Aus Helvetia Wiki – Die Enzyklopädie der Schweiz
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
<includeonly>{| class="wikitable" style="float:right; clear:right; width:315px; margin:0 0 1em 1em; font-size:90%;"
<includeonly>
|-
<table class="wikitable" style="float:right; clear:right; width:315px; margin:0 0 1em 1em; font-size:90%;">
! colspan="2" style="font-size:120%; text-align:center;" | {{{NAME ORT|{{PAGENAME}}}}}{{#if:{{{BILDPFAD WAPPEN|}}}|
<tr>
{{!}}-
<th colspan="2" style="font-size:120%; text-align:center;">{{{NAME ORT|{{PAGENAME}}}}}</th>
{{!}} colspan="2" style="text-align:center;" {{!}} [[Datei:{{{BILDPFAD WAPPEN}}}|120px|Wappen von {{{NAME ORT|{{PAGENAME}}}}}]]}}{{#if:{{{BILDPFAD KARTE|}}}|
</tr>
{{!}}-
{{#if:{{{BILDPFAD WAPPEN|}}}|<tr>
{{!}} colspan="2" style="text-align:center;" {{!}} [[Datei:{{{BILDPFAD KARTE}}}|290px|Lage von {{{NAME ORT|{{PAGENAME}}}}}]]}}{{#if:{{{KANTON|}}}|
<td colspan="2" style="text-align:center;">[[Datei:{{{BILDPFAD WAPPEN}}}|120px|Wappen von {{{NAME ORT|{{PAGENAME}}}}}]]</td>
{{!}}-
</tr>}}
! Kanton
{{#if:{{{BILDPFAD KARTE|}}}|<tr>
{{!}} {{{KANTON}}}}}{{#if:{{{BEZIRK|}}}|
<td colspan="2" style="text-align:center;">[[Datei:{{{BILDPFAD KARTE}}}|290px|Lage von {{{NAME ORT|{{PAGENAME}}}}}]]</td>
{{!}}-
</tr>}}
! Bezirk
{{#if:{{{KANTON|}}}|<tr>
{{!}} {{{BEZIRK}}}}}{{#if:{{{WAHLKREIS|}}}|
<th>Kanton</th>
{{!}}-
<td>{{{KANTON}}}</td>
! Wahlkreis
</tr>}}
{{!}} {{{WAHLKREIS}}}}}{{#if:{{{GEMEINDE|}}}|
{{#if:{{{BEZIRK|}}}|<tr>
{{!}}-
<th>Bezirk</th>
! Gemeinde
<td>{{{BEZIRK}}}</td>
{{!}} {{{GEMEINDE}}}}}{{#if:{{{BFS|}}}|
</tr>}}
{{!}}-
{{#if:{{{WAHLKREIS|}}}|<tr>
! BFS-Nr.
<th>Wahlkreis</th>
{{!}} {{{BFS}}}}}{{#if:{{{PLZ|}}}|
<td>{{{WAHLKREIS}}}</td>
{{!}}-
</tr>}}
! Postleitzahl
{{#if:{{{GEMEINDE|}}}|<tr>
{{!}} {{{PLZ}}}}}{{#if:{{{BREITENGRAD|}}}|
<th>Gemeinde</th>
{{!}}-
<td>{{{GEMEINDE}}}</td>
! Koordinaten
</tr>}}
{{!}} {{Coordinate|NS={{{BREITENGRAD}}}|EW={{{LÄNGENGRAD|}}}|type=city|region=CH|text=ja}}}}{{#if:{{{HÖHE|}}}|
{{#if:{{{BFS|}}}|<tr>
{{!}}-
<th>BFS-Nr.</th>
! Höhe
<td>{{{BFS}}}</td>
{{!}} {{{HÖHE}}} m ü. M.}}{{#if:{{{FLÄCHE|}}}|
</tr>}}
{{!}}-
{{#if:{{{PLZ|}}}|<tr>
! Fläche
<th>Postleitzahl</th>
{{!}} {{{FLÄCHE}}} km²}}{{#if:{{{EINWOHNER|}}}|
<td>{{{PLZ}}}</td>
{{!}}-
</tr>}}
! Einwohner
{{#if:{{{BREITENGRAD|}}}|<tr>
{{!}} {{{EINWOHNER}}}{{#if:{{{STAND EINWOHNER|}}}|<br><small>Stand: {{{STAND EINWOHNER}}}</small>}}}}{{#if:{{{EINWOHNERDICHTE|}}}|
<th>Koordinaten</th>
{{!}}-
<td>{{Coordinate|NS={{{BREITENGRAD}}}|EW={{{LÄNGENGRAD|}}}|type=city|region=CH|text=ja}}</td>
! Einwohnerdichte
</tr>}}
{{!}} {{{EINWOHNERDICHTE}}} Einw./km²}}{{#if:{{{AUSLÄNDERANTEIL|}}}|
{{#if:{{{HÖHE|}}}|<tr>
{{!}}-
<th>Höhe</th>
! Ausländeranteil
<td>{{{HÖHE}}} m ü. M.</td>
{{!}} {{{AUSLÄNDERANTEIL}}}}}{{#if:{{{GEMEINDEPRÄSIDENT|}}}|
</tr>}}
{{!}}-
{{#if:{{{FLÄCHE|}}}|<tr>
! Gemeindepräsident
<th>Fläche</th>
{{!}} {{{GEMEINDEPRÄSIDENT}}}}}{{#if:{{{STADTPRÄSIDENT|}}}|
<td>{{{FLÄCHE}}} km²</td>
{{!}}-
</tr>}}
! Stadtpräsident
{{#if:{{{EINWOHNER|}}}|<tr>
{{!}} {{{STADTPRÄSIDENT}}}}}{{#if:{{{WEBSITE|}}}|
<th>Einwohner</th>
{{!}}-
<td>{{{EINWOHNER}}}{{#if:{{{STAND EINWOHNER|}}}|<br><small>Stand: {{{STAND EINWOHNER}}}</small>}}</td>
! Website
</tr>}}
{{!}} [https://{{{WEBSITE}}} {{{WEBSITE}}}]}}
{{#if:{{{EINWOHNERDICHTE|}}}|<tr>
|}</includeonly><noinclude>
<th>Einwohnerdichte</th>
<td>{{{EINWOHNERDICHTE}}} Einw./km²</td>
</tr>}}
{{#if:{{{AUSLÄNDERANTEIL|}}}|<tr>
<th>Ausländeranteil</th>
<td>{{{AUSLÄNDERANTEIL}}}</td>
</tr>}}
{{#if:{{{GEMEINDEPRÄSIDENT|}}}|<tr>
<th>Gemeindepräsident</th>
<td>{{{GEMEINDEPRÄSIDENT}}}</td>
</tr>}}
{{#if:{{{STADTPRÄSIDENT|}}}|<tr>
<th>Stadtpräsident</th>
<td>{{{STADTPRÄSIDENT}}}</td>
</tr>}}
{{#if:{{{WEBSITE|}}}|<tr>
<th>Website</th>
<td>[https://{{{WEBSITE}}} {{{WEBSITE}}}]</td>
</tr>}}
</table>
</includeonly><noinclude>
{{Dokumentation}}
{{Dokumentation}}
</noinclude>
</noinclude>

Aktuelle Version vom 25. August 2026, 22:57 Uhr

Der Baustein Commonscat verweist auf eine Kategorie im freien Medienarchiv Wikimedia Commons.

Verwendung

{{Commonscat|Name der Commons-Kategorie|Angezeigter Name}}

Parameter

Parameter Beschreibung Erforderlich
1 Name der Kategorie auf Wikimedia Commons, ohne das Präfix Category: Nein
2 Text, der in der Verknüpfung angezeigt wird Nein

Wenn keine Parameter angegeben werden, verwendet die Vorlage den Namen der aktuellen Seite.

Beispiele

Mit zwei Parametern

{{Commonscat|Canton of Basel-Stadt|Kanton Basel-Stadt}}

Ergebnis:

Wikimedia Commons Wikimedia Commons: Medien zu Kanton Basel-Stadt

Mit einem Parameter

{{Commonscat|Canton of Zurich}}

Ohne Parameter

{{Commonscat}}

In diesem Fall wird der aktuelle Seitenname als Name der Commons-Kategorie und als Linktext verwendet.

TemplateData

Erstellt einen Verweis auf eine Kategorie in Wikimedia Commons.

Vorlagenparameter[Vorlagendaten bearbeiten]

Diese Vorlage bevorzugt Inline-Formatierung von Parametern.

ParameterBeschreibungTypStatus
Commons-Kategorie1

Name der Kategorie auf Wikimedia Commons ohne «Category:».

Beispiel
Canton of Basel-Stadt
Mehrzeiliger Textvorgeschlagen
Anzeigename2

Bezeichnung, die in der Verknüpfung angezeigt wird.

Beispiel
Kanton Basel-Stadt
Mehrzeiliger Textoptional