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

From blackwiki
Jump to navigation Jump to search
imported>HereToHelp
m (.)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{tmbox|type=speedy|size=small|text=This template is under development and should not be used in articles yet.  Please remove this template if you find it in an article.}}
 
 
=== Usage ===
 
=== 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.
 
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 [[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');
 +
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"}
 +
], [ ]);
 +
</pre>
 
;Parameters: <code><nowiki>{{cite mac |model= |appleNumber= |everyURL= |accessdate= }}</nowiki></code>
 
;Parameters: <code><nowiki>{{cite mac |model= |appleNumber= |everyURL= |accessdate= }}</nowiki></code>
  
 
* '''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 26: 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