|
|
(No se muestran 17 ediciones intermedias del mismo usuario) |
Línea 1: |
Línea 1: |
| <noinclude> | | <noinclude> |
| <languages/>
| |
| </noinclude><!-- | | </noinclude><!-- |
| --><templatestyles src="Template:Infobox/styles.css" /><!-- | | --><templatestyles src="Template:Infobox/styles.css" /><!-- |
| --><templatestyles src="Template:Skin/styles.css" /><!-- | | --><templatestyles src="Template:Skin/styles.css" /><!-- |
| --><templatestyles src="Template:Extension/status.css" /><!-- | | --><templatestyles src="Template:Extension/status.css" /><!-- |
| --><includeonly><!-- | | --><includeonly> |
| -->{{#if: {{{phabricator|}}} | {{Ptag|{{{phabricator}}}}} }}
| |
| <table class="infobox infobox-{{dir|{{PAGELANGUAGE}}}} skin-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }} | | <table class="infobox infobox-{{dir|{{PAGELANGUAGE}}}} skin-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }} |
| |unmaintained|unstable|experimental|beta|stable={{{status}}} | | |unmaintained|unstable|experimental|beta|stable={{{status}}} |
| |#default=unknown | | |#default=unknown |
| }}"> | | }}"> |
| <caption>'''{{ll|Manual:Skins|2=<translate><!--T:16--> MediaWiki skins manual</translate>}}''' - '''{{ll|Category:All skins|2=<translate><!--T:17--> category</translate>}}'''</caption>
| |
| <tr class="infobox-header skin-infobox-header" style="text-align:{{dir|{{PAGELANGUAGE}}|right|left}}"> | | <tr class="infobox-header skin-infobox-header" style="text-align:{{dir|{{PAGELANGUAGE}}|right|left}}"> |
| <th colspan="2" style="padding-top: 0.5em;">[[File:{{#ifeq: {{lc: {{{status|}}} }} |unstable | | <th colspan="2" style="text-align:center"> |
| |OOjs UI icon alert.svg
| | <span style="font-size: 130%;">{{{name|{{PAGENAME}}}}}</span><br /> |
| |<!--else-->OOjs UI icon layout-{{dir|{{PAGELANGUAGE}}}}.svg
| | {{{autor|}}} ({{#if:{{{fecha|}}}|{{#time:Y|{{{fecha}}}}}) |
| }}|link=:Special:MyLanguage/Template:Skin#Content|{{dir|{{PAGELANGUAGE}}|right|left}}|40px]] <span style="font-size: 130%;">{{#if:{{{localised name|}}}|{{{localised name}}}|{{{name|{{PAGENAME}}}}}}}</span><br />
| | </tr> |
| {{ll|Skin status|2=<translate><!--T:18--> Release status:</translate>}} {{#switch: {{lc: {{{status|unknown}}} }}
| | }} |
| |unmaintained=<translate><!--T:19--> unmaintained</translate>
| | |
| |unstable=<translate><!--T:20--> unstable</translate>
| | </th> |
| |experimental=<translate><!--T:21--> experimental</translate>
| |
| |beta=<translate><!--T:22--> beta</translate>
| |
| |stable=<translate><!--T:23--> stable</translate>
| |
| |#default=<translate><!--T:24--> unknown</translate>
| |
| }}<!-- Category logic -->{{#if:{{{license|}}}|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#invoke:String|replace|source={{#invoke:String|replace|source={{#invoke:Extension|getLicenseCategory|{{{license}}}}}|pattern=Extensions|replace=Skins}}|pattern=extensions|replace=skins}}}}}}<!--
| |
| -->{{#ifeq:{{{templatemode|}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }}
| |
| |unstable = Unstable skins
| |
| |experimental = Experimental skins
| |
| |stable = Stable skins
| |
| |beta = Beta status skins
| |
| |unmaintained = Unmaintained skins
| |
| |#default = Skins with unknown status
| |
| }}{{#translation:}}]]}}</th>
| |
| </tr> | | </tr> |
| {{#if:{{{image|}}}|
| |
| <tr>
| |
| <td colspan="2" style="text-align: center;">[[Image:{{{imagen}}}|{{{imagesize|220}}}px]]</td> | | <td colspan="2" style="text-align: center;">[[Image:{{{imagen}}}|{{{imagesize|220}}}px]]</td> |
| </tr>> | | </tr> |
| {{#if:{{{autor|}}}| | | {{#if:{{{autor|}}}| |
| <tr> | | <tr> |
Línea 127: |
Línea 109: |
| }} | | }} |
|
| |
|
| | | <noinclude |
| </table><!--
| | [[Category:Juegos|{{PAGENAME}}]] |
| -->{{#ifeq:{{{templatemode|}}}|nocats|<!--
| |
| nothing--><!--
| |
| -->|<!--else--><!--
| |
| -->{{DEFAULTSORT:{{#if:{{{name|}}}|<!--
| |
| -->{{uc:{{{name}}}<!-- -->}}<!--
| |
| -->|<!--else--><!--
| |
| -->{{uc:{{PAGENAME}}<!-- -->}}<!--
| |
| -->}}<!-- -->}}<!--
| |
| -->{{#ifeq:{{NAMESPACE}}|{{ns:skin}}|[[Category:All skins{{#translation:}}]]}}<!--
| |
| -->}}</includeonly><noinclude>
| |
| {{Documentation|content=
| |
| {{lua|Module:Extension|Module:String}}
| |
| {{Uses TemplateStyles|Template:Infobox/styles.css|Template:Skin/styles.css|Template:Extension/status.css}}
| |
| | |
| <translate><!--T:77--> This template should be added to all skin pages on this wiki (but only the main page) to display an information box and categorise the skin.</translate>
| |
| | |
| <table width="100%">
| |
| <tr>
| |
| <th width=40%></th>
| |
| <th width=60%></th>
| |
| </tr>
| |
| <tr valign="top">
| |
| <td align="left">
| |
| <span id="CutAndPaste"><translate><!--T:79--> Copy and paste:</translate></span>
| |
| <pre>{{Skin|templatemode =
| |
| |name =
| |
| |localised name =
| |
| |status =
| |
| |hook1 =
| |
| |hook2 =
| |
| |newhook1 =
| |
| |newhook2 =
| |
| |username =
| |
| |author =
| |
| |description =
| |
| |image =
| |
| |imagesize =
| |
| |version =
| |
| |update =
| |
| |version preview =
| |
| |update preview =
| |
| |compatibility policy =
| |
| |mediawiki =
| |
| |php =
| |
| |composer =
| |
| |license =
| |
| |descarga =
| |
| |readme =
| |
| |changelog =
| |
| |example =
| |
| |parameters =
| |
| |compatibility =
| |
| |bugzilla =
| |
| |phabricator =
| |
| |vagrant-role =
| |
| }}</pre>
| |
| | |
| <translate><!--T:80--> For help with parameter values, see [[<tvar name=1>#Content parameters</tvar>|below]].</translate>
| |
| </td>
| |
| <td align="right">{{Skin|templatemode=nocats
| |
| |name = {{{name}}}
| |
| |localised name = {{{localised name}}}
| |
| |status = {{{status}}}
| |
| |hook1 = hook1
| |
| |hook2 = hook2
| |
| |newhook1 = newhook1
| |
| |newhook2 = newhook2
| |
| |username = SomeUser
| |
| |author = SomeAuthor
| |
| |image = Placeholder.svg
| |
| |version = {{{version}}}
| |
| |update = {{{update}}}
| |
| |version preview = {{{version preview}}}
| |
| |update preview = {{{update preview}}}
| |
| |compatibility policy = {{{compatibility policy}}}
| |
| |mediawiki = {{{mediawiki}}}
| |
| |php = {{{php}}}
| |
| |composer = {{{composer}}}
| |
| |license = {{{license}}}
| |
| |descarga = {{{descarga}}}
| |
| |readme = {{{readme}}}
| |
| |changelog = {{{changelog}}}
| |
| |example = {{{example}}}
| |
| |description = {{{description}}}
| |
| |parameters = {{{parameters}}}
| |
| |compatibility = {{{compatibility}}}
| |
| |bugzilla = {{{bugzilla}}}
| |
| |phabricator = {{{phabricator}}}
| |
| |vagrant-role = {{{vagrant-role}}}
| |
| |pagedrive1 = true
| |
| |demo = true
| |
| }}</td>
| |
| </tr>
| |
| </table>
| |
| {{-}}
| |
| | |
| <translate>
| |
| == Content parameters == <!--T:81-->
| |
| </translate>
| |
| <translate><!--T:82--> This section describes parameters that govern infobox content.</translate>
| |
| <translate><!--T:83--> For help with <tvar name=1><code>templatemode</code></tvar> and other control parameters, please see [[<tvar name=2>#Control parameters</tvar>|Control parameters]].</translate>
| |
| <!-- BEFORE YOU EDIT THIS:
| |
| span ids on each parameter are used by the code in Template:Skin.
| |
| They enable each label in the info box to link its documentation.
| |
| If you change an id, please update the code in Template:Skin accordingly.
| |
| -->
| |
| <table class="wikitable">
| |
| <caption>'''<translate><!--T:279--> Content parameters</translate>'''</caption>
| |
| <tr>
| |
| <th><translate><!--T:280--> Parameter</translate></th>
| |
| <th><translate><!--T:281--> Description</translate></th>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="name">'''name'''</span></td><td>'''<translate><!--T:282--> name of the skin</translate>'''</td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="localised_name">'''localised name'''</span></td>
| |
| <td>'''<translate><!--T:322--> source text for localising name of the skin</translate>'''
| |
| <translate><!--T:323--> Specify the same value as <tvar name=1><code>name</code></tvar>.</translate>
| |
| <translate><!--T:324--> It will be used later for localising the name.</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="status">'''status'''</span></td><td>'''<translate><!--T:283--> current release status</translate>'''
| |
| <translate><!--T:284--> One of:</translate>
| |
| | |
| * ''{{ll|Category:Unstable skins|unstable}}'' - <translate><!--T:285--> broken - do not use this skin</translate>
| |
| * ''{{ll|Category:Experimental skins|experimental}}'' - <translate><!--T:286--> early stages of development, may change drastically</translate>
| |
| * ''{{ll|Category:Beta status skins|beta}}'' - <translate><!--T:287--> stable but not fully tested</translate>
| |
| * ''{{ll|Category:Stable skins|stable}}'' - <translate><!--T:288--> stable version</translate>
| |
| * ''{{ll|Category:Unmaintained skins|unmaintained}}'' - <translate><!--T:290--> unmaintained - previously claimed to be stable, now unmaintained</translate>
| |
| * ''{{ll|Category:Skins with unknown status|unknown}}'' - <translate><!--T:291--> default</translate>
| |
| | |
| <translate><!--T:292--> If the status is anything other than the above, it will be ignored and the default value of 'Unknown' will be displayed in the template instead.</translate>
| |
| | |
| * {{ll|Extension status|2=<translate><!--T:293--> release status colour scheme</translate>}}</td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="hook">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>...<br/>''hook90''</td>
| |
| <td valign="top">'''<translate><!--T:68--> name of each hook used by the extension</translate>'''
| |
| <translate><!--T:69--> Entering values in this field is a good way to get exposure for your extension and help other developers.</translate>
| |
| <translate><!--T:70--> Each documented hook will automatically add the extension to a category listing extensions that use that hook.</translate>
| |
| <translate><!--T:71--> This category is autolinked to each hook page so that programmers can easily find examples of extensions that use a particular hook.</translate>
| |
| | |
| <translate>
| |
| <!--T:72-->
| |
| For built-in hooks:
| |
| | |
| <!--T:275-->
| |
| * use the hook name alone.</translate> <translate><!--T:276--> Please see <tvar name=manual>{{ll|Manual:Hooks|Manual:Hooks}}</tvar> for values (but omit introductory '/').</translate>
| |
| | |
| <translate>
| |
| <!--T:73-->
| |
| For custom hooks defined by extensions:
| |
| | |
| <!--T:277-->
| |
| * use <tvar name=form>''extensionName''/''hookName''</tvar>.</translate> <translate><!--T:278--> For a partial list of custom hooks, see <tvar name=exthooks>[[Extension hook registry]]</tvar>.</translate>
| |
| | |
| <translate>
| |
| <!--T:74-->
| |
| For multiple hooks, assign the first hook to <tvar name=1>'''hook1'''</tvar>, the second to <tvar name=2>'''hook2'''</tvar> and so on.</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="newhook">'''newhook1'''</span><br/>''newhook2''<br/>''newhook3''<br/>''newhook4''<br/>...<br/>''newhook90''</td>
| |
| <td valign="top">
| |
| <translate><!--T:75--> '''name of each hook provided by the extension''' </translate>
| |
| | |
| <translate><!--T:76--> You might also want to add the hooks to <tvar name=exthooks>[[Extension hook registry]]</tvar>.</translate>
| |
| </td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="username">'''username'''</span></td>
| |
| <td><translate><!--T:294--> The author's username on MediaWiki.org (if they have one).</translate> <translate><!--T:295--> May be omitted, but if present it will be used to link to the author's user & user_talk page.</translate> <translate><!--T:296--> It should be provided without namespace and without <tvar name=1><nowiki>[[]]</nowiki></tvar>s.</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|author}}</td>
| |
| <td><translate><!--T:297--> The skin author's name, if different from their MediaWiki.org username.</translate> <translate><!--T:298--> Free text.</translate> <translate><!--T:299--> If omitted then the '<tvar name=1>username</tvar>' field will be used (if present).</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="description">'''description'''</span></td>
| |
| <td>'''<translate><!--T:300--> short description</translate>'''</td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|image}}</td>
| |
| <td><translate><!--T:301--> screenshot or logo of skin.</translate> <translate><!--T:302--> It should be provided without namespace and without <tvar name=1><nowiki>[[]]</nowiki></tvar>s.</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|imagesize}}</td>
| |
| <td><translate><!--T:303--> ''facultative'', size of the image (default size is 220px)</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|version}}</td>
| |
| <td><translate><!--T:304--> last version</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|update}}</td><td><translate><!--T:305--> date of the last update</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="compatibility_policy">compatibility policy</span></td>
| |
| <td>{{ll|Compatibility#mediawiki_extensions|2=<translate><!--T:306--> compatibility policy</translate>}} (<translate><!--T:307--> accepted values are '''<tvar name="1">master</tvar>''', '''<tvar name="2">rel</tvar>''' and '''<tvar name="3">ltsrel</tvar>'''</translate>). ({{ll|Category:Skins without a compatibility policy|2=backlog}})</td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|mediawiki}}</td><td><translate><!--T:308--> required version of MediaWiki</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|php}}</td><td><translate><!--T:309--> required version of PHP</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|license}}</td><td><translate><!--T:310--> license(s) governing use of this skin, e.g. GPL</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td><span id="download">'''download'''</span></td><td>'''<translate><!--T:311--> link to the download</translate>''': Use {{tl|WikimediaDownloadSkin}} or {{tl|GithubDownload}}.</td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|readme}}</td><td><translate><!--T:312--> external link to the readme file</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|changelog}}</td><td><translate><!--T:313--> external link to the changelog file</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|parameters}}</td><td><translate><!--T:314--> available parameters for <tvar name="1">LocalSettings.php</tvar></translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|example}}</td><td><translate><!--T:315--> example, website or screenshot of working skin</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|compatibility}}</td><td><translate><!--T:316--> compatibility chart</translate></td>
| |
| </tr>
| |
| <tr>
| |
| <td>{{visible anchor|bugzilla}}</td><td><translate><!--T:317--> Bugzilla MediaWiki skin component name</translate></td>
| |
| </tr>
| |
| </table>
| |
| | |
| <translate>
| |
| == Control parameters == <!--T:84-->
| |
| </translate>
| |
| <table class="wikitable">
| |
| <caption>'''<translate><!--T:318--> Control parameters</translate>'''</caption>
| |
| <tr>
| |
| <th><translate><!--T:319--> Parameter</translate></th>
| |
| <th><translate><!--T:320--> Description</translate></th>
| |
| </tr>
| |
| <tr>
| |
| <td>'''templatemode'''</td><td>'''<translate><!--T:321--> Controls auto-categorisation of host page.</translate>'''
| |
| | |
| Normally left blank. Alternate values are:
| |
| * ''nocats'' - suppresses categorisation. Use this value if you are adding this template to [[Help:Subpage|subpages]] of a skin or to how-to documentation of skins. For example, the usage image above sets <code>templatemode=nocats</code> because this isn't an actual skin page and we don't want to add this page to any categories on account of it.
| |
| | |
| <translate><!--T:85--> If this is left blank, this template will add the host page to <tvar name=1>{{ll|Category:All skins}}</tvar> and to one or more additional categories, depending on the values assigned to the [[<tvar name=2>#Content parameters</tvar>|Content parameters]].</translate>
| |
| subpage; it is not in the Skin: namespace; or if suppressed by 'templatemode=nocats'</td>
| |
| </tr>
| |
| </table>
| |
| | |
| == Categories added ==
| |
| This template will automatically add the pages it is used on to the [[:Category:All skins]] category.
| |
| | |
| In addition, it will categorise the page based on the value of the ''status'' parameter:
| |
| | |
| * '''unstable''': [[:Category:Unstable skins]]
| |
| * '''experimental''': [[:Category:Experimental skins]]
| |
| * '''stable''': [[:Category:Stable skins]]
| |
| * '''beta''': [[:Category:Beta status skins]]
| |
| * '''unmaintained''': [[:Category:Unmaintained skins]]
| |
| * otherwise: [[:Category:Skins with unknown status]]
| |
| | |
| <translate>
| |
| == Using the infobox == <!--T:86-->
| |
| | |
| === Existing skin pages === <!--T:87-->
| |
| | |
| <!--T:88-->
| |
| If you want to add the infobox to an existing page, copy and paste the code at the [[<tvar name=1>#CutAndPaste</tvar>|top of this page]].
| |
| | |
| === Create a new skin page === <!--T:89-->
| |
| </translate>
| |
| <translate><!--T:90--> If you want to create a new skin page, enter the name below and click the button.</translate>
| |
| <translate><!--T:91--> A new page will be created with the infobox template already in place.</translate>
| |
| | |
| {{Skin/CreateSkinInputBox}}
| |
| | |
| == Enhancing this template ==
| |
| If you would like to improve on this template, thanks! This is a complicated template so here is some help along the way:
| |
| | |
| In addition, [[Template:Skin/Sample]] stores the boiler plate that is preloaded into newly created pages and contains some basic documentation on how to fill in the template parameters. It needs to be kept in sync with the documentation.
| |
| | |
| === The Create skin button ===
| |
| To improve the create skin button behavior:
| |
| * '''[[Template:Skin/Sample]]:''' The boilerplate skin that is preloaded into newly-created pages.
| |
| * '''[[Template:Skin/CreateSkinInputBox]]:''' An input box that can be inserted wherever you want users to easily create skins. For documentation on the {{tag|inputbox|open}} tag, please see [[Extension:InputBox]].
| |
| * '''[[Skin:TheSkin]]:''' - Defines a placeholder, in case a user accidentally hits the create button without changing the skin name.
| |
| | |
| === Infobox parameters ===
| |
| In general:
| |
| * To make this template easy to use, each label in the infobox is linked to documentation on the template parameter(s) it displays. If you add a parameter, please be sure to also add it to the content parameter documentation and link its label to that documentation.
| |
| | |
| == Test cases ==
| |
| See if the following pages are still ok, after editing this template.
| |
| * [[Skin:Vector]]
| |
| * [[Template:Skin]]
| |
| | |
| }}
| |
| [[Category:Infobox templates{{#translation:}}|{{PAGENAME}}]]
| |
| [[Category:Extension creation{{#translation:}}]]
| |
| [[Category:Categorizing templates{{#translation:}}|{{PAGENAME}}]]
| |
| [[Category:Extension templates{{#translation:}}]]
| |
| [[Category:Skin templates{{#translation:}}]]
| |
| </noinclude> | | </noinclude> |