Main page
New page
Upload file
Help
Community portal
Recent changes
Talk
Contributions
Create account
Enable dark mode
Enable read mode
Log in
View history
What links here
Related changes
Page information
Editing
Template:Citation/make link/doc
From Appropedia
Are you familiar with
Appropedia's template guidelines
?
Warning!
You are not logged in.
Log in
or
create an account
to have your edits attributed to your username rather than your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} This template is a "subroutine" of {{Tl|Citation/core}} used for conditionally making links for the <code>chapter=</code> and <code>title=</code> fields in a citation. It is invoked as: : <tt><nowiki>{{Citation/make link </nowiki> </tt> ::| <tt>1</tt> = ''<value of ''<tt>IncludedWorkURL=</tt>'' or ''<tt>URL=</tt>'' or ''<tt>PMC=</tt>'' parameters>'' ::| <tt>2</tt> = ''<value of ''<tt>IncludedWorkTitle=</tt>'' or ''<tt>Title=</tt>'' parameters>'' : <tt><nowiki>}}</nowiki></tt> It uses the following algorithm: # If the first parameter is empty, it returns the second parameter as plain text. # 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 {{Tl|Citation/core}} and makes assumptions that may not be valid elsewhere. Examples: * "<code><nowiki>{{Citation/make link||BBC News front page}}</nowiki></code>" produces "{{Citation/make link||BBC News front page}}". * "<code><nowiki>{{Citation/make link|http://news.bbc.co.uk/|BBC News front page}}</nowiki></code>" produces "{{Citation/make link|http://news.bbc.co.uk/|BBC News front page}}". == See also == * [[Wikipedia:Template:Citation/make link]] <includeonly> [[Category:Citation templates]] </includeonly>
Summary:
Warning!
All contributions to Appropedia are released under the CC-BY-SA-4.0 license unless otherwise noted (see
Appropedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here! You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted material without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
MediaWiki:TemplateNotice.js
(
view source
)
Template:Citation/make link
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Notice
(
view source
) (protected)
Template:Notice/styles.css
(
edit
)
Template:Template
(
edit
)
Template:Tl
(
edit
)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
OK
Discussion