mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 08:50:07 +00:00
04c3ad0107
This is based on the popular 'count' parameter from Template:Reflist on English Wikipedia, which has also been adopted by many other wikis. That template's 'count' parameter allows maximum flexibility on a per- page basis. This was important because the template can't know how many references the list will contain. Users typically manually add (and later, increment) the 'count' parameter when the list exceeds a certain threshold. The template currently sets an exact column count (via the CSS3 property `column-count`). This patch improves on that by instead using the closely related CSS3 `column-width` property. This automatically derives the column count based on the available space in the browser window. It will thus create two or three columns on a typical desktop screen, and two or no columns on a mobile device. The specified width is the minimum width of a column. This ensures that the list is not split when rendered on a narrow screen or mobile device. It also hooks into the raw list before parsing and adds the class only when the list will contain more than a certain number of items. This prevents very short lists from being split into multiple columns. Templates like Template:Reflist on English Wikipedia currently are not able to set inline styles on the list element directly, which is why they set it on a `<div>` wrapping the `<references />` output. Because of this, the feature of the Cite extension must not be enabled at the same time, as that would result in both the template's wrapper and the references list being split. The end result would involve sitations with three columns split in four sub-columns, creating a complicated mess of nine intermixed columns. To provide a smooth migration for wikis, this feature can be disabled by default using `$wgCiteResponsiveReferences = false`. Each individual template createing reference list can then be migrated, by removing the wrapper column styles and instead settting the new "responsive" attribute, like so: `<references responsive />`. Once any conflicting templates have been migrated, the default for the wiki can be swapped by setting `$wgCiteResponsiveReferences = true`. If wikis wish for some templates to keep their custom column splitting behaviour, templates can also opt-out by setting `responsive="0"`, which will make sure that it will keep behaving the current way even after the feature becomes enabled by default for the wiki. In summary, when disabled by default, pages can opt into this system with `<references responsive />`. When enabled by default, pages can opt out of the system with `<references responsive=0 />`. * Deprecate cite_references_prefix/cite_references_suffix. This message is rarely used and opens up compatibility hazards. It was already removed by Parsoid, but the PHP implementation still had it. It's typically used to add inline styles to the wrapper which is more appropiately done in Common.css (or obsoleted as part of the skin or Cite extenion itself nowadays depending on what style in question). It was also a HTML-style message with separated open and close segments, which is an anti-pattern in itself. * Declare module target explicitly and include mobile. The absence of this stylesheet caused subtle BiDi/RTL bugs on mobile. Bug: T33597 Change-Id: Ia535f9b722e825e71e792b36356febc3bd444387
61 lines
6.6 KiB
JSON
61 lines
6.6 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Siebrand Mazeland",
|
|
"Robert Rohde",
|
|
"Tim Starling",
|
|
"Raimond Spekking",
|
|
"Alex Zariv",
|
|
"Federico Leva",
|
|
"Rotem Liss",
|
|
"Steve Sanbeg",
|
|
"Marius Hoch",
|
|
"Brion Vibber",
|
|
"Amir E. Aharoni",
|
|
"Ævar Arnfjörð Bjarmason"
|
|
]
|
|
},
|
|
"apihelp-query+references-description": "Return a data representation of references associated with the given pages.",
|
|
"apihelp-query+references-example-1": "References associated with <kbd>Albert Einstein</kbd>.",
|
|
"apierror-citestoragedisabled": "Cite extension reference storage is not enabled.",
|
|
"cite-desc": "Adds <nowiki><ref[ name=id]></nowiki> and <nowiki><references/></nowiki> tags, for citations",
|
|
"cite_error": "Cite error: $1",
|
|
"cite_error_ref_numeric_key": "Invalid <code><ref></code> tag;\nname cannot be a simple integer. Use a descriptive title",
|
|
"cite_error_ref_no_key": "The opening <code><ref></code> tag is malformed or has a bad name",
|
|
"cite_error_ref_too_many_keys": "Invalid <code><ref></code> tag;\ninvalid names, e.g. too many",
|
|
"cite_error_ref_no_input": "Invalid <code><ref></code> tag;\nrefs with no name must have content",
|
|
"cite_error_references_duplicate_key": "Invalid <code><ref></code> tag; name \"$1\" defined multiple times with different content",
|
|
"cite_error_references_invalid_parameters": "Invalid <code><references></code> tag;\nno parameters are allowed.\nUse <code><references /></code>",
|
|
"cite_error_references_invalid_parameters_group": "Invalid <code><references></code> tag;\nparameter \"group\" is allowed only.\nUse <code><references /></code>, or <code><references group=\"...\" /></code>",
|
|
"cite_error_references_no_backlink_label": "Ran out of custom backlink labels.\nDefine more in the <nowiki>[[MediaWiki:Cite references link many format backlink labels]]</nowiki> message.",
|
|
"cite_error_no_link_label_group": "Ran out of custom link labels for group \"$1\".\nDefine more in the <nowiki>[[MediaWiki:$2]]</nowiki> message.",
|
|
"cite_error_references_no_text": "Invalid <code><ref></code> tag;\nno text was provided for refs named <code>$1</code>",
|
|
"cite_error_included_ref": "Closing <code></ref></code> missing for <code><ref></code> tag",
|
|
"cite_error_group_refs_without_references": "<code><ref></code> tags exist for a group named \"$1\", but no corresponding <code><references group=\"$1\"/></code> tag was found, or a closing <code></ref></code> is missing",
|
|
"cite_error_references_group_mismatch": "<code><ref></code> tag in <code><references></code> has conflicting group attribute \"$1\".",
|
|
"cite_error_references_missing_group": "<code><ref></code> tag defined in <code><references></code> has group attribute \"$1\" which does not appear in prior text.",
|
|
"cite_error_references_missing_key": "<code><ref></code> tag with name \"$1\" defined in <code><references></code> is not used in prior text.",
|
|
"cite_error_references_no_key": "<code><ref></code> tag defined in <code><references></code> has no name attribute.",
|
|
"cite_error_empty_references_define": "<code><ref></code> tag defined in <code><references></code> with name \"$1\" has no content.",
|
|
"cite-tracking-category-cite-error": "Pages with reference errors",
|
|
"cite-tracking-category-cite-error-desc": "Pages in this category have errors in the usage of references tags.",
|
|
"cite_reference_link_key_with_num": "$1_$2",
|
|
"cite_reference_link_prefix": "cite_ref-",
|
|
"cite_reference_link_suffix": "",
|
|
"cite_references_link_prefix": "cite_note-",
|
|
"cite_references_link_suffix": "",
|
|
"cite_reference_link": "<sup id=\"$1\" class=\"reference\">[[#$2|[$3]]]</sup>",
|
|
"cite_references_no_link": "<p id=\"$1\">$2</p>",
|
|
"cite_references_link_one": "<li id=\"$1\"><span class=\"mw-cite-backlink\">[[#$2|↑]]</span> $3</li>",
|
|
"cite_references_link_many": "<li id=\"$1\"><span class=\"mw-cite-backlink\">↑ $2</span> $3</li>",
|
|
"cite_references_link_many_format": "<sup>[[#$1|$2]]</sup>",
|
|
"cite_references_link_many_format_backlink_labels": "a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs bt bu bv bw bx by bz ca cb cc cd ce cf cg ch ci cj ck cl cm cn co cp cq cr cs ct cu cv cw cx cy cz da db dc dd de df dg dh di dj dk dl dm dn do dp dq dr ds dt du dv dw dx dy dz ea eb ec ed ee ef eg eh ei ej ek el em en eo ep eq er es et eu ev ew ex ey ez fa fb fc fd fe ff fg fh fi fj fk fl fm fn fo fp fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge gf gg gh gi gj gk gl gm gn go gp gq gr gs gt gu gv gw gx gy gz ha hb hc hd he hf hg hh hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im in io ip iq ir is it iu iv iw ix iy iz ja jb jc jd je jf jg jh ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le lf lg lh li lj lk ll lm ln lo lp lq lr ls lt lu lv lw lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw nx ny nz oa ob oc od oe of og oh oi oj ok ol om on oo op oq or os ot ou ov ow ox oy oz pa pb pc pd pe pf pg ph pi pj pk pl pm pn po pp pq pr ps pt pu pv pw px py pz qa qb qc qd qe qf qg qh qi qj qk ql qm qn qo qp qq qr qs qt qu qv qw qx qy qz ra rb rc rd re rf rg rh ri rj rk rl rm rn ro rp rq rr rs rt ru rv rw rx ry rz sa sb sc sd se sf sg sh si sj sk sl sm sn so sp sq sr ss st su sv sw sx sy sz ta tb tc td te tf tg th ti tj tk tl tm tn to tp tq tr ts tt tu tv tw tx ty tz ua ub uc ud ue uf ug uh ui uj uk ul um un uo up uq ur us ut uu uv uw ux uy uz va vb vc vd ve vf vg vh vi vj vk vl vm vn vo vp vq vr vs vt vu vv vw vx vy vz wa wb wc wd we wf wg wh wi wj wk wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq xr xs xt xu xv xw xx xy xz ya yb yc yd ye yf yg yh yi yj yk yl ym yn yo yp yq yr ys yt yu yv yw yx yy yz za zb zc zd ze zf zg zh zi zj zk zl zm zn zo zp zq zr zs zt zu zv zw zx zy zz",
|
|
"cite_references_link_many_sep": " ",
|
|
"cite_references_link_many_and": " ",
|
|
"cite_references_link_accessibility_label": "Jump up",
|
|
"cite_references_link_many_accessibility_label": "Jump up to:",
|
|
"cite_section_preview_references": "Preview of references",
|
|
"cite_warning": "Cite warning: $1",
|
|
"cite_warning_sectionpreview_no_text": "<code><ref></code> tag with name <code>$1</code> cannot be previewed because it is defined outside the current section or not defined at all."
|
|
}
|