Redigerer
Mal:Wikidata/dok
(avsnitt)
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
=== Positional arguments === The following table shows the available positional arguments (<code>{{Background color|#ffdfc4|arg*}}</code>) in their fixed order. For each command, the applicable set of arguments is marked. If multiple commands are given, then the applicable set is the union of the individual sets. For instance, if the commands <code>properties</code> and <code>qualifiers</code> have been given, then at least both the arguments <code>property_id</code> and <code>qualifier_id</code> should be given as well. More than one <code>qualifier</code>/<code>qualifiers</code> command can be given. The order in which these commands with their flags are given matches the order in which the respective <code>qualifier_id</code> arguments are given. {| class="wikitable" style="background:none;border:none;" |- style="text-align:center;" | rowspan="2" style="background:none;border:none;" | | colspan="2" | <small>''(required)''</small> | <small style="color:#777;">''(optional)''</small> | <small style="color:#777;">(optional)</small> | <small>(required)</small> | <small style="color:#777;">(optional)</small> | <small>(required)</small> | <small>(required)</small> | rowspan="2" style="background:none;border:none;" | |- | colspan="2" | | | | | | | |- | style="border-right:2px solid #000;" | ''<code><nowiki>{{</nowiki>{{{prename|}}}{{lcfirst:{{ROOTPAGENAME}}}}</code>'' | colspan="2" style="border-right:2px solid #000;" | ''<code>commands</code>'' | style="border-right:2px solid #000;" | ''<code style="color:#777;">flags</code>'' ! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code style="color:#777;">entity_id</code> ! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code>property_id</code> ! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code style="color:#777;">raw_value</code> ! style="border-right:2px solid #000;background-color:#ffdfc4;" | <code>qualifier_id</code> ! style="background-color:#ffdfc4;" | <code>qualifier_id</code> | ''<code><nowiki>}}</nowiki></code>'' |- | rowspan="12" colspan="2" style="background:none;border:none;" | | rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" | | | | | | | rowspan="12" style="background:none;border:none;" | |- style="text-align:center;" | rowspan="2" | <code>label</code>, <code>title</code>,<br /><code>description</code>,<br /><code>alias</code>/<code>aliases</code>,<br /><code>badge</code>/<code>badges</code> | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | |- | rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" | |- style="text-align:center;" | rowspan="2" colspan="2" style="border-top:none;" | <code>property</code>/<code>properties</code> | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | |- | rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" | |- style="text-align:center;" | rowspan="2" colspan="3" style="border-top:none;" | <code>reference</code>/<code>references</code> | rowspan="2" style="border-top:none;border-bottom:none;" | | rowspan="2" style="border-top:none;border-bottom:none;" | |- | rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" | |- style="text-align:center;" | rowspan="2" colspan="4" style="border-top:none;" | <code>qualifier</code>/<code>qualifiers</code> | rowspan="2" style="border-top:none;border-bottom:none;" | |- | rowspan="2" colspan="2" style="border-style:dashed;border-left-color:blue;border-bottom-color:blue;" | |- style="text-align:center;" | rowspan="2" colspan="5" style="border-top:none;" | <code>qualifier</code>/<code>qualifiers</code> ''(optional 2<sup>nd</sup>, 3<sup>rd</sup>, etc.)'' |- | rowspan="2" colspan="2" style="border:none;" | |- | colspan="5" style="border:none;" | |} Below follows a description of all positional arguments. {| class="wikitable" |- ! Argument ! Description |- ! style="text-align:left;" | <code style="color:#777;">entity_id</code> <small style="font-weight:normal;">(optional)</small> | '''<code>{{color|red|[EXPENSIVE]}}</code>''' '''Q-identifier''' of the item-entity to be accessed (e.g. <code>Q55</code>), '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the property-entity to be accessed preceded by the <code>Property:</code> prefix (e.g. <code>Property:P38</code>), or '''page title''' of the Wikipedia article whose connected item-entity is to be accessed preceded by <code>:</code>, a prefixed colon (e.g. <code>:Netherlands</code>). In case of the [[#General class|general class commands]], the <code>Property:</code> prefix may be omitted for P-identifiers (e.g. <code>P38</code>). If this parameter is omitted, then the item-entity connected to the current page will be used (except when <code>eid=</code> or <code>page=</code> is given, [[#Named arguments|see below]]). If this parameter is given, but empty (i.e. <code>||</code>), then due to its position it will be interpreted as an [[#Flags|empty flag]] and thus be ignored, giving the same result as if it were omitted. See also the [[#Named arguments|named arguments <code>eid=</code> and <code>page=</code>]] below that can be used to give an entity-ID or page title too, but without the item-entity connected to the current page being used as a default. |- ! style="text-align:left;" | <code>property_id</code> | '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the property within the entity to be accessed, without the <code>Property:</code> prefix (e.g. <code>P35</code>). |- ! style="text-align:left;" | <code style="color:#777;">raw_value</code> <small style="font-weight:normal;">(optional)</small> | Either the '''Q-identifier''' equal to the property value (e.g. <code>Q29574</code>) or a '''literal value''' (i.e. string or quantity etc., ''no entity label'') equal to the raw property value of the particular claim to be accessed. Dates as literal values must be formatted <code>yyyy-mm-dd</code> (e.g. <code>1731-02-11</code>) for dates with a precision of days, <code>yyyy-mm</code> (e.g. <code>1731-02</code>) for dates with a precision of months, and <code>yyyy</code> (e.g. <code>1731</code>) for dates of lesser precision. Dates BCE require a minus sign in front of the year (e.g. <code>-2950-01-31</code>). Dates stored in the Julian calendar must have <code>/Julian</code> attached to the end (e.g. <code>1731-02-11/Julian</code>). Decades like the 2010s must be given as <code>2010</code> (but the 2010s BCE as <code>-2019</code>), centuries like the 20th century as <code>1901</code> (but the 20th century BCE as <code>-2000</code>), and millenniums like the 3rd millennium as <code>2001</code> (but the 3rd millennium BCE as <code>-3000</code>). Globe coordinates as literal values must be formatted with forward slashes (i.e. <code>/</code>) between the parts and no symbols (e.g. <code>52/5/3/N/4/19/3/E</code>) ''without any spaces or leading zeros''. The special type ''''no value'''' can be given by entering the empty string (i.e. <code>||</code>) and the special type ''''unknown value'''' can be given by entering a single underscore (i.e. <code>|_|</code>). To get a literal underscore, escape it by placing a backslash <code>\</code> directly in front of it (i.e. <code>\_</code>); the same holds for a literal backslash (i.e. <code>\\</code>). To get a literal vertical bar <code>|</code>, use <code>{{tl|!}}</code> or <code>&#124;</code>. If this parameter is omitted, then all claims (matching any other constraints) within the property will be accessed. |- ! style="text-align:left;" | <code>qualifier_id</code> | '''P-identifier''' (or an available '''[[#Property aliases|alias]]''') of the qualifier within the entity to be accessed, without the <code>Property:</code> prefix (e.g. <code>P580</code>). |}
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon