Content deleted Content added
updating documentation |
→Parameters to getValue: updating documentation |
||
Line 113:
|
| The Q-number (entity-ID) of the entity that the property belongs to. If not supplied or empty, defaults to the associated Wikidata entry of the current page – uses [[:mw:Extension:Wikibase Client/Lua #mw.wikibase.getEntityIdForCurrentPage|mw.wikibase.getEntityIdForCurrentPage()]].
| Item id for current
|-
| rank
Line 122:
| qual
|
|
| none
|-
| qualsonly
| qo
| A boolean which enables the display of just the qualifier(s), without the property value or parentheses. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| false
|-
| fetchwikidata
Line 149 ⟶ 154:
| Date format: may be <code>dmy</code> (day before month) or <code>mdy</code> (month before day) or <code>y</code> (year alone).
| dmy
|-
| qdf
|
| Date format of qualifiers. If omitted, defaults to parameter <code>df</code>, or "y" if <code>df</code> is also omitted.
| value of df or "y"
|-
| bc
Line 154 ⟶ 164:
| Format of the BC/BCE suffix for dates.
| BCE
|-
| plaindate
| pd
| String to modify formatting of dates. Setting "true"/"yes"/"1" disables adding "sourcing cirumstances" (P1480) and any links. Setting "adj" does the same but uses the adjectival form of the date.
| false
|-
| linked
Line 159 ⟶ 174:
| A boolean that enables the link to a local page via its sitelink on Wikidata. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| true
|-
| displaytext
| dt
| A string that overrides the displayed text of a linked item if it is non-empty.
| empty
|-
| shortname
| sn
| A boolean that enables the use of shortname (P1813) instead of label for a linked item. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| false
|-
| wdlinks
Line 169 ⟶ 194:
| A boolean that enables unit abbreviations for common units. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| false
|-
| convert
| conv
| A boolean that enables passing of quantities to Template:Cvt. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| false
|-
| showunits
| su
| A boolean that enables showing units for quantities. Values <code>no</code>, <code>false</code> and <code>0</code> are all false; anything else is true.
| true
|-
| scale
|
| A string that sets scaling for format of quantities. Values are: "a"=automatic; "0"=no scaling; "3"=thousand; "6"=million; "9"=billion; "12"=trillion.
| 0
|-
| maxvals
Line 181 ⟶ 221:
|-
| linkprefix
| lp
| A link prefix that is prepended to the linked value when linked. Applies only to items that have articles and to strings (e.g. url). It triggers linking of strings. Any double-quotes " are stripped out, so that spaces may be passed.
| empty
Line 201 ⟶ 241:
|-
| qlinkprefix
| qlp
| Qualifier link prefix (see linkprefix).
| empty
|