Vorlage:Infobox Gemeinde: Unterschied zwischen den Versionen

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