الگو:Cite Q
این الگو در تعداد زیادی صفحه صفحه بهکار رفته است و تغییر دادن آن میتواند تأثیرات گستردهای داشته باشد. لطفاً تغییرات را در زیرصفحههای /تمرین یا /آزمایشی الگو، یا در زیرصفحهٔ کاربری خودتان بیازمایید. توصیه میشود که ابتدا در خصوص تغییرات مورد نظر در صفحهٔ بحث گفتگو کرده و سپس آنها را پیادهسازی کنید. |
From the TfD closure: "[...] works-in-progress should rarely be used in the article space until they are 99% finished/accurate/etc. Until the matter of transcluding Wikidata on Wikipedia is resolved (most likely with a huge and contentious RFC) usage of this template should be extremely vetted to ensure that all of the transcluded information is accurate." |
این الگو از لوآ استفاده میکند: |
Usage
ویرایشA wrapper for {{Citation}}, which calls available values from ویکیداده.
An example of an article using this template for all of its references is تلسکوپ قطب جنوب; an example using Harvard style citations is Suffix automaton.
By default, if there are more than eight author names, the template displays three, followed by "et al". This can be changed using |display-authors=
; using that parameter with no value displays them all. The same applies to multiple editors - see the test-case pages.
Future developments
ویرایش- 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 ویکیپدیا:شیوه ارجاع به منابع wars!
- We should have a [[:mediawiki:|Global templates|global template repository]], so the code can be used by multiple wikis, without having to manually copy it after every update.
Parameters
ویرایش|1=
= Wikidata QID for the article
Additionally, any named parameter used in {{citation}} may be entered and will overwrite the value in Wikidata. Using such parameters, with a value of unset
, will suppress display of data from Wikidata.
Blank
ویرایش<ref name="">{{Cite Q| XXQIDXX }}</ref>
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>
Parameter / entity map
ویرایشThis section lists where each of the template's supported parameters gets its data.
Bibliographic parameters
ویرایش|authorn=
= نویسنده (P50); رشته نام نویسنده (P2093)|chapter=
= فصل (P792)|editorn=
= ویراستار (P98)|issue=
= موضوع (P433)|journal=
= انتشار یافته در (P1433)|language=
= زبان اثر یا نام (P407)|place=
= محل ساخت (P1071) (for written-at place)|publication-date=
= تاریخ انتشار (P577) (treated like|date=
unless both are given)|publication-place=
= محل نشر (P291) (for publication place, treated like|place=
unless both are given)|publisher=
= ناشر (P123)|series=
= دنباله (P179)|title=
= عنوان مقاله (P1476) (Wikidata label)|translatorn=
= برگردان از (P655)|url=
= دیدن اثر کامل در (P953), وبگاه رسمی (P856), URL (P2699)|volume=
= جلدِ (P478)|others=
= آهنگساز (P86), نگارگر (P110), نویسنده پیشگفتار (P2679), امضاکنندگان (P1891), مجری 2 (P371), اجرا کننده (P175)
Identifier parameters
ویرایش|asin=
= شماره شناسایی استاندارد آمازون (P5749) (add|asin-tld=
for some locales)|arxiv=
= شناسهٔ آرخیو (P818)|bibcode=
= شناسهٔ اخترفیزیک (P819) (add|bibcode-access=
to indicate free)|biorxiv=
= BioRxiv ID (P3951)|citeseerx=
= CiteSeerX article ID (former scheme) (P3784)|doi=
= شناسه دیجیتالی (P356) (add|doi-access=
to indicate free; add|doi-broken-date=
if deprecated)|hdl=
= شناسهٔ دیجیتالی هندل (P1184) (add|hdl-access=
to indicate free)|isbn=
= شابک-۱۳ (P212) (falls back to آیاسبیان-۱۰ (P957))|ismn=
= شمارهٔ استاندارد بینالمللی موسیقی (P1208)|issn=
= شاپا (P236)|jstor=
= JSTOR article ID (P888) (add|jstor-access=
to indicate free)|lccn=
= شناسهٔ کتابشناسی کتابخانهٔ کنگره (P1144)|mr=
= شناسه Mathematical Reviews (P889)|oclc=
= برگهدان رایانهای او سی ال سی (P243)|ol=
= شناسهٔ کتابخانهٔ باز (P648) (add|ol-access=
to indicate free)|osti=
= OSTI article ID (P3894) (add|osti-access=
to indicate free)|pmc=
= شناسهٔ پابمد (P932) (add|pmc-embargo-date=
if embargoed)|pmid=
= شناسۀ پابمید (P698)|rfc=
= تعیین هویت برای نظرخواهی (P892)|ssrn=
= شبکهٔ پژوهشی علوم اجتماعی (P893)|s2cid=
= Semantic Scholar corpus ID (P8299) (add|s2cid-access=
to indicate free)|zbl=
= شناسهٔ ظن ترال بلات ریاضی (P894)
Examples
ویرایش{{Cite Q|Q15625490}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (۲۱ مه ۲۰۱۰). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". پلاس وان (به انگلیسی). 5 (5). Bibcode:2010PLoSO...510676W. doi:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMC 2873961. PMID 20505760. Wikidata Q15625490.
{{cite journal}}
: Check date values in:|publication-date=
(help)نگهداری CS1: نقطهگذاری اضافه (link) {{Cite Q|Q15625490|page=42}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (۲۱ مه ۲۰۱۰). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". پلاس وان (به انگلیسی). 5 (5): 42. Bibcode:2010PLoSO...510676W. doi:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMC 2873961. PMID 20505760. Wikidata Q15625490.
{{cite journal}}
: Check date values in:|publication-date=
(help)نگهداری CS1: نقطهگذاری اضافه (link) {{Cite Q|Q15625490|access-date=18 May 2017}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (۲۱ مه ۲۰۱۰). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". پلاس وان (به انگلیسی). 5 (5). Bibcode:2010PLoSO...510676W. doi:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMC 2873961. PMID 20505760. Wikidata Q15625490. Retrieved 18 May 2017.
{{cite journal}}
: Check date values in:|publication-date=
(help)نگهداری CS1: نقطهگذاری اضافه (link) {{Cite Q|Q15625490|quote=lorem ipsum}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (۲۱ مه ۲۰۱۰). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". پلاس وان (به انگلیسی). 5 (5). Bibcode:2010PLoSO...510676W. doi:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMC 2873961. PMID 20505760. Wikidata Q15625490.
lorem ipsum
{{cite journal}}
: Check date values in:|publication-date=
(help)نگهداری CS1: نقطهگذاری اضافه (link) {{Cite Q|Q25766745}}
- Andy Mabbett (۲۰۱۰), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, OCLC 762731304, OL 16228023W, Wikidata Q25766745
{{Cite Q|Q25766745 |chapter=The Final Cut}}
(with chapter specified)- Andy Mabbett (۲۰۱۰), "The Final Cut", in Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, OCLC 762731304, OL 16228023W, Wikidata Q25766745
{{Cite Q|Q25766745 |pages=48-52}}
(with pages)- Andy Mabbett (۲۰۱۰), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, pp. 48–52, OCLC 762731304, OL 16228023W, Wikidata Q25766745
{{Cite Q|Q15625490|access-date=18 May 2017}}
- Jeffrey T. Williams; Kent E. Carpenter; James L. Van Tassell; Paul Hoetjes; Wes Toller; Peter Etnoyer; Michael Smith (۲۱ مه ۲۰۱۰). "Biodiversity Assessment of the Fishes of Saba Bank Atoll, Netherlands Antilles". پلاس وان (به انگلیسی). 5 (5). Bibcode:2010PLoSO...510676W. doi:10.1371/JOURNAL.PONE.0010676. ISSN 1932-6203. PMC 2873961. PMID 20505760. Wikidata Q15625490. Retrieved 18 May 2017.
{{cite journal}}
: Check date values in:|publication-date=
(help)نگهداری CS1: نقطهگذاری اضافه (link) {{Cite Q|Q25766745|mode=cs1}}
- Andy Mabbett (۲۰۱۰), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, OCLC 762731304, OL 16228023W, Wikidata Q25766745
{{Cite Q|Q25766745|mode=cs2}}
- Andy Mabbett (۲۰۱۰), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, OCLC 762731304, OL 16228023W, Wikidata Q25766745
{{Cite Q|Q25766745|author-mask=1}}
- — (۲۰۱۰), Chris Charlesworth (ed.), Pink Floyd: The Music and the Mystery (به انگلیسی), Omnibus Press, OCLC 762731304, OL 16228023W, Wikidata Q25766745
For additional examples, see testcases and testcases/many names.
Module:Wd
ویرایشپودمان:Wd can automatically cause this template to be invoked, e.g.,
{{Wikidata|references|raw|Q2978|P2046}}
- https://www.destatis.de/DE/ZahlenFakten/LaenderRegionen/Regionales/Gemeindeverzeichnis/Administrativ/Aktuell/05Staedte.html. "Alle politisch selbständigen Gemeinden mit ausgewählten Merkmalen am 31.12.2018 (4. Quartal)". اداره فدرال آمار آلمان. Archived from the original on 10 March 2019. Retrieved 10 March 2019.
currently causes the following to be invoked:
{{Cite Q|Q15707237|pages=242}}
- Bavarian State Office for Statistics and Data, ed. (۱۹۹۱), Amtliches Ortsverzeichnis für Bayern (به آلمانی), مونیخ: Bavarian State Office for Statistics and Data, p. 242, Wikidata Q15707237
because an مساحت (P2046) statement on رگنسبورگ (Q2978) is referenced to be ذکر شده در (P248) Amtliches Ortsverzeichnis für Bayern (1991) (Q15707237) with صفحۀ (P304) = 242.
Issues
ویرایش- Render زیرعنوان (P1680), following the title with a
:
- More properties/ parameters to add
- Parameters with no equivalent property?
- Check/resolve handling of redirected QID
- Resolve special case of newspaper articles
- Improve date formatting options
- Handle volume in a serial
- Order of precedence for rendering author names:
- بیان به عنوان (P1932) qualifier on نویسنده (P50)
- رشته نام نویسنده (P2093)
- نویسنده (P50) label in English
- نویسنده (P50) label in any other language
Regardless of which of the above is used, link to the author biography article if available, via نویسنده (P50) (matched via ردیف (P1545) if applicable)
- Author names (Western-style, at least) should display as "Last, First Middle" to match Wikipedia house style
- How to deal with Tussenvoegsels etc.
- Are there values of
|others
which are not illustrators? Possibly:نویسنده پیشگفتار (P2679)- Fails for very high numbers
امضاکنندگان (P1891)مجری 2 (P371)اجرا کننده (P175)
- Add a tracking category for references with a جایگزینشده توسط (P1366) statement
- Add a tracking category for references with a retracted by (P5824) statement
- Add tracking categories for each parameter where the local value differs from the corresponding WD value so that either the WD entry can be updated/corrected or the local override can be corrected/removed
- Links to sister projects: Wikisource, if a transcription project exists; Wikibooks; Wikiversity (esp. the Wikijournals there); perhaps more
- Avoid
<ref name="dicc">{{Cite Q|Q100160262}} {{cite wikisource|wslanguage=pt|wslink=Diccionario Bibliographico Brazileiro/Francisco Antonio de Almeida|title=Transcription}}</ref>
!
- Avoid
- Consider case where author is given as et al. (Q311624)
- If last author/editor is named "et al." (and variants), mute this entry and set display-authors/editors=etal instead before passing down to {citation}
- Disputed; see Template talk:Citation#Et al
- If last author/editor is named "et al." (and variants), mute this entry and set display-authors/editors=etal instead before passing down to {citation}
- پرونده اسکن شده (P996) should take priority over all URL properties
- What if also on Wikisource?
Where there is a Wikipedia article about the work cited, link the title to that, overriding the URL if necessary (example: d:Q25766745)- Ditto for editions of works
- Fix unnecessary piping of author/editor and journal links if link and label are the same, f.e. [[مؤلف (پدیدآور)]] -> [[مؤلف (پدیدآور)]], [[Journal|Journal]] -> [[Journal]]
- Is there a Pxxxx code for SBNs (شماره استاندارد بینالمللی کتاب to support |sbn= parameter?
- Apparently not
- Is there a Pxxxx code for JFM (Jahrbuch über die Fortschritte der Mathematik) to support |jfm= parameter?
- Is there a Pxxxx code for book series editors to add them to the list of "normal" editors?
- Fix page evaluation code to accept comma- and semicolon-separated lists, at present a WD pages entry of "1" will result in |pages=1–1 (and metadata &rft.pages=1-1) rather than |page=1 (and metadata &rft.pages=1).
- Implement evaluation of generic keyword for all parameters to denote that a WD value should be accepted by framing its value in accept-this-as-written markup ((..)). See talk thread for possible keyword names.
- Fix invocation with
|qid=
instead of unnamed parameter. At present {{cite Q|qid=Q12345}} instead of {{cite Q|Q12345}} gives an error.- This is intended; please discuss on talk
- Use canonical parameter names when calling down to {citation} (f.e. |page= rather than |p=) and check all parameter aliases when scanning for override parameters (at present some alias parameter names are ignored, possibly leading to inconsistent behaviour if they are set as well).
- Consider including a link to Special:EntityUsage, in the form, say, Other cites or with a small icon.
Done
ویرایشMultiple author names treated as one blobLinking author name(s)Title for a book uses{{ #invoke:WikidataIB |getLink |{{{1}}} }}
and may be expensiveFix|ol=
valuesNeed to add manual date for newspaper articles/ website articles.Make publisher a link, where appropriateImprove handing of unexpected multiple valuese.g. Handle multiple DOIs
Author name string (رشته نام نویسنده (P2093)) values (e.g. on Q38000000)Pseudonymous author personas such as P. D. Q. Bach or مارک توینTitle not in EnglishHandle volume, issue and page(s) as qualifiers of انتشار یافته در (P1433)Wider variety of examples/ test casesIf language of work or name is set (and not the local language); pass that; if not but language of title is set (and not the local language), use thatTheurl
parameter should also pick up data from the properties دیدن اثر کامل در (P953) and URL (P2699)Linking title to Wikipedia article, if anyFetch ISSN etc. from item about journalMove Wikidata link before|quote=
(and after other IDs like|pmid=
)Also fixes postscript character issues in conjunction with|mode=cs1
and with|quote=