Vorlage:Infobox Gemeinde: Unterschied zwischen den Versionen

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