Template:Namespace detect/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Vertmobile
m OxBlue Corporation entry. Updated History, R&D, Clients & References
Ookami (talk | contribs)
m 77 revisions imported
 
(25 intermediate revisions by 23 users not shown)
Line 1: Line 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| approximately 140000 }}
{{Lua|Module:Namespace detect}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->


=== History ===
This is the {{tl|Namespace detect}} meta-template. It helps other templates detect what type of page they are on.
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 detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types:
; main : Main (i.e. article) space, where normal Wikipedia articles are kept.
; talk : Any talk space, including page names that start with "Talk:", "User talk:", "File talk:", etc.
'''{{hlist|user|wikipedia|file|mediawiki|template|help|category|portal|book}}'''
: The remaining namespaces.
; other : Any namespaces that were not specified as a parameter to the template (see explanation below).
For backwards compatibility, this template handles '''image''' as if '''file'''. '''image''' (<nowiki>[[Image:...]]</nowiki>) is now deprecated.
'''Note:''' For most cases it may be better to use the simpler namespace detection templates (see the [[#See also|see also]] section below). This template is more prone to human errors such as misspelling 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, 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
| file    = File page text
  | file    = File page text
| category = Category page text
  | category = Category page text
| other    =
  | other    =
  }}
 
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>


=== R&D Highlights ===
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
  }}


{| class="wikitable"
== Demospace and page ==
|-
| 2001 ||
* 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.
|-
| 2003 ||
* OxBlue offers enhanced back-end interface functionality allows users to drill down to specific images and events.
* 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 ===
For testing and demonstration purposes, this template can take two parameters named '''demospace''' and '''page'''.


[[File:OxBlue Construction Camera.png|thumb|OxBlue Construction Cameras]]
'''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>


'''Construction Cameras'''
No matter on what kind of page the code above is used, it will return this:
* A choice of 4, 6, 8 and 12 megapixels
: {{Namespace detect
* Ability to view images or HD time-lapse movies from a desktop, laptop, smart phone or tablet
  | main  = Article text
* Wireless transmission
  | other = Other pages text
* Simple installation and activation
  | demospace = main
* 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]]
The '''page''' parameter instead takes a normal pagename, making this template behave exactly as if on that page. The pagename doesn't have to be an existing page. Like this:
<pre>
{{Namespace detect
| user  = User page text
| other = Other pages text
| page  = User:Example
}}
</pre>


'''PTZ (point, tilt, zoom) Cameras'''
No matter on what kind of page the code above is used, it will return this:
* A choice of 4, 6, 8 and 12 megapixels
: {{Namespace detect
* Wireless transmission with an integrated controller; no additional onsite networks or devices required
  | user  = User page text
* Fully sealed for outdoor applications (IP67)
  | other = Other pages text
* Adaptable to a wide range of construction environments
  | page  = User:Example
* Optional solar power for a completely wire-free solution
  }}


[[File:OxBlue Solar.png|thumb|OxBlue Solar]]
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. Like this:
<pre>
{{Namespace detect
| main  = Article text
| other = Other pages text
| demospace = {{{demospace|}}}
| page  = {{{page|}}}
}}
</pre>
 
If both the '''demospace''' and '''page''' parameters are empty or undefined, the template will detect page types as usual.
 
== 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
* 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 "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&nbsp;= File page text", and as a value "demospace&nbsp;= image".


'''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'''. It already automatically detected "Book talk:" as type '''talk'''.
* 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]]
If you intend to feed tables as content to the numbered parameters of this template, you need to know this:


'''Time-Lapse Movies'''
[[Help:Template|Templates]] have a problem handling 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.
* Monitor progress, track back to discover when an issue occurred or analyze performance and sequencing work.


=== Clients ===
For more technical details, e.g. about copying this template to other projects and CSS-based namespace detection, see {{tl|Main talk other}} and its talk page.


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.
== See also ==
{{Namespace and pagename-detecting templates}}


==References==
<includeonly>{{Sandbox other|
<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>
| <!--Categories below this line, please; interwikis at Wikidata-->
<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>
[[Category:Namespace manipulation templates]]
<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>
}}</includeonly>
<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>
<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>
<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>
<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>
<ref>McCormack, Chandler, [http://oxblue.com/pdf/Oil_Gas_Construction_Cameras.pdf "Cameras Improving Energy EPC Management"], ''Zeus Technology Magazine'', May 2009</ref>
<ref>Tom Inglesby, [http://www.constructech.com/news/articles/article.aspx?article_id=6418 "More Than a Project"], ''Constructech Magazine'', January 2008</ref>
<ref>[http://www.constructech.com/news/articles/article.aspx?article_id=6243 "Webcam Benefits"], ''Constructech Magazine'', November 2007</ref>
<ref>[http://www.constructech.com/news/articles/article.aspx?article_id=4293 "Unique Collaboration"], ''Constructech Magazine'', September 2006</ref>
<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>
<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>
<ref>Denise Jennings, [http://oxblue.com/site/resource/pdf/ConstExecArticle.pdf "Lessons Learned: Webcams for Contractors"], ''Construction Executive Magazine'', June 2003</ref>
<references />

Latest revision as of 22:48, 3 September 2020

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 (i.e. article) space, where normal Wikipedia articles are kept.
talk
Any talk space, including page names that start with "Talk:", "User talk:", "File talk:", etc.

  • user
  • wikipedia
  • file
  • mediawiki
  • template
  • help
  • category
  • portal
  • book
The remaining namespaces.
other
Any namespaces that were not specified as a parameter to the template (see explanation below).

For backwards compatibility, this template handles image as if file. image ([[Image:...]]) is now deprecated.

Note: For most cases it may be better to use the simpler namespace detection templates (see the see also section below). This template is more prone to human errors such as misspelling 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, 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, making 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. 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, 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. It already automatically detected "Book talk:" as type talk.

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

Templates have a problem handling 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, e.g. about copying this template to other projects and CSS-based namespace detection, see {{Main talk other}} and its talk page.

See also