Difference between revisions of "CamelCase"

From WikiIndex
Jump to: navigation, search
(Update)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''CamelCase''' is the archaic term identifying the ability to link to another page on early [[wiki]]s by removing the space between two (or more) words which began with capital letters.  At the time, it was a revolutionary way of thinking of technology ''"What is the simplest thing we can do to make this work?"'' to paraphrase [[WardCunningham]].  CamelCase is very important for 'LinkLanguage' that is writing and adding links easily to your writing.  Ward has commented that instead of adding 10 characters to make a link, he took away one.  [[JohnAbbe]] pointed out that you have to shift (on the keyboard) for each word capitalized.
+
{{TOC right}}
 +
'''CamelCase''', originally known as '''WikiWords''', and grammatically known as 'medial capitals', is the archaic but historically and significantly important {{tag|Terms|term}} identifying the ability to create an internal link to another page on early [[WhatIsWiki|wiki sites]].  It did so by removing the space between two (or more) words which began with capital letters.  At the time, it was an inspired and revolutionary way of thinking for technology; ''"What is the simplest thing we can do to make this work?"'', to paraphrase [[Ward Cunningham]] (the creator of the [[wiki]]).  CamelCase is very important for 'LinkLanguage'; that is: writing and adding links easily to your writing, whilst maintaining clarity of an otherwise easily confusable link.<ref>An example of a confusing link which ''should'' have used LinkLanguage was a Twitter '{{Wp|hashtag}}': <tt>#nowthatcherisdead</tt>.  This was mistakenly confused and thus reported (inaccurately) that the famous US pop singer {{Wp|Cher}} had died, presumably from a misconstrued <tt>#NowThatCherIsDead</tt>!  The hashtag was actually intended to promulgate the news of the death of {{Wp|Margaret Thatcher}}, a former [[:Category:United Kingdom|British]] Prime Minister, and thus would have been better stylised <tt>#NowThatcherIsDead</tt>.</ref> Ward has commented that instead of adding ten characters to make a link, he took away one.  [[John Abbe]] retorted that you have to shift (on the keyboard) for each word capitalised.
  
Moving forward into todays' 'wiki world', the [[:Category:MediaWiki|MediaWiki]] wiki engine was developed from [[UseModWiki]], and because it was developed for an [[:Category:Encyclopedia|encyclopedia]], where proper spelling, word spacing and grammar are of high importance, the use of CamelCase to create internal links was phased out and is deprecated in MediaWiki.  In order to create an internal link, one must enclose the wanted link in double square brackets — <code><nowiki>[[]]</nowiki></code>.  This became colloquially known as a '[[wikilink]]', and has now been accepted by all subsequent [[:Category:Wiki Engine|wiki engines]] as the de-facto standard of creating internal links.
+
==Etymology==
 +
The term 'CamelCase' is derived from the visual similarity of the humped appearance of the WikiWords link – to that of the double-humped {{Wp|Bactrian camel}} (''not'' to be confused with the single-humped {{Wp|dromedary}} camel).
  
Likewise, [[WikiIndex]] (which also runs on MediaWiki) does <u>not</u> (and can not) use CamelCase to <u>create links</u>.  There is, however, some sentiment (and practice) that CamelCase should be used on WikiIndex when creating [[Special:Categories|categories]] or [[:Category:Templates|templates]] which contain two or more words, such as [[:category:LoginToEdit]] or [[template:MultilingualMain]].  Unfortunately, in some cases, neither convention is consistently followed, even among subcategories of the same category!  It may be observed here on WikiIndex that our founding fathers still have an unrelenting favour for the use of CamelCase; whilst to some of the newer, younger WikiIndex folk, CamelCase might seem like a foreign language!
+
==Modern {{tag|wiki syntax}}==
 +
Moving forward into todays' '[[Wikisphere|wiki world]]', the now highly popular and ubiquitous [[:Category:MediaWiki|MediaWiki]] wiki engine was developed from [[:Category:UseMod Wiki|UseMod Wiki]]; and, because it was developed for use on an [[:Category:Encyclopedia|encyclopedia]], where proper spelling, word spacing, grammatical and sentence structure are of high importance; the use of CamelCase to create internal links was phased out, and is completely deprecated in MediaWiki for creating internal links to other articles within the wiki in question.  Instead, in order to create an internal link, one must enclose the word or words of a wanted link in double square brackets: <code><nowiki>[[]]</nowiki></code>.  This became colloquially known as a '[[wikilink]]', and has now been accepted by all subsequent [[:Category:Wiki engine|wiki engines]] as the ''{{Wp|de-facto}}'' standard of creating internal links to other pages within the same wiki.
  
Note that for those wikis which ''can'' utilise CamelCase links, the feature will create inadvertent links with phrases that have internal capital letters, such as Paul McCartney (turning his surname into a wikilink).
+
Likewise, [[WikiIndex]] (which also runs on MediaWiki) does <u>not</u> (and can not) use CamelCase to <u>create links</u>.  There is, however, some sentiment (and {{tag|Wiki concept|practice}}) that CamelCase ''should'' be used here on WikiIndex for something contain two or more words when creating [[Special:Categories|categories]] (such as [[:category: LoginToEdit]]) and / or [[Special:Templates|templates]] (examples include {{Template|CategoryBrowserHeader}}, {{Template|DeadEL}}, {{Template|SeeWp}}, {{Template|UserLanguageCategory}}, and {{Template|WikiWithPagesBetween}}). Unfortunately, in some cases, neither {{tag|wiki idea|convention}} is consistently followed, even among sub-categories of the same category!  It may be observed here on WikiIndex that our [[Founder|founding]] fathers still have an unrelenting favour for the use of CamelCase; whilst to some of the newer, younger WikiIndex folk, CamelCase might seem like a foreign language!
  
;External links
+
==Problems with CamelCase==
*[[MeatBall:CamelCase|CamelCase]] at [[Meatball Wiki]]
+
It should be noticed from the lead paragraph that CamelCase links can <u>only</u> work on {{Wp|List of writing systems|written}} [[:Category:Wiki language|languages]] derived from {{Wp|Alphabet}}-based scripts, such as {{Wp|Latin script|Latin}} or {{Wp|Roman type|Roman text}}, which use upper- (capital) and lower-case letters.  For non-Latin/Roman scripts; such as {{Wp|Abjad}}-based {{Wp|Arabic script|Arabic}}, or {{Wp|Logogram#Logographic systems|logogram / logographic}}-based scripts such as {{Wp|Chinese family of scripts|Chinese}} scripts (none of which use capital letters) – these are not be able to use CamelCase.
*[http://www.wikimatrix.org/wiki/feature:camelcase CamelCase] on [[WikiMatrix]]
+
 
*[[wp:CamelCase|CamelCase]] at [[English Wikipedia]]
+
Another problem with CamelCase, as displayed, is that it can cause inaccuracies, or even failures when using online machine translators to translate, say [[:Category:Wiki English|English]] texts using CamelCase into other languages, even those using Roman-based script.  Furthermore, for those wikis which ''can'' utilise CamelCase links, the feature will create inadvertent links with phrases that have internal capital letters, such as Paul McCartney (turning his surname into an unwanted [[wikilink]]).
*[http://everything2.com/title/CamelCase CamelCase at Everything2]&nbsp;– a personal commentary by StrawberryFrog and others on the history and implementation of CamelCase
+
 
 +
==Notes==
 +
<References/>
 +
 
 +
==External links==
 +
*[[Wiki:CamelCase|CamelCase]] — at [[WikiWikiWeb]]
 +
*[[MeatBall:CamelCase|CamelCase]] at [[Meatball Wiki]]
 +
*[[Archive.org:20150711091905/http://www.WikiMatrix.org/wiki/feature:camelcase|CamelCase]] — on [[WikiMatrix]], via [[Archive.org]]
 +
*{{Wp|CamelCase}} — at the [[English Wikipedia]]
 +
*[[Everything2:CamelCase|CamelCase]] — at Everything2.com, a personal commentary by StrawberryFrog and others on the history and implementation of CamelCase
  
[[Category:WikiConcept]]
 
[[Category:WikiIdea]]
 
 
[[Category:Glossary]]
 
[[Category:Glossary]]
[[Category:Terms]]
 

Latest revision as of 12:47, 27 May 2023

CamelCase, originally known as WikiWords, and grammatically known as 'medial capitals', is the archaic but historically and significantly important term identifying the ability to create an internal link to another page on early wiki sites. It did so by removing the space between two (or more) words which began with capital letters. At the time, it was an inspired and revolutionary way of thinking for technology; "What is the simplest thing we can do to make this work?", to paraphrase Ward Cunningham (the creator of the wiki). CamelCase is very important for 'LinkLanguage'; that is: writing and adding links easily to your writing, whilst maintaining clarity of an otherwise easily confusable link.[1] Ward has commented that instead of adding ten characters to make a link, he took away one. John Abbe retorted that you have to shift (on the keyboard) for each word capitalised.

Etymology[edit]

The term 'CamelCase' is derived from the visual similarity of the humped appearance of the WikiWords link – to that of the double-humped Bactrian camel (not to be confused with the single-humped dromedary camel).

Modern wiki syntax[edit]

Moving forward into todays' 'wiki world', the now highly popular and ubiquitous MediaWiki wiki engine was developed from UseMod Wiki; and, because it was developed for use on an encyclopedia, where proper spelling, word spacing, grammatical and sentence structure are of high importance; the use of CamelCase to create internal links was phased out, and is completely deprecated in MediaWiki for creating internal links to other articles within the wiki in question. Instead, in order to create an internal link, one must enclose the word or words of a wanted link in double square brackets: [[]]. This became colloquially known as a 'wikilink', and has now been accepted by all subsequent wiki engines as the de-facto standard of creating internal links to other pages within the same wiki.

Likewise, WikiIndex (which also runs on MediaWiki) does not (and can not) use CamelCase to create links. There is, however, some sentiment (and practice) that CamelCase should be used here on WikiIndex for something contain two or more words when creating categories (such as category: LoginToEdit) and / or templates (examples include {{CategoryBrowserHeader}}, {{DeadEL}}, {{SeeWp}}, {{UserLanguageCategory}}, and {{WikiWithPagesBetween}}). Unfortunately, in some cases, neither convention is consistently followed, even among sub-categories of the same category! It may be observed here on WikiIndex that our founding fathers still have an unrelenting favour for the use of CamelCase; whilst to some of the newer, younger WikiIndex folk, CamelCase might seem like a foreign language!

Problems with CamelCase[edit]

It should be noticed from the lead paragraph that CamelCase links can only work on written languages derived from Alphabet-based scripts, such as Latin or Roman text, which use upper- (capital) and lower-case letters. For non-Latin/Roman scripts; such as Abjad-based Arabic, or logogram / logographic-based scripts such as Chinese scripts (none of which use capital letters) – these are not be able to use CamelCase.

Another problem with CamelCase, as displayed, is that it can cause inaccuracies, or even failures when using online machine translators to translate, say English texts using CamelCase into other languages, even those using Roman-based script. Furthermore, for those wikis which can utilise CamelCase links, the feature will create inadvertent links with phrases that have internal capital letters, such as Paul McCartney (turning his surname into an unwanted wikilink).

Notes[edit]

  1. An example of a confusing link which should have used LinkLanguage was a Twitter 'hashtag': #nowthatcherisdead. This was mistakenly confused and thus reported (inaccurately) that the famous US pop singer Cher had died, presumably from a misconstrued #NowThatCherIsDead! The hashtag was actually intended to promulgate the news of the death of Margaret Thatcher, a former British Prime Minister, and thus would have been better stylised #NowThatcherIsDead.

External links[edit]