موضيل:Cite Q
موضيل ؤلا شرح د لموضيل مامطرجمش. عافاك عاون ف طّرجامة ديالو. |
هذا القالب يستعمل لوا: |
Background
بدلخطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
تخدام
بدلA wrapper for {{Citation}}, which calls available values from ويكيداطا.
An example of an article using this template for all of its references is South Pole Telescope; 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=
; setting that parameter to all
displays them all. The same applies to multiple editors – see the test-case pages.
Citations of papers which have been retracted (سحبها (P5824)) will appear in Category:Cite Q - cites a retracted work.
Citations of papers which have been replaced (جا فبصلاتو (P1366)) will appear in Category:Cite Q - cites a replaced work.
You can also use {{Cite Q bulleted}} if you want to have a bullet returned before the citation (useful for automatic lists).
پاراميطرات
بدل|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
بدل|at=
= قسم أو آية أو فقرة أو بند (P958)|authorn=
= لمؤليف (P50); اسم المُؤَلِّف بالحروف (P2093)|chapter=
= الفصل (P792)|edition=
= رقم الطبعة (P393)|editorn=
= كتاتبي (P98); رئيس التحرير (P5769)|issue=
= العدد (P433)|journal=
= منشور في (P1433)|language=
= اللوغة د الخدمة ؤلا د السمية (P407)|pages=
= الصفحة (P304)|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), محدد موقع الموارد المُوحَّد (P2699)|version=
= مُعرِّف نسخة البرمجية (P348)|volume=
= المُجلَّد (P478)|others=
= كومپوزيتور (P86), رسام توضيحي (P110), تقديم (P2679), المقدم (P371), المؤدي (P175)
Identifier parameters
بدل|asin=
= رقم تعريف أمازون القياسي (P5749) (add|asin-tld=
for some locales)|arxiv=
= مُعرِّف أرخايف (arXiv) (P818)|bibcode=
= رمز المعلومات المكتبية في نظام البيانات الفلكية الفيزيائية (ADS bibcode) (P819) (add|bibcode-access=
to indicate free)|biorxiv=
= معرف بيوركسيف (P3951)|citeseerx=
= مُعرِّف مقالة في سايتسيركس (CiteSeerX) (P3784)|doi=
= مُعرِّف الغرض الرَّقميُّ (DOI) (P356) (add|doi-access=
to indicate free; add|doi-broken-date=
if deprecated)|hdl=
= مُعرِّف نظام الإمساك (HDL) (P1184) (add|hdl-access=
to indicate free)|isbn=
= رقم الكتاب المعياريُّ الدَّوليُّ ثلاثة العشريِّ (ISBN-13) (P212) (falls back to رقم الكتاب المعياريُّ الدَّوليُّ العشاريُّ (ISBN-10) (P957))|ismn=
= رقم دولي معياري للموسيقى (P1208)|issn=
= الرَّقم التَّسلسليُّ المِعياريُّ الدَّوليُّ (ISSN) (P236)|jstor=
= مُعرِّف مقالة في جايستور (JSTOR) (P888) (add|jstor-access=
to indicate free)|lccn=
= رقم الضَّبط في مكتبة الكونغرس (LCCN) (P1144)|mr=
= معرف ماثماتيكل ريفيوز (P889)|oclc=
= مُعرِّف مركز المكتبة الرقمية على الإنترنت (OCLC) (P243)|ol=
= مُعرِّف المكتبة المفتوحة (OLID) (P648) (add|ol-access=
to indicate free)|osti=
= معرف مكتب المعلومات العلمية والتقنية (P3894) (add|osti-access=
to indicate free)|pmc=
= مُعرِّف الطب للعموم المركزي (PMCID) (P932) (add|pmc-embargo-date=
if embargoed)|pmid=
= مُعرِّف الطب للعموم (PMID) (P698)|rfc=
= مُعرِّف وثائق طلب التعليقات (RFC) (P892)|ssrn=
= معرف شبكة أبحاث العلوم الاجتماعية (P893)|s2cid=
= مُعرِّف مُؤَلَّف في قاعدة بيانات "الباحث الدلالي" (S2CID) (P8299) (add|s2cid-access=
to indicate free)|zbl=
= مُعرِّف مستند في قاعدة بيانات زبماث (zbMATH) (P894)
أمتيلا
بدل{{Cite Q|Q15625490}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q15625490|page=42}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q15625490|access-date=18 May 2017}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q15625490|quote=lorem ipsum}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745 |chapter=The Final Cut}}
(with chapter specified)- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745 |pages=48-52}}
(with pages)- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q15625490|access-date=18 May 2017}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745|mode=cs1}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745|mode=cs2}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
{{Cite Q|Q25766745|author-mask=1}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
For an example of a bibliography, updated periodically by Listeriabot, see خدايمي:Mike Peel/publications.
For additional examples, see testcases and testcases/many names.
Workflow
بدلThe template used with a single parameter, the Q-number of the article on Wikidata, will produce a citation using the default display parameters from موضيل:Citation and the styling of the author and editor names as they are stored on Wikidata. This is rarely the same as required by the citation formatting in any given article. The guidance at ويكيپيديا:CITEVAR requires that editors match the formatting of citations that they add to that of the article where it is added. At present, {{Cite Q}} does not know what style the formatting in an article requires (although it is possible that common styles could be marked or recognised automatically as is done for date formatting).
The result is that editors using {{Cite Q}} must take care to preview their edits and ensure that the formatting rendered matches that of the rest of the article. The commonest formatting issues are:
- Order of editor names:
- A typical output might be:
{{Cite Q |Q15625490}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- If that were used in an article that used "Last, First" format for author names, then the editor would have to supply those author names manually in the desired format. It's often worth previewing the citation in expanded form to show what is being passed to the actual citation template:
{{Cite Q |Q15625490 |expand=yes}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- That would make the author names (and author-links) easily available for copy and paste, followed by tweaking into the desired format:
{{Cite Q |Q15625490 |author6=Etnoyer, Peter |author4=Hoetjes, Paul |author7=Smith, Michael |author5=Toller, Wes |author3=van Tassell, James L |author-link2=Kent E. Carpenter |author1=Williams, Jeffrey T |author2=Carpenter, Kent E}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- Punctuation:
- The separators between elements in the above citation is a comma, which is the default for a CS2-style format produced by {{Citation}}. Careful examination in a particular article will often show the separator punctuation to be a full stop (period). That may be selected by setting
|mode=cs1
:
{{Cite Q |Q15625490 |author6=Etnoyer, Peter |author4=Hoetjes, Paul |author7=Smith, Michael |author5=Toller, Wes |author3=van Tassell, James L |author-link2=Kent E. Carpenter |author1=Williams, Jeffrey T |author2=Carpenter, Kent E |mode=cs1}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- Sometimes, the article will have author names with initials, and those initials are terminated with a full stop (period). It may be necessary to manually add or remove the punctuation in the author names to match the style of the target article (note: this does not apply to author-links, which match the title of the author's article):
{{Cite Q |Q15625490 |author6=Etnoyer, Peter |author4=Hoetjes, Paul |author7=Smith, Michael |author5=Toller, Wes |author3=van Tassell, James L. |author-link2=Kent E. Carpenter |author1=Williams, Jeffrey T. |author2=Carpenter, Kent E. |mode=cs1}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- The separators between elements in the above citation is a comma, which is the default for a CS2-style format produced by {{Citation}}. Careful examination in a particular article will often show the separator punctuation to be a full stop (period). That may be selected by setting
- Italicisation in titles:
- Titles drawn from Wikidata cannot contain formatting, so editors using {{Cite Q}} may have to add appropriate formatting.
- {{Citation}} will automatically apply italicisation to titles of books, etc. so that does not need to be added:
{{Cite Q |Q25766745}}
→- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- However, some titles require partial italicisation, and that has to be done manually when the whole title is not italicised, although that is rare. Titles of chapters may also need to be checked:
- For example (from موضيل:Isbn):
|chapter= ''Porphyra'' as food: cultivation and economic
Module:Wd
بدلمودول:Wd can automatically cause this template to be invoked, e.g.,
{{Wikidata|references|raw|Q2978|P2046}}
- Error: Unable to display the reference properly. See the documentation for details. "Alle politisch selbständigen Gemeinden mit ausgewählten Merkmalen am 31.12.2018 (4. Quartal)". مأرشيڤي من لأصل ف 10 مارس 2019. تطّالع عليه ب تاريخ 10 مارس 2019.
currently causes the following to be invoked:
{{Cite Q|Q15707237|pages=242}}
- خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
because an موضيل:Wikidata entity link statement on موضيل:Wikidata entity link is referenced to be موضيل:Wikidata entity link موضيل:Wikidata entity link with موضيل:Wikidata entity link = 242.
Issues
بدل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 CiteVar wars!
- We should have a global template repository, so the code can be used by multiple wikis, without having to manually copy it after every update.
To do list
بدل- Properties
- More properties/ parameters to add
- Parameters with no equivalent property?
- Internationalisation
- Check/resolve handling of redirected QID
- Order of precedence for rendering author names:
موضيل:Wikidata entity link qualifier on موضيل:Wikidata entity linkموضيل:Wikidata entity link qualifier on موضيل:Wikidata entity linkموضيل:Wikidata entity linkموضيل:Wikidata entity link label in English- موضيل:Wikidata entity link label in any other language
Regardless of which of the above is used, link to the author biography article if available, via موضيل:Wikidata entity link (matched via موضيل:Wikidata entity link if applicable)
- 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
- Other tracking categories?
- 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>
! - Also add links to authors who have pages on Wikisource but not on Wikipedia. Related query: Authors on Wikisource but not other projects, who are linked to by an item which is a subclass of Q47461344 (written work)
- Avoid
- Consider case where author is given as موضيل:Q
- 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 لمداكرة د لموضيل: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}
- Link to Wikisource should take priority over all URL properties, but only if accompanied by مستنَد رقمي في ويكيميديا كومنز (P996). If not, مستنَد رقمي في ويكيميديا كومنز (P996) should take precedence over URLs.
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
- 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.
- 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 خاص:EntityUsage, in the form, say, Other cites or with a small icon.
- Take possible template parameter usage as hint which parameter to use in the generated output. F.e. if the journal/magazine/newspaper parameter is used, the template should use the same in the output. The underlying template {citation} will switch the output format accordingly.
- Try to utilize given parameter values as filter for retrieved WD data. If an editor specifies |edition=2 or |volume=3, cite Q should select correlating data (f.e. page ranges, identifiers etc.) while retrieving data from WD (in cases where more than one entry is available for a particular parameter)
- When the author is cited as موضيل:Q, the label should start with an upper case letter
- Quick and dirty workaround:
{{ucfirst:{{Cite Q|xxxx}}
- Quick and dirty workaround:
- Convert WikiData's edition number (e.g., 1) into the ordinal (1st) expected by {{citation}}.
- Make this fix unnecessary.
- Add indication alongside citations of retracted/ replaced works
- Consider cases where citing a retracted/ replaced work is deliberate
- Make use of
|archive-url=
,|archive-date=
, and consider how to use|url-status=
- Use العنوان بلغة ترميز النص التشعبي (P6833), where present.
- Improve rendering when both لمؤليف (P50) and اسم المُؤَلِّف بالحروف (P2093) are present.
- Example: {{Cite Q|Q108740476}} → خطأ: لا توجد وحدة بهذا الاسم "Cite/نسخة".
- Current rendering of author name uses semicolon: “Camelia-Manuela Lățăianu; Manuela Lataianu”
- Suggested improved rendering of author name: “Manuela Lataianu [= Camelia-Manuela Lățăianu]”
Deferred
بدلFeel free to tackle these; the core team working on Cite Q sees them as low priority, or too complex.
- Resolve special case of newspaper articles
- Is the following topic of "hint parameters" related to this?
- Author names (Western-style, at least) should display as "Last, First Middle" to match Wikipedia house style
- How to deal with Tussenvoegsels etc.
- In Romance languages, it should be, e.g., "Quental, Antero de" instead of "de Quental, Antero"
- How to deal with Tussenvoegsels etc.
- Handle volume in a serial
- Clarification needed: What is meant by this? |part=, or output format differences journal vs. magazine?
- Is there a Pxxxx code for book series editors to add them to the list of "normal" editors?
- resolve at Wikidata first
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 (موضيل:Wikidata entity link) values (e.g. on Q38000000)Pseudonymous author personas such as P. D. Q. Bach or Mark TwainTitle not in EnglishHandle volume, issue and page(s) as qualifiers of موضيل:Wikidata entity linkWider 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 موضيل:Wikidata property link and موضيل:Wikidata property linkLinking 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=
Fix page evaluation code to accept comma- and semicolon-separated listsUse canonical parameter names when calling down to {citation} (f.e. |page= rather than |p=)Is there a Pxxxx code for SBNs (Standard Book Number to support |sbn= parameter?Is there a Pxxxx code for JFM (Jahrbuch über die Fortschritte der Mathematik) to support |jfm= parameter?مُعرِّف مستند في قاعدة بيانات زبماث (zbMATH) (P894)? No, Zbl uses the same resolving link, but it is a different ID.
- Are there values of
|others
which are not illustrators? Possibly:تقديم (P2679)الموقعون (P1891)Fails for very high numbers
المقدم (P371)المؤدي (P175)
Add a tracking category for references with a جا فبصلاتو (P1366) statementAdd a tracking category for references with a سحبها (P5824) statementRender موضيل:Wikidata entity link, following the title with a:
Won't fix
بدل- Improve date formatting options
- This is done in {{Citation}}
- Fix unnecessary piping of author/editor and journal links if link and label are the same, f.e. [[Author|Author]] -> [[Author]], [[Journal|Journal]] -> [[Journal]] for improved reusability, cleaniness of output, reduced size of resulting page code, and to avoid potential future extra text errors thrown by the underlying {citation} template
- See talk
- 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
- Fix ready for test in template sandbox: {{cite Q/sandbox|qid=Q15625490}} gives موضيل:Cite Q/sandbox
Template data
بدلGenerate citations from Wikidata by passing the QID to this template
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
QID | 1 | The Wikidata QID of the cited source | نص | مطلوب |
هاد شّرح لي لفوق تم تضمينو من موضيل:Cite Q/شرح. (عدل | تاريخ) لكتاتبيا يقدرو يجربو تعديلاتهم على لقالب ف صفحات تيران د رملة (صاوب | مراية) و لابو (صاوب). عافاك زيد التصنيفات ف الصفحة لفرعية /شرح. الصفحات لفرعية ديال هاد لقالب. |