Template:Remote/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Wocket
No edit summary
>Wocket
No edit summary
Line 1: Line 1:
Template documentation
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):
{{Remote
{{Remote
|Name= Generic PS3 Remote
|Name=  
|Image=
|Image=
|Description= There are many IR PS3 Remotes
|Description=  
|More info= This particular unit is detected as ID 1130:0202 Tenx Technology, Inc. and cat /proc/bus/input/devices ->
|More info= (Optional: For long pages/descriptions)
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
}}
}}
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 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:
{{:Page name}}
Take special note of the colon : before the page name.




This template will place pages in Category:Remotes.
}</pre>
}</pre>


Line 25: Line 36:
This template will place pages in [[:Category:Remotes]].
This template will place pages in [[:Category:Remotes]].


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

Revision as of 05:57, 2 January 2012

Template documentation

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):


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 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:

Page name

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


This template will place pages in Category:Remotes.

}

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


This template will place pages in Category:Remotes.