Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Vertmobile
K (OxBlue Corporation entry. Updated History, R&D, Clients & References)
imported>Brlodi
(Undid revision 538107530 by Vertmobile (talk))
Zeile 1: Zeile 1:
OxBlue Corporation, based in Atlanta, Georgia, manufactures and sells high resolution camera systems used for communicating the status of construction projects and documenting construction activity. Founded in 2001, OxBlue’s products and services include construction cameras, solar power systems, software, camera mounts, installation, archiving services, wireless solutions and professional time-lapse video production.
{{documentation subpage}}
{{high-risk|3,000,000+}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


=== History ===
This is the {{tl|namespace detect}} meta-template.
OxBlue was founded in 2001 by two graduates of the Georgia Institute of Technology: Chandler McCormack and Bryan Mattern. McCormack was a civil engineer and senior project manager for Paulson Mitchell, an Atlanta based civil engineering firm serving commercial, industrial and residential clients throughout the southeast. Mattern was a senior technical consultant who specialized in the development of enterprise communication platforms and had a background in construction engineering.


It helps other templates detect what type of page they are on.
It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types:
:'''main''' = Main/article space, as in normal Wikipedia articles.
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on.
:'''user, wikipedia, file, mediawiki, template, help, category''', '''portal''' and '''book''' = The other namespaces except the talk pages.
:'''other''' = Any namespaces that were not specified as a parameter to the template. See explanation below.
For backwards compatibility this template also understands the old name '''image''' for '''file'''. But using '''image''' is now deprecated.
'''Note!''' For most usage cases it might be better to use the simpler namespace detection templates. (See the [[#See also|see also]] section below.) Since this template is more prone to human errors such as misspelling the parameter names.
=== Usage ===
This template takes one or more parameters named after the different page types as listed above. Like this:
<pre>
{{namespace detect
| main  = Article text
| talk  = Talk page text
| other = Other pages text
}}
</pre>
If the template is on a main (article) page, it will return this:
:{{namespace detect| demospace=main
| main  = Article text
| talk  = Talk page text
| other = Other pages text
}}
If the template is on any other page than an article or a talk page it will return this:
:{{namespace detect
| main  = Article text
| talk  = Talk page text
| other = Other pages text
}}
The example above made the template return something for all page types. But if we don't use the '''other''' parameter or leave it empty then it will not return anything for the other page types. Like this:
<pre>
{{namespace detect
| file    = File page text
| category = Category page text
| other    =
}}
</pre>
On any pages other than file and category pages the code above will render nothing.
<!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. -->
<!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. -->
:{{namespace detect
:{{namespace detect
Zeile 11: Zeile 63:
}}
}}


=== R&D Highlights ===
By using an empty parameter you can make it so the template doesn't render anything for some specific page type. Like this:
 
<pre>
{{namespace detect
| main  =  
| other = Other pages text
}}
</pre>
 
The code above will render nothing when on mainspace (article) pages, but will return this when on other pages:
 
:{{namespace detect
| main  =  
| other = Other pages text
}}
 
=== Demospace and page ===
For testing and demonstration purposes this template can take two parameters named '''demospace''' and '''page'''.
 
Demospace understands any of the page type names used by this template, including the '''other''' type. It tells the template to behave like it is on some specific type of page. Like this:
 
<pre>
{{namespace detect
| main  = Article text
| other = Other pages text
| demospace = main
}}
</pre>
 
No matter on what kind of page the code above is used it will return this:
 
:{{namespace detect
| main  = Article text
| other = Other pages text
| demospace = main
}}
 
The '''page''' parameter instead takes a normal pagename. It makes this template behave exactly as if on that page. The pagename doesn't have to be an existing page. Like this:


{| class="wikitable"
<pre>
|-
{{namespace detect
| 2001 ||
| user  = User page text
* OxBlue was founded and development of an outdoor 3 megapixel construction camera system solution which included connectivity, archiving and access software was made commercially available.
| other = Other pages text
|-
| page = User:Example
| 2003 ||
}}
* OxBlue offers enhanced back-end interface functionality allows users to drill down to specific images and events.
</pre>
* Image enhancement technology increases the quality of the images and allows users to zoom in on specific details.
* OxBlue develops systems to wirelessly transmit ultra high-resolution images over the nation's cellular network.
|-
| 2006 ||
* OxBlue introduced a 6-megapixel camera system and launched its OxBlue Pro interface featuring the Project Dashboard, which allowed users to monitor dozens of project cameras simultaneously.
|-
| 2007 ||
* OxBlue released a new line of proprietary solar systems.
|-
| 2009 ||
* OxBlue completed the asset acquisition of Digital Job Site.
|-
| 2010 ||
* OxBlue introduced several new camera and workplace tools including: A new line of wireless, robotic PTZ cameras that improve viewing angles and reduce the number of cameras required at large jobsites.
* An 12-megapixel construction camera system, doubling the image resolution of OxBlue’s standard system.
* The ability to produce Blu-ray time-lapse videos for HD viewing.
* A new iPhone/iPad application that enabled users to access all features of the OxBlue interface from any handheld device.
* A standardized API interface that enabled integration with partner and client systems
|-
| 2011 ||
* New interface enhancements make it easier to find images and produce HD-quality, time-lapse videos
|}


=== Products ===
No matter on what kind of page the code above is used it will return this:


[[File:OxBlue Construction Camera.png|thumb|OxBlue Construction Cameras]]
:{{namespace detect
| user  = User page text
| other = Other pages text
| page = User:Example
}}


'''Construction Cameras'''
It can be convenient to let your template understand the demospace and/or page parameter and send it on to the {{tl|namespace detect}} template. Then do like this:
* A choice of 4, 6, 8 and 12 megapixels
* Ability to view images or HD time-lapse movies from a desktop, laptop, smart phone or tablet
* Wireless transmission
* Simple installation and activation
* Rugged, weather-proof enclosure with environmental controls
* The option of solar power for a completely wire-free solution
* Lifetime warranty


[[File:OxBlue PTZ Construction Camera.png|thumb|OxBlue PTZ Construction Camera]]
<pre>
{{namespace detect
| main  = Article text
| other = Other pages text
| demospace = {{{demospace|}}}
| page  = {{{page|}}}
}}
</pre>


'''PTZ (point, tilt, zoom) Cameras'''
If both the '''demospace''' and '''page''' parameters are empty or undefined then the template will detect page types as usual.
* A choice of 4, 6, 8 and 12 megapixels
* Wireless transmission with an integrated controller; no additional onsite networks or devices required
* Fully sealed for outdoor applications (IP67)
* Adaptable to a wide range of construction environments
* Optional solar power for a completely wire-free solution


[[File:OxBlue Solar.png|thumb|OxBlue Solar]]
=== Parameters ===
List of all parameters:
 
<pre>
{{namespace detect
| main  =
...
| other =
| demospace = {{{demospace|}}} / main / talk / user /
              wikipedia / file / mediawiki / template /
              help / category / portal / book / other
| page  = {{{page|}}} / User:Example
}}
</pre>


'''Solar Power Station'''
Note: Empty values to the "main" ... "book" parameters have special meaning.
* Power disconnect
* Lightning arrest
* Charge controller
* Lockable enclosure
* Uninterrupted power to the camera with a minimum reliability of 99.5% based on weather and insulation data specific to the design region
* Over five days of autonomy based on average low temperature for the region
* Marine quality components
* Digital display showing system status and condition


'''Solar Trailer'''
=== Technical details ===
* Maximum camera mounting height of 30 feet
Namespace "Image" was renamed to "File" on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands "image" both as a parameter name, such as "image = File page text", and as a value "demospace = image".
* No need to mount cameras on poles or buildings
* Solar powered; no electric service required
* Self-contained, with both solar power and wireless connectivity built in


[[File:OxBlue Software.png|thumb|OxBlue Software]]
Namespace "Book" was added to the English Wikipedia on 28 December 2009. This template has been updated so it detects the "Book:" namespace as type '''book''', and it already automatically detected "Book talk:" as type '''talk'''.


'''Software'''
If you intend to feed tables as content to the numbered parameters of this template, then you need to know this:
* Accessible from any desktop, laptop, smart phone or iPad
* Access time-lapse movies
* View a high-resolution image from any specific date and time
* Digital zoom and pan for detailed viewing
* Compare images over multiple days, weeks or months
* Review detailed weather information on every image
* Custom branded interface includes corporate logo and embedded links


[[File:OxBlue Time-Lapse.png|thumb|OxBlue Time-Lapse]]
[[Help:Template|Templates]] do have a problem to handle parameter data that contains pipes "<code>|</code>", unless the pipe is inside another template <code><nowiki>{{name|param1}}</nowiki></code> or inside a piped link <code><nowiki>[[Help:Template|help]]</nowiki></code>. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead the usual solution is to use "[[Help:HTML in wikitext|HTML wikimarkup]]" for the table code, which is more robust.


'''Time-Lapse Movies'''
For more technical details such as about "copying to other projects" and "CSS based namespace detection" see {{tl|main talk other}} and its talk page.
* Monitor progress, track back to discover when an issue occurred or analyze performance and sequencing work.


=== Clients ===
=== See also ===
{{namespace detect see also}}


OxBlue serves customers in retail, education, healthcare, transportation, energy, and commercial and multi-family construction. Their geographic footprint covers six continents and all 50 U.S. states.
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Namespace manipulation templates]]


==References==
[[ar:قالب:Namespace detect]]
<ref>MCD, [http://oxblue.com/site/resource/pdf/MCD_Green_2012.pdf "Construction cameras document University of Iowa Healthcare Projects"], ''Medical Construction & Design'', November/December 2012</ref>
[[be-x-old:Шаблён:Вызначэньне прасторы назваў]]
<ref>Wilson, Marianne , [http://www.chainstoreage.com/article/web-based-cameras-keep-walmart%E2%80%99s-sustainability-projects-track "Web-based cameras keep Walmart’s sustainability projects on track"], ''Chain Store Age'', June/July 2012</ref>
[[bn:টেমপ্লেট:Namespace detect]]
<ref>McCormack, Chandler, [http://pwmag.com/industry-news.asp?sectionID=760&articleID=1812542 "On the record: Using Webcams to Document, Share and Archive"], ''Public Works'', February 2012</ref>
[[ca:Plantilla:Detecta espai de noms]]
<ref>Deena M. Amato-Mccoy, [http://www.stores.org/STORES%20Magazine%20January%202012/eye-sky#.URv91Vo4WfA "Eye in the Sky"], ''Eye in the Sky'', January 2012</ref>
[[cy:Nodyn:Namespace detect]]
<ref>John P. Lamutt, [http://www.constructionexec.com/Issues/December_2011/Tech_Trends.aspx "A Picture Is Worth a Thousand Dollars"], ''Construction Executive Magazine'', December 2012</ref>
[[hsb:Předłoha:Namespace detect]]
<ref>Debra Wood, [http://constructor.agc.org/mag/2011/Sept-Oct/1110-OfftheGrid.asp "Off The Grid: Solar-powered Jobsite Cameras Allow for More Flexibility of Use"], ''Constructor'', September/October 2012</ref>
[[ko:틀:이름공간 검출]]
<ref>McCormack, Chandler, [http://oxblue.com/pdf/OxBlueExecInsights_May2011.pdf "New Technologies Having a Positive Impact on Contractors' Bottom Lines"], ''Construction Executive Magazine'', May 2011</ref>
[[ja:Template:Namespace detect]]
<ref>McCormack, Chandler, [http://oxblue.com/pdf/Oil_Gas_Construction_Cameras.pdf "Cameras Improving Energy EPC Management"], ''Zeus Technology Magazine'', May 2009</ref>
[[mn:Загвар:Namespace detect]]
<ref>Tom Inglesby, [http://www.constructech.com/news/articles/article.aspx?article_id=6418 "More Than a Project"], ''Constructech Magazine'', January 2008</ref>
[[no:Mal:Namespace detect]]
<ref>[http://www.constructech.com/news/articles/article.aspx?article_id=6243 "Webcam Benefits"], ''Constructech Magazine'', November 2007</ref>
[[pt:Predefinição:Namespace detect]]
<ref>[http://www.constructech.com/news/articles/article.aspx?article_id=4293 "Unique Collaboration"], ''Constructech Magazine'', September 2006</ref>
[[sl:Predloga:Namespace detect]]
<ref>McCormack, Chandler, [http://oxblue.com/site/resource/pdf/constructionExec.pdf "Tech Trends: Breaking New Ground in Construction Camera Technology"], ''Construction Executive'', March 2007</ref>
[[sr:Шаблон:Namespace detect]]
<ref>John, Seelmeyer, [http://oxblue.com/site/resource/pdf/NevadaBusinesChronicle.pdf "Web Cams: a New Tool for Managers of Construction"], ''Northern Nevada Business Weekly'', November 2005</ref>
[[uk:Шаблон:Namespace detect]]
<ref>Denise Jennings, [http://oxblue.com/site/resource/pdf/ConstExecArticle.pdf "Lessons Learned: Webcams for Contractors"], ''Construction Executive Magazine'', June 2003</ref>
[[ur:سانچہ:Namespace detect]]
<references />
[[zh:Template:Namespace detect]]
</includeonly>

Version vom 16. Februar 2013, 01:31 Uhr

Gnome-emblem-important.svg
Diese Vorlage wird auf 3,000,000+ Seiten verwendet
Um große Unterbrechungen und unnötige Serverauslastung zu vermeiden, solltest du Änderungen an anderer Stelle testen, indem du beispielsweise den Quellcode dieser Vorlage kopierst und in den Benutzerbereich oder in die Sandbox einfügst. Erwäge, deine Änderungen auf der Diskussionsseite vorzuschlagen, bevor du diese Vorlage bearbeitest.

This is the {{namespace detect}} meta-template.

It helps other templates detect what type of page they are on.

It detects and groups all the different namespaces used on Wikipedia into several types:

main = Main/article space, as in normal Wikipedia articles.
talk = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on.
user, wikipedia, file, mediawiki, template, help, category, portal and book = The other namespaces except the talk pages.
other = Any namespaces that were not specified as a parameter to the template. See explanation below.

For backwards compatibility this template also understands the old name image for file. But using image is now deprecated.

Note! For most usage cases it might be better to use the simpler namespace detection templates. (See the see also section below.) Since this template is more prone to human errors such as misspelling the parameter names.

Usage

This template takes one or more parameters named after the different page types as listed above. Like this:

{{namespace detect
| main  = Article text
| talk  = Talk page text
| other = Other pages text
}}

If the template is on a main (article) page, it will return this:

Article text

If the template is on any other page than an article or a talk page it will return this:

Other pages text

The example above made the template return something for all page types. But if we don't use the other parameter or leave it empty then it will not return anything for the other page types. Like this:

{{namespace detect
| file     = File page text
| category = Category page text
| other    =
}}

On any pages other than file and category pages the code above will render nothing.

By using an empty parameter you can make it so the template doesn't render anything for some specific page type. Like this:

{{namespace detect
| main  = 
| other = Other pages text
}}

The code above will render nothing when on mainspace (article) pages, but will return this when on other pages:

Other pages text

Demospace and page

For testing and demonstration purposes this template can take two parameters named demospace and page.

Demospace understands any of the page type names used by this template, including the other type. It tells the template to behave like it is on some specific type of page. Like this:

{{namespace detect 
| main  = Article text
| other = Other pages text
| demospace = main
}}

No matter on what kind of page the code above is used it will return this:

Article text

The page parameter instead takes a normal pagename. It makes this template behave exactly as if on that page. The pagename doesn't have to be an existing page. Like this:

{{namespace detect 
| user  = User page text
| other = Other pages text
| page = User:Example
}}

No matter on what kind of page the code above is used it will return this:

User page text

It can be convenient to let your template understand the demospace and/or page parameter and send it on to the {{namespace detect}} template. Then do like this:

{{namespace detect 
| main  = Article text
| other = Other pages text
| demospace = {{{demospace|}}}
| page  = {{{page|}}}
}}

If both the demospace and page parameters are empty or undefined then the template will detect page types as usual.

Parameters

List of all parameters:

{{namespace detect
| main  = 
...
| other =
| demospace = {{{demospace|}}} / main / talk / user / 
              wikipedia / file / mediawiki / template / 
              help / category / portal / book / other
| page  = {{{page|}}} / User:Example
}}

Note: Empty values to the "main" ... "book" parameters have special meaning.

Technical details

Namespace "Image" was renamed to "File" on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands "image" both as a parameter name, such as "image = File page text", and as a value "demospace = image".

Namespace "Book" was added to the English Wikipedia on 28 December 2009. This template has been updated so it detects the "Book:" namespace as type book, and it already automatically detected "Book talk:" as type talk.

If you intend to feed tables as content to the numbered parameters of this template, then you need to know this:

Templates do have a problem to handle parameter data that contains pipes "|", unless the pipe is inside another template {{name|param1}} or inside a piped link [[Help:Template|help]]. Thus templates can not handle wikitables as input unless you escape them by using the {{!}} template. This makes it hard to use wikitables as parameters to templates. Instead the usual solution is to use "HTML wikimarkup" for the table code, which is more robust.

For more technical details such as about "copying to other projects" and "CSS based namespace detection" see {{main talk other}} and its talk page.

See also

Weitere Vorlagen für den Umgang mit Namensräumen

Die folgenden Vorlagen beschränken die Ausgabe auf einen Namensraum und bieten für alle anderen Namensräume eine Alternative. Verschachtelungen sind möglich.

  • {{Main other|Auszugebender Text}} – Für Ausgaben im Artikelnamensraum
  • {{Talk other|Auszugebender Text}} – Für Ausgaben auf Diskussionsseiten
  • {{User other|Auszugebender Text}} – Für Ausgaben auf Benutzerseiten
  • {{Wikivoyage other|Auszugebender Text}} – Für Ausgaben im Projektnamensraum
  • {{Template other|Auszugebender Text}} – Für Ausgaben auf Vorlagenseiten
  • {{Help other|Auszugebender Text}} – Für Ausgaben auf Hilfeseiten
  • {{File other|Auszugebender Text}} – Für Ausgaben im Dateinamensraum
  • {{Category other|Auszugebender Text}} – Für Ausgaben auf Kategorieseiten
  • {{Portal other|Auszugebender Text}} – Für Ausgaben im Portalnamensraum
  • {{Module other|Auszugebender Text}} – Für Ausgaben auf Modulseiten
  • {{Single namespace|Namensraum|Auszugebender Text}} – Allgemeine Form für die obigen Vorlagen, der die Bezeichnung des Namensraums als Parameter mit übergeben wird

Weitere Werkzeuge zur Erkennung und Behandlung von Namensräumen

  • {{NAMESPACEID|<optionaler Namensraum>}} – Die Vorlage fungiert als magisches Wort und liefert die Nummer des Namensraums des Artikels oder man übergibt eine Namensraumbezeichnung
  • {{Incorrect namespace|Namensraum}} – Erzeugt eine Ausgabe und Fehlerkategorisierung, wenn eine Vorlage im falschen Namensraum benutzt wird
  • {{Category handler|Namensraum = Kategorie|...}} – Erlaubt eine namensraumabhängige Kategorisierung.

Behandlung und Erkennung von Artikelbezeichnungen:

  • {{If pagename|Auszugebender Text}} – Vorlage zur Prüfung, auf welcher Unterseite sich eine Vorlage befindet. z.B. /Doku oder ähnliches.

Weitere technische Informationen: