Mal:Cite Q
| Denne malen benytter seg av Lua: |
Usage
[rediger kilde]A prototype wrapper for {{Citation}}, which calls available values from Wikidata.
Future developments
[rediger kilde]Convert to use Lua for more advanced functionality- Once robust the functionality should be merged into {{Citation}}
- Eventually, each signed-in reader should be able to set, under their "Preferences", the style in which they wish to see citations rendered. No more CiteVar wars!
Parameters
[rediger kilde]|1== Wikidata QID for the article|access-date== date an online resources was viewed|author-mask== replace author name(s) with em-dashes or text|chapter== chapter title or number of a book or larger work; overrides Wikidata value|date== date of publication; uses Wikidata value if not set|df== date format|display-authors==|embargo== embargo date for PMC|id== generic ID; may be wikilinked|mode== Sets separator, terminal punctuation, and capitalization; use|mode=cs1or|mode=cs2|page== single page number|pages== multiple page numbers, e.g.27-29or34,36|quote== quotation from the source; may include wikilinks|series== series of which e.g. a book is part; may include wikilinks; uses Wikidata value if not set|url== url to source; uses Wikidata value if not set
For all but |1=; see {{citation}} for more details.
Blank
[rediger kilde]{{Cite Q| XXQIDXX |page= |access-date= |quote= }}
Reference naming
[rediger kilde]For ease of use, you may wish to name your references to reflect the cited work, for example:
<ref name="Williams-2010">{{Cite Q|Q15625490}}</ref>
Parameter / entity map
[rediger kilde]This section lists where each of the template's supported parameters gets its data. P734}} Mal:Columns-start
Bibliographic parameters
[rediger kilde]|authorn== (QP50)|chapter== (QP792)|date== (QP577)|editorn== (QP98)|issue== (QP433)|journal== (QP1433)|others== (QP110)|place== (QP291)|publisher== (QP123)|series== (QP179)|title== (QP1476)|title== wikidata label|url== (QP856)|volume== (QP478)
Identifier parameters
[rediger kilde]|arxiv== (QP818)|bibcode== (QP819)|biorxiv== (QP3951)|citeseerx== (QP3784)|doi== (QP356)|hdl== (QP1184)|isbn== (QP212)|isbn== (QP957)|ismn== (QP1208)|jstor== (QP888)|lccn== (QP1144)|mr== (QP889)|oclc== (QP243)|ol== (QP648)|osti== (QP3894)|pmc== (QP932)|pmid== (QP698)|ssrn== (QP893)
Examples
[rediger kilde]Examples here are mostly test-cases, and will need to be thinned (and moved to a sub-page) before the template is widely deployed.
Journal
[rediger kilde]{{Cite Q|Q15625490}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q15625490|page=42}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q15625490|access-date=18 May 2017}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q15625490|quote=lorem ipsum}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q15625490|page=42|access-date=18 May 2017|quote=lorem ipsum}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q30000000}}(with issue; volume - needs work!)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q14558831}}(with arxiv; bibcode)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q28597702}}(with biorxiv)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q22241718}}(with citeseerx)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q28798299}}(with osti)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q23327424}}(with ssrn)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
Book
[rediger kilde]{{Cite Q|Q25766745}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q25766745 |chapter=The Final Cut}}(with chapter specified)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q25766745 |pages =48-52}}(with pages)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q4784}}(with ISBN 10 & OCLC)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q14944010}}(edition; with LCCN & OCLC)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q21707170}}(with MR)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q24969482|volume=1|date=1873}}(with volume & year; note: it is better to create an item for the specific volume)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q29581627|series=A series}}(with series)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
News
[rediger kilde]Not working at present; needs special handling.
Manuscript
[rediger kilde]{{Cite Q|Q15664389}}(with hdl)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
Misc
[rediger kilde]{{Cite Q|Q15901614}}(with ISMN)- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
Mode
[rediger kilde]{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs1}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs2}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q25766745|mode=cs1}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
{{Cite Q|Q25766745|mode=cs2}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
Authormask
[rediger kilde]{{Cite Q|Q25766745|author-mask=1}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
Module:Wd-norsk
[rediger kilde]Module:Wd-norsk can automatically cause this template to be invoked, e.g.,
{{Wikidata-norsk|referanser|rå|Q2978|P2046}}
currently causes the following to be invoked:
{{Cite Q|Q15707237|pages=242}}- Lua-feil i Modul:Cite_Q, linje 13: attempt to index a nil value.
because an (QP2046) statement on (Q2978) is referenced to be (QP248) (Q15707237) with (QP304) = 242.
{{wikidata-norsk|referanser}} is used in a number of places including {{Infobox World Heritage Site}} resulting in the above reference appearing as a reference footnote at Mal:Section link.
Issues
[rediger kilde]Multiple author names treated as one blobLinking author name(s)Title for a book uses{{ #invoke:WikidataIB |getLink |{{{1}}} }}and may be expensive- What to do if title not in English
- Linking title to Wikipedia article, if any
- Need to fetch ISSN etc. from item about journal
- More properties/ parameters to add
- Parameters with no equivalent property?
- Move Wikidata link before
|quote=(and after other IDs like|pmid=) Fix|ol=values- Need to handle volume, issue and page(s) as qualifiers of journal (see Q30000000 example)
- Check/ resolve handling of redirected QIDs
- Need wider variety of examples/ test cases
Need to add manual date for newspaper articles/ website articles.- Resolve special case of newspaper articles
- Improve date formatting options
- Make publisher a link, where appropriate
- Handle volume in a serial
- Improve handing of unexpected multiple values
- e.g. Handle multiple DOIs
Handle author name string ( (QP2093)) values (e.g. on Q38000000)- Order of precedence for rendering author names:
Handle pseudonymous author personas such as P. D. Q. Bach or Mark Twain
Q25766745