Skabelon:Geobox: Forskelle mellem versioner

Fra Wikipedia, den frie encyklopædi
Content deleted Content added
Undlad at bruge tomme parametre af typen source_country, source_state, mouth_country, mouth_state osv.
Linje 19: Linje 19:
|1={{{mouth_lat_d|}}} |2={{{mouth_lat_m|}}} |3={{{mouth_lat_s|}}} |4={{{mouth_lat_NS|}}}
|1={{{mouth_lat_d|}}} |2={{{mouth_lat_m|}}} |3={{{mouth_lat_s|}}} |4={{{mouth_lat_NS|}}}
|5={{{mouth_long_d|}}} |6={{{mouth_long_m|}}} |7={{{mouth_long_s|}}} |8={{{mouth_long_EW|}}}
|5={{{mouth_long_d|}}} |6={{{mouth_long_m|}}} |7={{{mouth_long_s|}}} |8={{{mouth_long_EW|}}}
|country={{{mouth_country|{{{country|}}}}}}
|country={{#if: {{{mouth_country|}}} | {{{mouth_country}}} | {{{country|}}} }}
|state={{{mouth_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{mouth_state|}}} | {{{mouth_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 962: Linje 962:
|5={{{source_lat_d|}}} |6={{{source_lat_m|}}} |7={{{source_lat_s|}}} |8={{{source_lat_NS|}}}
|5={{{source_lat_d|}}} |6={{{source_lat_m|}}} |7={{{source_lat_s|}}} |8={{{source_lat_NS|}}}
|9={{{source_long_d|}}} |10={{{source_long_m|}}} |11={{{source_long_s|}}} |12={{{source_long_EW|}}}
|9={{{source_long_d|}}} |10={{{source_long_m|}}} |11={{{source_long_s|}}} |12={{{source_long_EW|}}}
|country={{{source_country|{{{country|}}}}}}
|country={{#if: {{{source_country|}}} | {{{source_country}}} | {{{country|}}} }}
|state={{{source_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{source_state|}}} | {{{source_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 1.020: Linje 1.020:
|5={{{source1_lat_d|}}} |6={{{source1_lat_m|}}} |7={{{source1_lat_s|}}} |8={{{source1_lat_NS|}}}
|5={{{source1_lat_d|}}} |6={{{source1_lat_m|}}} |7={{{source1_lat_s|}}} |8={{{source1_lat_NS|}}}
|9={{{source1_long_d|}}} |10={{{source1_long_m|}}} |11={{{source1_long_s|}}} |12={{{source1_long_EW|}}}
|9={{{source1_long_d|}}} |10={{{source1_long_m|}}} |11={{{source1_long_s|}}} |12={{{source1_long_EW|}}}
|country={{{source1_country|{{{country|}}}}}}
|country={{#if: {{{source1_country|}}} | {{{source1_country}}} | {{{country|}}} }}
|state={{{source1_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{source1_state|}}} | {{{source1_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 1.078: Linje 1.078:
|5={{{source2_lat_d|}}} |6={{{source2_lat_m|}}} |7={{{source2_lat_s|}}} |8={{{source2_lat_NS|}}}
|5={{{source2_lat_d|}}} |6={{{source2_lat_m|}}} |7={{{source2_lat_s|}}} |8={{{source2_lat_NS|}}}
|9={{{source2_long_d|}}} |10={{{source2_long_m|}}} |11={{{source2_long_s|}}} |12={{{source2_long_EW|}}}
|9={{{source2_long_d|}}} |10={{{source2_long_m|}}} |11={{{source2_long_s|}}} |12={{{source2_long_EW|}}}
|country={{{source2_country|{{{country|}}}}}}
|country={{#if: {{{source2_country|}}} | {{{source2_country}}} | {{{country|}}} }}
|state={{{source2_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{source2_state|}}} | {{{source2_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 1.126: Linje 1.126:
|5={{{source_confluence_lat_d|}}} |6={{{source_confluence_lat_m|}}} |7={{{source_confluence_lat_s|}}} |8={{{source_confluence_lat_NS|}}}
|5={{{source_confluence_lat_d|}}} |6={{{source_confluence_lat_m|}}} |7={{{source_confluence_lat_s|}}} |8={{{source_confluence_lat_NS|}}}
|9={{{source_confluence_long_d|}}} |10={{{source_confluence_long_m|}}} |11={{{source_confluence_long_s|}}} |12={{{source_confluence_long_EW|}}}
|9={{{source_confluence_long_d|}}} |10={{{source_confluence_long_m|}}} |11={{{source_confluence_long_s|}}} |12={{{source_confluence_long_EW|}}}
|country={{{source_confluence_country|{{{country|}}}}}}
|country={{#if: {{{source_confluence_country|}}} | {{{source_confluence_country}}} | {{{country|}}} }}
|state={{{source_confluence_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{source_confluence_state|}}} | {{{source_confluence_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 1.175: Linje 1.175:
|5={{{mouth_lat_d|}}} |6={{{mouth_lat_m|}}} |7={{{mouth_lat_s|}}} |8={{{mouth_lat_NS|}}}
|5={{{mouth_lat_d|}}} |6={{{mouth_lat_m|}}} |7={{{mouth_lat_s|}}} |8={{{mouth_lat_NS|}}}
|9={{{mouth_long_d|}}} |10={{{mouth_long_m|}}} |11={{{mouth_long_s|}}} |12={{{mouth_long_EW|}}}
|9={{{mouth_long_d|}}} |10={{{mouth_long_m|}}} |11={{{mouth_long_s|}}} |12={{{mouth_long_EW|}}}
|country={{{mouth_country|{{{country|}}}}}}
|country={{#if: {{{mouth_country|}}} | {{{mouth_country}}} | {{{country|}}} }}
|state={{{mouth_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{mouth_state|}}} | {{{mouth_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 2.457: Linje 2.457:
|5={{{management_lat_d|}}} |6={{{management_lat_m|}}} |7={{{management_lat_s|}}} |8={{{management_lat_NS|}}}
|5={{{management_lat_d|}}} |6={{{management_lat_m|}}} |7={{{management_lat_s|}}} |8={{{management_lat_NS|}}}
|9={{{management_long_d|}}} |10={{{management_long_m|}}} |11={{{management_long_s|}}} |12={{{management_long_EW|}}}
|9={{{management_long_d|}}} |10={{{management_long_m|}}} |11={{{management_long_s|}}} |12={{{management_long_EW|}}}
|country={{{management_country|{{{country|}}}}}}
|country={{#if: {{{management_country|}}} | {{{management_country}}} | {{{country|}}} }}
|state={{{management_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{management_state|}}} | {{{management_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}
Linje 2.505: Linje 2.505:
|5={{{government_lat_d|}}} |6={{{government_lat_m|}}} |7={{{government_lat_s|}}} |8={{{government_lat_NS|}}}
|5={{{government_lat_d|}}} |6={{{government_lat_m|}}} |7={{{government_lat_s|}}} |8={{{government_lat_NS|}}}
|9={{{government_long_d|}}} |10={{{government_long_m|}}} |11={{{government_long_s|}}} |12={{{government_long_EW|}}}
|9={{{government_long_d|}}} |10={{{government_long_m|}}} |11={{{government_long_s|}}} |12={{{government_long_EW|}}}
|country={{{government_country|{{{country|}}}}}}
|country={{#if: {{{government_country|}}} | {{{government_country}}} | {{{country|}}} }}
|state={{{government_state|{{{state|{{{region|}}}}}}}}}
|state={{#if: {{{government_state|}}} | {{{government_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }}
|type={{{1|}}}
|type={{{1|}}}
|pop={{{population|}}}
|pop={{{population|}}}

Versionen fra 16. feb. 2017, 17:28

Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

Usage

Blank templates

See Template:Geobox/type for descriptions of each feature type: Protected area, Region, River, etc.

Blank templates for each feature type:

Examples

See the following for examples of template usage:

Parameters

A full list of the parameters available can be found at Template:Geobox/legend#Fields.

Purpose

These geoboxes were created:

  • To provide a means for creating consistently-formatted tables and summarizing information
  • To improve navigation between articles within closely-related subjects
  • To maximize the ease of creating and upgrading infoboxes
  • To improve the ease of transferring information to other language Wikipedias by using standardized, database-like fields

Features

  • no need to format the input data in any way; it is handled by the template
  • automated locator dot placement on maps, based on coordinates or X/Y values
  • automated unit conversion from metric to imperial or reverse
  • automated wikilinking
  • additional fields
  • background maps
  • foldable list on all multiple fields
  • international categories, (e.g., World Heritage Site), eliminating the need for a second infobox on the same page

Tracking categories

Other guidelines

This general, multi-purpose geobox template duplicates features contained in various other, more specific geography and place infobox templates (like {{Infobox settlement}} for settlements, and {{Infobox protected area}} for protected areas. In general, editors should not change from one to the other without good reason or broad consensus.

Exceptions where broad consensus has been achieved are:

The last major merge/deletion discussion of this template was held in January 2012, which resulted in no consensus.

See also

  • Help:Infobox – from the Editor Handbook
  • History – version notes
  • Legend – instructions for each field
  • Samples – several completed examples to view for reference
  • Types – sample templates for buildings, nature protected areas, regions, and water, etc.


</noinclude>

{{Geobox}}
Geobox er en infoboksskabelon for alle typer af geografiske (indtil videre kun implementeret i kommuner og sogne) data. Med denne skabelon antages det, at der ikke er yderligere behov for skabeloner til geografiske data.

Nedenfor er ikke oversat fra svensk, da denne skabelon er i brug.

Fördelar

Observera: man behöver inte formatera inmatade data på något vis, allt sköts av mallen.
  • automatiska lokaliseringspunkter (locator dots) på kartor, baserat på koordinater eller X/Y-värden
  • automatiska statsflaggor och regionala flaggor
  • bakgrundskartor
  • infällbara listor för alla fält som omfattar flera rader
  • internationella kategorier (till exempel Världsarv), som gör att ytterligare faktarutor på samma sida inte behövs
  • automatisk wikilänkning

Nackdelar

  • många ovidkommande parametrar
  • ofta parameternamn på engelska

Varför infördes Geobox?

För att

  • standardisera och gallra i snårskogen av inkonsekventa geografiska mallar,
  • förbättra navigationen mellan relaterade artiklar,
  • förenkla införandet och underhållet av faktarutor,
  • förbättra informationsöverföringen mellan olika språkversioner av Wikipedia, genom standardiserade fält och
  • för att en lång rad geografiska faktarutor saknades på svenskspråkiga Wikipedia.

Dokumentation och exempel

Typer og blanke skabeloner

Geobox klarer flere forskellige typer af geografiske objekter.

Bjerggeologiska formationer Naturskyddade områden Bygning Regioner Bebyggelserorter vand
Även för:
  • ö, halvö, grotta, pass, geologi och liknande
Använd för:
  • nationalpark, reservat, friluftsområde och liknande
Använd även för:
  • klocktorn, bro och liknande
Använd för:
  • delstat, provins, län, kommun och liknande
Använd för:
  • stad, tätort, by, stadsdel och liknande
Använd för:
  • reservoar, bäck, å, älv, vatten och liknande

Om det inte finns en färdig, blank mall för din typ av objekt, utgå från den kompletta mallen nedan. Radera de parametrar som inte kommer att användas i den nya typen.

Se även