https://www.xmswiki.com/index.php?title=Template:Citation/make_link/doc&feed=atom&action=historyTemplate:Citation/make link/doc - Revision history2024-03-28T15:05:16ZRevision history for this page on the wikiMediaWiki 1.39.0https://www.xmswiki.com/index.php?title=Template:Citation/make_link/doc&diff=71225&oldid=prevJcreer at 15:45, 28 May 20142014-05-28T15:45:18Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:45, 28 May 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l20">Line 20:</td>
<td colspan="2" class="diff-lineno">Line 20:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* "<code><nowiki>{{Citation/make link||BBC News front page}}</nowiki></code>" produces "{{Citation/make link||BBC News front page}}".</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* "<code><nowiki>{{Citation/make link||BBC News front page}}</nowiki></code>" produces "{{Citation/make link||BBC News front page}}".</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* "<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}}".</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* "<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}}".</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Citation]]</ins></div></td></tr>
</table>Jcreerhttps://www.xmswiki.com/index.php?title=Template:Citation/make_link/doc&diff=50568&oldid=prevJcreer: Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{high-risk|1,500,000+}} This template is a "subroutine" of {{tl|Citation/core..."2013-05-30T15:58:21Z<p>Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{high-risk|1,500,000+}} This template is a "subroutine" of {{tl|Citation/core..."</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
{{high-risk|1,500,000+}}<br />
<br />
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. <br />
<br />
It is invoked as:<br />
: <tt><nowiki>{{Citation/make link </nowiki> </tt><br />
:: | <tt>1</tt> = ''<value of ''<tt>IncludedWorkURL=</tt>'' or ''<tt>URL=</tt>'' or ''<tt>PMC=</tt>'' parameters>'' <br />
:: | <tt>2</tt> = ''<value of ''<tt>IncludedWorkTitle=</tt>'' or ''<tt>Title=</tt>'' parameters>''<br />
: <tt><nowiki>}}</nowiki></tt><br />
<br />
It uses the following algorithm:<br />
# If the first parameter is empty, it returns the second parameter as plain text.<br />
# If the first parameter is a URL, it returns the second parameter wrapped inside an external link to the first.<br />
<br />
This "subroutine" is designed for {{tl|Citation/core}} and makes assumptions that may not be valid elsewhere.<br />
<br />
Examples:<br />
* "<code><nowiki>{{Citation/make link||BBC News front page}}</nowiki></code>" produces "{{Citation/make link||BBC News front page}}".<br />
* "<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}}".</div>Jcreer