Difference between revisions of "Template:DeviceLink"

From The iPhone Wiki
Jump to: navigation, search
(Created page with "{{#switch: {{{0}}} | AppleTV2,1 = Apple TV (2nd generation) | AppleTV3,1 = Apple TV (3rd generation) (AppleTV3,1) | AppleTV3,2 = J33IAP|Apple TV...")
 
m (remove from category)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{0}}}
+
{{#switch: {{{1}}}
 
| AppleTV2,1 = [[K66AP|Apple TV (2nd generation)]]
 
| AppleTV2,1 = [[K66AP|Apple TV (2nd generation)]]
 
| AppleTV3,1 = [[J33AP|Apple TV (3rd generation) (AppleTV3,1)]]
 
| AppleTV3,1 = [[J33AP|Apple TV (3rd generation) (AppleTV3,1)]]
Line 183: Line 183:
 
| iPod7,1 = [[N102AP|iPod touch (6th generation)]]
 
| iPod7,1 = [[N102AP|iPod touch (6th generation)]]
 
| iPod9,1 = [[N112AP|iPod touch (7th generation)]]
 
| iPod9,1 = [[N112AP|iPod touch (7th generation)]]
| #default = [[Category:Pages With Incorrect Template Usage]]
+
| #default = <includeonly>[[Category:Pages With Incorrect Template Usage]]</includeonly>
}}<noinclude>{{documentation}}</noinclude>
+
}}<noinclude>{{DeviceLink/doc}}</noinclude>

Revision as of 03:18, 27 June 2022

This template is used to create a link to a device's model string to its own page (M68AP for iPhone1,1). The link text will be the device's human-readable name ("iPhone" for iPhone1,1).

Usage is very simple: {{DeviceLink|model}}. So, for the iPhone1,1, one would do: {{DeviceLink|iPhone1,1}} and get [[M68AP|iPhone]].