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
 

















Template:Citation/make link






Alemannisch
ि
العربية
Asturianu
Azərbaycanca
تۆرکجه

Bosanski
Chavacano de Zamboanga
ChiShona
Cymraeg
Dagbanli
Dansk
الدارجة

Español
Esperanto
Euskara
فارسی
Français
Gaeilge
گیلکی


Հայերեն
Ilokano
Bahasa Indonesia
IsiXhosa
IsiZulu
Italiano
עברית
Jawa

Ladino
Latina
Latviešu
ि
Македонски
مصرى

Bahasa Melayu
Minangkabau


ି

Patois

Português
Română

Scots

Simple English
سنڌي
Slovenščina
کوردی
Sranantongo
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Татарча / tatarça

Тоҷикӣ
Tsetsêhestâhese
Türkçe
Türkmençe
Українська
اردو
Tiếng Vit

ייִדיש
Yorùbá

Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



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




Print/export  



Download as PDF
Printable version
 




In other projects  



Meta-Wiki
Wikispecies
Wikibooks
Wikisource
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

< Template:Citation

{{{2}}}

This template is a "subroutine" of {{Citation/core}} used for conditionally making links for the chapter= and title= fields in a citation.

It is invoked as:

{{Citation/make link
| 1 = <value of IncludedWorkURL=orURL=orPMC= parameters>
| 2 = <value of IncludedWorkTitle=orTitle= parameters>
}}

It uses the following algorithm:

  1. If the first parameter is empty, it returns the second parameter as plain text.
  2. If the first parameter is a URL, it returns the second parameter wrapped inside an external link to the first.

This "subroutine" is designed for {{Citation/core}} and makes assumptions that may not be valid elsewhere.

Examples:


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Citation/make_link&oldid=690395470"

Hidden category: 
Wikipedia fully protected templates
 



This page was last edited on 13 November 2015, at 02:17 (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