Template:Remote/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Ned Scott (talk | contribs)
No edit summary
>Wocket
No edit summary
Line 1: Line 1:
Eventually this will be updated with all sorts of cool formatting options, additional parameters, options for multiple images, a section for keymaps, etc.
==Usage==
Create a page with the same name as the |Name= parameter. The content of that page should then be the following (filled out):
<pre>
{{Remote
{{Remote
|Name=  
|Name= Generic PS3 Remote
|Image=
|Image=
|Description=  
|Description= There are many IR PS3 Remotes
|More info= (Optional: For long pages/descriptions)
|More info= This particular unit is detected as ID 1130:0202 Tenx Technology, Inc. and cat /proc/bus/input/devices ->
results in:
I: Bus=0003 Vendor=1130 Product=0202 Version=0110
N: Name="YuanChen Game Controller"
P: Phys=usb-0000:00:1d.2-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0/input/input5
U: Uniq=
H: Handlers=event5 js1
B: EV=1b
B: KEY=fff 0 0 0 0 0 0 0 0 0
B: ABS=3002f
B: MSC=10
}}
}}
</pre>
'''Name=''' Name of remote
'''Image=''' give an image title like "Remote name.jpg" and then click on the resulting redlink (after you save the page) to upload an image to that name. If you have no image you can use [[:File:No image.jpg|No image.jpg]].
'''Description=''' Description of remote and whatever else you wish to place in the body of the page. Anything can go here.
'''More info=''' If the page/description/instructions run long you can put that extended information here and it will be placed in a collapsable section.


You can now use the page stand-alone or include it in a list of remotes by writing:


<pre>{{:Page name}}</pre>
}</pre>


Take special note of the colon ''':''' before the page name.
Take special note of the colon ''':''' before the page name.
Line 31: Line 25:
This template will place pages in [[:Category:Remotes]].
This template will place pages in [[:Category:Remotes]].


<includeonly>[[Category:Templates]]</includeonly>
<includeonly>[[Category:Remotes]]</includeonly>

Revision as of 05:51, 2 January 2012


}

Take special note of the colon : before the page name.


This template will place pages in Category:Remotes.