Skabelon:Geobox: Forskelle mellem versioner
Steenth (diskussion | bidrag) Håndtere sider med gentaget skabelonparameter med findargdups |
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={{#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={{#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={{#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={{#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={{#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={{#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={{#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={{#if: {{{government_state|}}} | {{{government_state}}} | {{#if: {{{state|}}} | {{{state}}} | {{{region|}}} }} }} |
||
|type={{{1|}}} |
|type={{{1|}}} |
||
|pop={{{population|}}} |
|pop={{{population|}}} |
Versionen fra 16. feb. 2017, 17:28
Usage
Blank templates
See Template:Geobox/type for descriptions of each feature type: Protected area, Region, River, etc.
Blank templates for each feature type:
- Template:Geobox/type/all – using all fields
- Template:Geobox/type/bell – using
{{Geobox|Monument
- Template:Geobox/type/building – using
{{Geobox|Building
- Template:Geobox/type/nature – using
{{Geobox|Protected area
- Template:Geobox/type/region – using
{{Geobox|Region
- Template:Geobox/type/river – using
{{Geobox|River
- Template:Geobox/type/valley – using
{{Geobox|Valley
Examples
See the following for examples of template usage:
- Template:Geobox/sample – using all fields
- Template:Geobox/doc/Protected area – using
{{Geobox|Protected area
- Template:Geobox/doc/Region – using
{{Geobox|Region
- Template:Geobox/doc/River – using
{{Geobox|River
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 use of this template for mountains is not supported. The relevant code has been removed. Use {{Infobox mountain}} instead.
- The use of this template for mountain ranges is not supported. The relevant code has been removed. Use {{Infobox mountain range}} instead.
- The use of this template for provinces is deprecated. Use {{Infobox settlement}} instead. The former provinces instances have been replaced.
- The use of this template for boroughs is deprecated. Use {{Infobox settlement}} instead. The former borough instances have been replaced.
- The use of this template for townships is deprecated. Use {{Infobox settlement}} instead. The former township instances have been replaced.
- The use of this template for settlement is deprecated. Use {{Infobox settlement}} instead.
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>
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
- Dokumentation — funktioner och parametrar
- Exempel — ifyllda exempel för visuell referens
Typer og blanke skabeloner
Geobox klarer flere forskellige typer af geografiske objekter.
Bjerg — geologiska formationer | Natur — skyddade områden | Bygning | Regioner | Bebyggelser — orter | vand |
Även för:
|
Använd för:
|
Använd även för:
|
Använd för:
|
Använd för:
|
Använd för:
|
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
- en:History — historia för och versioner av mallen på engelska Wikipedia
- Wikipedia:Projekt mallstandardisering — förteckning över gamla mallar att konvertera till Geobox
Dokumentationen ovenfor er transkluderet fra Skabelon:Geobox/doc. (redigér | historik) Brugere kan eksperimentere i denne skabelons undersider sandkasse (redigér | forskel) og testcases (opret). Tilføj venligst kategorier til /dok-undersiden. Undersider til denne skabelon. |