Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Quick start  







2 Parameters  





3 Examples  





4 Notes  



4.1  When to use  





4.2  When not to use  







5 See also  














Template:Sfnlink







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Doe (1997) p. 123

  • {{Citelink}}
  • {{Cite link}}
  • Creates a one-directional wikilink to the first matching citation template of the article. Unlike {{sfn}}, it does not create a short citation; it creates only the outgoing link. This could be used to link two references; for example, to link a translated work to the original work in a list of references that contains both of them. It may also be used as a workaround for certain false positive errors such as "missing key" errors when short citations are embedded within list-defined references, or as linkage from a Talk page discussion to a citation in an article.

    Usage[edit]

    {{sfnlink|lastname|year|pp=12–15}} – typical usage.

    {{sfnlink|last1|last2|...|year|p=91|loc=...|text=Link text|article=Article name|rev=oldid|lang=xx}}

    Quick start[edit]

    If you want to create a one-way link to a full citation in the Bibliography section of your article which already has a working {{sfn}} that links to it, just copy the sfn invocation out of the wikicode, change 'sfn' to 'sfnlink', and it should just work. You can add param |text= if you want to change the display text underlying the link, and if you are linking from the Talk page, add |article = * to the invocation to link to the article (mainspace) citation.

    Parameters[edit]

    Positional parameters 1–5 are the same as in template {{sfn}}: typically, one to four author surnames, and a YYYY year. The first author surname (positional param |1=) is required; other authors and the year are required if available in the full citation. If present, year must be the last positional parameter. All parameters except the first are optional.

    Basic – these are the same as the parameters of sfn:

    Supplementary – parameters for configuring the link, how it's displayed, and extending its range:

    Parameter notes

    By design, positional parameters 1 – 5 and the page params are the same as parameters in template Sfn. In most cases where {{sfn}} generates a false missing key error, it can be resolved simply by changing sfntosfnlink and leaving everything else alone.

    Optional parameter |article= is not recommended for mainspace, but it may be useful in Talk page discussions to link to citations in related discussions on other pages, or to link directly to a mainspace article citation without having to resolve it with a local references section on a Talk page. Use |article=* as a shortcut to indicate that your target citation is on the page associated with the Talk page you are on (i.e., at {{ARTICLEPAGENAME}} ).

    Optional parameter |rev= is not recommended for use in mainspace. If present, the revision id is sufficient to uniquely identify a particular revision of an article, so param |article= is superfluous in that case. You may, if you wish, use |rev= and |article= together just for the documentary value of having the article named in the wikicode for the benefit of other editors, however when both are present, the value of |article= is ignored and only the |rev= is used.

    Param |lang= should not be used in mainspace. In tandem with param |article=or|rev=, it provides linkage to citations on foreign Wikipedias, and is designed primarily for use on Talk pages where another Wikipedia has a citation of interest to discuss here. Almost all foreign Wikipedias support the use of short citations with linkage to full citations, however, German and Finnish Wikipedias do not, so codes de fi may not be used as a value for |lang= and will generate an error. You can use |lang= and |rev= together to link to a citation in an old version of a foreign Wikipedia article (use of |article= is optional in this case; if used, it is of documentary value only and does not affect the result).

    Examples[edit]

    Example 1: Connect the citation of a translated work to the citation of the original

    Markup Renders as
    The sun is a star.{{sfn|Smith|2015|pp=251–254}} It is hot.{{sfn|Dupont|2012|p=19}}
    
    === Citations ===
    {{reflist}}
    
    === Works cited ===
    * {{cite book |last=Dupont |first=Yves |date=2012 |title=Les étoiles |publisher=Gallimard |location=Paris |lang=fr}}
    *: ''other citations here...''
    * {{cite book |last=Smith |first=Stan |date=2015 |title=Stars |translator=G. Forest |orig-date=1st pub. {{citelink|Dupont|2012|text=Gallimard:2012}} |publisher=MacMillan |location=New York}}

    The sun is a star.[1] It is hot.[2]

    Citations

    1. ^ Smith 2015, pp. 251–254.
  • ^ Dupont 2012, p. 19.
  • Works cited

    • Dupont, Yves (2012). Les étoiles (in French). Paris: Gallimard.
      other citations here...
    • Smith, Stan (2015) [1st pub. Gallimard:2012]. Stars. Translated by G. Forest. New York: MacMillan.

    Example 2: Add a link in a Talk page discussion targeting a particular citation in the article

    Markup Renders as
    === Some discussion ===
    
    The reference that is now listed there ({{sfnlink|Campbell|2004|article=Bede}}) is only accessible with a subscription... [[User:Example1]]

    Some discussion

    The reference that is now listed there (Campbell (2004)) is only accessible with a subscription... User:Example1

    Note: if discussion "Some discussion" is taking place at the associated Talk page (i.e., 'Talk:Bede' in this case), then the following code using the asterisk shortcut is equivalent to the above: {{sfnlink|Campbell|2004|article=*}}.

    Example 3: Use list-defined references with nested sfnlinks (workaround for sfn missing-key error bug)

    Markup Renders as
    The sun is a star.{{sfn|Smith|1993|p=25}}{{efn|name="disc"}} It is hot.{{efn|name="how-hot"}}
    
    === Notes ===
    {{notelist |refs=
    {{efn|name="disc"|The only star close enough to appear larger than a point of light. {{sfnlink|Jones|2008|p=4}}}}
    {{efn|name="how-hot"|About 5,500° Kelvin at the surface. {{sfnlink|Smith|1993|p=32}}}}
    }}
    === Citations ===
    {{reflist}}
    
    === Works cited ===
    * {{cite book |last=Smith |first=Karen |date=1993 |title=The Sun |publisher=Dunlap}}
    * {{cite book |last=Jones |first=Allen |date=2008 |title=Astronomy |publisher=Scribners}}

    The sun is a star.[1][a] It is hot.[b]

    Notes

    1. ^ The only star close enough to appear larger than a point of light. Jones (2008) p. 4
  • ^ About 5,500° Kelvin at the surface. Smith (1993) p. 32
  • Citations

    1. ^ Smith 1993, p. 25.

    Works cited

    • Smith, Karen (1993). The Sun. Dunlap.
    • Jones, Allen (2008). Astronomy. Scribners.

    Example 4: Link a citation in an old, 2016 rev of Darshan (Indian religions):

    Example 5: Link to a citation in the French Wikipedia article Cinéma:

    Notes[edit]

    Sfnlink creates only a wikilink, namely, the same link as the Harvard citation templates; compare {{harvnb}} and {{harvid}}. In contradistinction to template sfn, sfnlink does not create a named footnote, and two identical sfnlinks are not combined, they are like two on-page wikilinks that happen to point to the same destination. Using CITEREF directly is equivalent to the wikilink portion of sfnlink.

    Sfnlink may be helpful for avoiding false-positive "missing key" citation errors when using list-defined references which contain embedded citations. For example, if you have list-defined refs or {{efn}}s that contain short footnotes ({{Sfn}}, {{harv}}, etc.) in them, you will get a false-positive H:CERMK error due to known bug T22707. Replacing the embedded short footnotes with Sfnlink is a workaround that will avoid the error.

    When to use[edit]

    This template may be useful for various situations in which you need a unidirectional link to an existing citation. Here are some possible use cases:

    An alternative to this template is {{citeref}}; when used from mainspace, they are functionally equivalent. From talk space, an alternative is {{sfnt}}.

    When not to use[edit]

    Don't use this template:

    See also[edit]

  • {{sfnt}}
  • {{efn}}
  • {{harv}}
  • {{sfnref}}
  • {{citeref}}
  • {{remoteref}}
  • WP:LDR

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Sfnlink&oldid=1187904141"

    Category: 
    Footnote templates
    Hidden category: 
    CS1 French-language sources (fr)
     



    This page was last edited on 2 December 2023, at 04:33 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki