Template:Cite Q/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Cite Q. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
Usage
A prototype wrapper for {{Citation}}, which calls available values from Wikidata.
Future developments
- 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
|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|url== url to source; uses Wikidata value if not set
For all but |1=; see {{citation}} for more details.
Blank
{{Cite Q| XXQIDXX |page= |access-date= |quote= }}
Reference naming
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>
Examples
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
{{Cite Q|Q15625490}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q15625490|page=42}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q15625490|access-date=18 May 2017}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q15625490|quote=lorem ipsum}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q15625490|page=42|access-date=18 May 2017|quote=lorem ipsum}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q30000000}}(with issue; volume - needs work!)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q14558831}}(with arxiv; bibcode)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q28597702}}(with biorxiv)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q22241718}}(with citeseerx)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q28798299}}(with osti)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q23327424}}(with ssrn)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
Book
{{Cite Q|Q25766745}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q25766745 |chapter=The Final Cut}}(with chapter specified)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q25766745 |pages =48-52}}(with pages)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q4784}}(with ISBN 10 & OCLC)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q14944010}}(edition; with LCCN & OCLC)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q21707170}}(with MR)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q29581627}}(with series)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
News
Not working at present; needs special handling.
Manuscript
{{Cite Q|Q15664389}}(with hdl)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
Misc
{{Cite Q|Q15901614}}(with ISMN)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
Mode
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs1}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q15625490|access-date=18 May 2017|mode=cs2}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q25766745|mode=cs1}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
{{Cite Q|Q25766745|mode=cs2}}- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
Authormask
{{Cite Q|Q25766745|author-mask=1}}(not currently functioning)- Lua error in Module:Cite_Q at line 53: attempt to index field 'wikibase' (a nil value).
Issues
Multiple author names treated as one blobLinking author name(s)- Title for a book uses
{{ #invoke:RexxS |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)
- Handle multiple DOIs
- 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