Template:Infobox Wikipedia user script/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Infobox Wikipedia user script (diff). |
![]() | This template uses Lua: |
Usage
This infobox is intended to be used on user script description/documentation pages.
[[File:{{{logo}}}|{{{logosize}}}|alt={{{logoalt}}}]] | |
[[File:{{{screenshot}}}|{{{screenshotsize}}}|alt={{{screenshotalt}}}]] {{{screenshot-caption}}} | |
Description | {{{desc}}} |
---|---|
Author(s) | {{{author}}} |
Maintainer(s) | {{{maintainer}}} |
Status | {{{status}}} |
First released | {{{released}}} |
Version | {{{version}}} |
Updated | {{{updated}}} |
Browser support | {{{browsers}}} |
Skin support | {{{skins}}} |
Source | {{{source}}} |
GitHub repository | {{{github}}} on GitHub |
Full syntax
<syntaxhighlight lang="wikitext"> </syntaxhighlight>
Example
![]() | |
![]() MyScript in action | |
Description | Does something useful |
---|---|
Author(s) | Username |
Status | Stable |
First released | July 7, 2008 |
Version | 2.1.0 |
Updated | March 3, 2013 |
Browsers | Firefox, Chrome |
Skins | Vector |
Source | User:Username/Example.js |
<syntaxhighlight lang="wikitext" style="width:500px">
![]() | |
![]() MyScript in action | |
Description | Does something useful |
---|---|
Author(s) | Username |
Status | Stable |
First released | July 7, 2008 |
Version | 2.1.0 |
Updated | March 3, 2013 |
Browsers | Firefox, Chrome |
Skins | Vector |
Source | User:Username/Example.js |
- Add
|styled = yes
for an alternate colored version (see second example):
MyScript | |
---|---|
Description | Does something useful |
Author(s) | Username |
Status | Stable |
First released | July 7, 2008 |
Version | 2.1.0 |
Updated | March 3, 2013 |
Browsers | Firefox, Chrome |
Skins | Vector |
Source | User:Username/Example.js |
<syntaxhighlight lang="wikitext" style="width:500px">
MyScript | |
---|---|
Description | Does something useful |
Author(s) | Username |
Status | Stable |
First released | July 7, 2008 |
Version | 2.1.0 |
Updated | March 3, 2013 |
Browsers | Firefox, Chrome |
Skins | Vector |
Source | User:Username/Example.js |
Parameters
- name: The name of the script. Defaults to page name.
- desc: A short description of what the script does.
- author: The script author's user name.
- released: When the script was first released.
- updated: The date of last update. Use {{start date and age}} to automatically display time since the last update.
- status: Script's development status. You may describe this any way you like, such as alpha/beta/release, or stable/experimental/inactive.
- source: The source code page.
- skins: Supported skins.
- browsers: Supported web browser(s).
- github: The script's repository on GitHub, as input to the
{{github}}
template. - logo: Image file address for logo
- logoupright: See Module:InfoboxImage: upright=yes displays image at 75% of default size, upright=value with values under 1 scaling the image down (0.9 = 90%) and values greater than 1 scaling the image up (1.15 = 115%).
- logosize: Logo size in pixels. Use of logoupright is recommended as pixels can vary in size depending on display used.
- screenshot: Image file address for screenshot
- screenshotupright: See logoupright.
- screenshotsize: See logosize.
- screenshot-caption: Text caption for screenshot
- styled: Set to
yes
for an alternate colored version (see example above) - categorize: Set to
no
to prevent categorizing the page into Category:Wikipedia scripts
The following parameters can aid in automatic installation:
- mainsource: The main source file, which is to be loaded from the user's custom script.
- install-target: The preferred page on which the script should be included. The default is
common.js
.
Templatedata
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
styled | styled | no description | Unknown | optional |
bodystyle | bodystyle | no description | Unknown | optional |
mainsource | mainsource | no description | Unknown | optional |
install-target | install-target | no description | Unknown | optional |
name | name | no description | Unknown | optional |
logo | logo | no description | Unknown | optional |
logosize | logosize | no description | Unknown | optional |
logoalt | logoalt | no description | Unknown | optional |
logo-caption | logo-caption | no description | Unknown | optional |
screenshot | screenshot | no description | Unknown | optional |
screenshotsize | screenshotsize | no description | Unknown | optional |
screenshotalt | screenshotalt | no description | Unknown | optional |
screenshot-caption | screenshot-caption | no description | Unknown | optional |
desc | desc | no description | Unknown | optional |
author | author | no description | Unknown | optional |
maintainer | maintainer | no description | Unknown | optional |
status | status | no description | Unknown | optional |
released | released | no description | Unknown | optional |
version | version | no description | Unknown | optional |
updated | updated | no description | Unknown | optional |
browsers | browsers | no description | Unknown | optional |
skins | skins | no description | Unknown | optional |
beta | beta | no description | Unknown | optional |
source | source | no description | Unknown | optional |
github | github | no description | Unknown | optional |
{{Wikipedia:User scripts/Navbox}}