Col·laboradors/Projectes/Columnes per referències

This page is a translated version of the page Contributors/Projects/Columns for references and the translation is 41% complete.
Outdated translations are marked like this.

A petició dels editors de la Viquipèdia, s'afegeix una nova característica a MediaWiki. Long lists of references (created with ‎<ref> tags; they are also called citations or footnotes at some wikis) will automatically be displayed in columns. El nombre de columnes serà determinat per l'amplada de la pantalla de cada lector. This will improve accessibility and make it easier for most people to read the references, especially on narrow or very wide screens. Short lists of references will not be affected.

Ús el normal ‎<references /> tag en qualsevol pàgina amb moltes referències per veure aquesta característica en qualsevol wiki on la característica ha estat habilitada. Si no vols les columnes van utilitzar en aquella pàgina, llavors utilitzar aquest wikitext codi en comptes d'això: <references responsive="0" />.

Horari

The server-side software will change on the normal deployment train during the week of 14 March 2017. However, the effect will not normally be visible (except on MediaWiki.org where it is responsive by default[1]) until it is manually enabled for your particular wiki. WMF-hosted wikis that want this feature working locally can request a config change to enable it.

Després del programari és desplegat, però abans que és habilitat en el vostre wiki, a mà pots invocar la característica en pàgines individuals per utilitzar aquest wikitext codi: <references responsive /> en comptes del senzill ‎<references /> tag o una plantilla local.

Groups:

  • Wikiquotes: Monday, 24 July 2017

Interacció amb plantilles locals

Algunes Wikipedies han estat utilitzant plantilles locals com {{Reflist}} per crear columnes o afegir altre formatatge. These templates should be updated (or their use deprecated as redundant) before this change is manually enabled at your local wiki.

Com per actualitzar una plantilla local

Si vols millorar accessibilitat

Considera definir el default comportament per la plantilla mentre sent el default comportament pel ‎<references /> tag i deprecating o traient paràmetres que defineixen un número fix de columnes, malgrat tot de mida de pantalla.

Si no vols cap canvi al comportament actual de la plantilla

<references responsive /> automàticament embolicarà la llista dins <div class="mw-references-wrap">. With the feature enabled by default, any list with more than 10 references will also get the class mw-references-columns. In this mode, the references list is automatically split over multiple columns based on the available space on the screen. E.g. on narrow screens 1 or 2 columns, on wider screens 2 or 3. Given that this happens automatically, it is no longer necessary for editors to manually enable/disable the columns mode of a template.

Recordeu també que altres personalitzacions per la llista de referències s'apliquen millor directament al selector CSS ol.references en el vostre MediaWiki:Common.css del wiki. Many wikis customise the font-size this way, for example. (No need to manually code it through a template). In case a DIV wrapper is needed for certain styles, the .mw-references-wrap CSS selector will apply to all references lists produced by <references responsive /> regardless of whether the columns were dynamically activated.

Per compatibilitat amb la disposició de columna fixa, podeu tenir les plantilles reflist i refhead però assegureu-vos que el mode responsive està desactivat amb responsive=0 quan s'especifica un nombre fix de columnes. You may also want edit relevant layout rules in your wiki's MediaWiki:Common.css to only match ol.references elements without a wrapping .mw-references-wrap parent in order to avoid repeated definitions of multi-column layout. This can be done in the CSS using e.g. a direct descendant > operator.

Demanant aquesta característica

Alternativament, deixeu un missatge en la pàgina de discussió. Please include a link to any local discussions or relevant templates in your requests.

Referències