Difference between revisions of "Template:Cite mac/doc"

From blackwiki
Jump to navigation Jump to search
imported>Airplaneman
(→‎Usage: installation)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(8 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
This is an experimental way to cite the technical specifications of [[Macintosh]] models in a uniform way from developer [[Apple Inc.]] and third party EveryMac.com. Apple, as a primary source, is the most reliable, but its information is often sparse. EveryMac.com was selected as the least commercial and most reliable of a handful of sites dedicated to legacy Macintosh specifications.
 
This is an experimental way to cite the technical specifications of [[Macintosh]] models in a uniform way from developer [[Apple Inc.]] and third party EveryMac.com. Apple, as a primary source, is the most reliable, but its information is often sparse. EveryMac.com was selected as the least commercial and most reliable of a handful of sites dedicated to legacy Macintosh specifications.
 
;Installation
 
;Installation
All users should add the following to their [[Special:MyPage/monobook.js|monobook.js or [[Special:MyPage/vector.js|vector.js]] pages for use with [[WP:refToolbar 2.0|refToolbar 2.0]]:
+
All users should add the following to their [[Special:MyPage/monobook.js|monobook.js]] or [[Special:MyPage/vector.js|vector.js]] pages for use with [[WP:refToolbar 2.0|refToolbar 2.0]]:
 
<pre>importScript('User:Mr.Z-man/refToolbar 2.0.js');
 
<pre>importScript('User:Mr.Z-man/refToolbar 2.0.js');
 
new citeTemplate('cite mac', 'Macintosh',
 
new citeTemplate('cite mac', 'Macintosh',
Line 17: Line 17:
  
 
* '''model''' is a [[String (computer science)|string]] that is used to identify the specific Macintosh being cited.
 
* '''model''' is a [[String (computer science)|string]] that is used to identify the specific Macintosh being cited.
* '''appleNumber refers to the 5-character identifier, listed after "Article", on the tech spec page you are citing. [http://support.apple.com/specs/ Search] for articles.
+
* '''appleNumber''' refers to the 5-character identifier, listed after "Article", on the tech spec page you are citing. [http://support.apple.com/specs/ Search] for articles.
 
* '''everyURL''' refers to the ''second half'' of the URL from EveryMac.com, beginning immediately after <code>system/apple/</code>. [http://www.everymac.com/ultimate-mac-lookup/ Find] articles.
 
* '''everyURL''' refers to the ''second half'' of the URL from EveryMac.com, beginning immediately after <code>system/apple/</code>. [http://www.everymac.com/ultimate-mac-lookup/ Find] articles.
 
* '''accessdate''' is today's date.
 
* '''accessdate''' is today's date.
Line 35: Line 35:
  
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Citation templates|{{PAGENAME}}]]
+
[[Category:Specific-source templates|{{PAGENAME}}]]
</includeonly>
+
 
 +
[[es:Plantilla:Cita mac]]
 +
 
 +
}}</includeonly>

Latest revision as of 05:26, 24 April 2020

Usage

This is an experimental way to cite the technical specifications of Macintosh models in a uniform way from developer Apple Inc. and third party EveryMac.com. Apple, as a primary source, is the most reliable, but its information is often sparse. EveryMac.com was selected as the least commercial and most reliable of a handful of sites dedicated to legacy Macintosh specifications.

Installation

All users should add the following to their monobook.js or vector.js pages for use with refToolbar 2.0:

importScript('User:Mr.Z-man/refToolbar 2.0.js');
new citeTemplate('cite mac', 'Macintosh',
[ // Basic fields
{"field": "model", "label":"Model name"},
{"field": "appleNumber", "label":"Apple number"}, 
{"field": "everyURL", "label":"EverMac URL", "tooltip": "Only from after /apple/"},
{"field": "accessdate"}
], [ ]);
Parameters
{{cite mac |model= |appleNumber= |everyURL= |accessdate= }}
  • model is a string that is used to identify the specific Macintosh being cited.
  • appleNumber refers to the 5-character identifier, listed after "Article", on the tech spec page you are citing. Search for articles.
  • everyURL refers to the second half of the URL from EveryMac.com, beginning immediately after system/apple/. Find articles.
  • accessdate is today's date.
Example

{{cite mac |model=[[iMac G3]] |appleNumber=SP136 |everyURL=imac/stats/imac_ab.html |accessdate=24 May, 2010}}

yields

Technical specifications of iMac G3 from Apple's knowledge base and from EveryMac.com. Retrieved 24 May, 2010.


See also