Jump to content

Template talk:Citeref

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Citeref/doc)

Weird categorization

[edit]

Why is this in Category:Notice and warning templates? And apparently has been since creation.

Typo / cut-n-paste flub, perhaps, @Matthiaspaul? FeRDNYC (talk) 09:46, 1 January 2022 (UTC)[reply]

Hi, this must have been a copy-and-paste error. Fixed. Thanks for spotting this. --Matthiaspaul (talk) 21:04, 1 January 2022 (UTC)[reply]

Concatenated Template:harvid parameters?

[edit]

@Matthiaspaul, it seems that {{harvid}} parameters may be concatenated without error. Is this intentional?

Examples

no style {{citeref|AuthorLast|2022|a}} [a]

no style concatenated {{citeref|AuthorLast2022|a}} [a]

with style {{citeref|AuthorLast|2022|with style|style=plain}} with style

with style concatenated {{citeref|AuthorLast2022|with style|style=plain}} with style

2 authors no style {{citeref|AuthorLast1|AuthorLast2|2022|b}} [b]

2 authors no style concatenated {{citeref|AuthorLast1AuthorLast22022|b}} [b]

2 authors with style {{citeref|AuthorLast1|AuthorLast2|2022|2 authors with style|style=plain}} 2 authors with style

2 authors with style concatenated {{citeref|AuthorLast1AuthorLast22022|2 authors with style|style=plain}} 2 authors with style

References

  • AuthorLast (2022). BookTitle1.
  • AuthorLast1; AuthorLast2 (2022). BookTitle2.{{cite book}}: CS1 maint: numeric names: authors list (link)

Thank you. 65.88.88.201 (talk) 20:44, 21 August 2023 (UTC)[reply]

Well, this is an "artifact" of how harvids are composed (at present) and how the template was implemented. I deliberately didn't prohibit this, because I think that such a transparent "pass-through" behaviour is good interface design for a tool like this, and also because it could possibly become handy in some cases in the future. However, I also didn't explicitly document it because one of the goals in the creation of this template was to hide the internal format of anchors away from users - also for good interface design rules - in order to not violate the layer concept and because for as long as the formatting is done by the template rather than the user, the format can be centrally updated would it become necessary to change the format in the future. Therefore, I do not recommend to use manually hardcoded harvid-style parameters yourself unless as the output of another template (which could be updated as well if the format would ever change). Hope it helps. --Matthiaspaul (talk) 20:08, 23 August 2023 (UTC)[reply]