Difference between revisions of "Template:Citelink"

From PC-BSD Wiki
Jump to: navigation, search
(fourth try)
Line 1: Line 1:
<onlyinclude>[{{template:{{#ifeq: {{{1|}}}|{{{2|9-9not_equal9-9}}}|ourInterwiki|citelinkErr}}|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}} {{{txt|{{{3|{{{2|{{{1|}}}}}}}}}}}}]{{#tag:ref|{{template:ourInterwiki|{{{1}}}|{{{url|{{{2|}}}}}}}}|name="{{template:ourInterwiki|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}}"}}</onlyinclude><noinclude>  <!-- above works as is. do not adjust -->{{#ifeq: {{{1|}}}|{{{2|9-9not_equal9-9}}}|ourInterwiki|citelinkErr}}
<onlyinclude>[{{template:{{#ifeq: {{{1}}}|{{{2|9-9not_equal9-9}}}|ourInterwiki|citelinkErr}}|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}} {{{txt|{{{3|{{{2|{{{1|}}}}}}}}}}}}]{{#tag:ref|{{template:{{#ifeq: {{{1}}}|{{{2|9-9not_equal9-9}}}|ourInterwiki|citelinkErr}}|{{{1}}}|{{{url|{{{2|}}}}}}}}|name="{{template:{{#ifeq: {{{1}}}|{{{2|9-9not_equal9-9}}}|ourInterwiki|citelinkErr}}|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}}"}}</onlyinclude><noinclude>  <!-- above works as is. do not adjust -->
== Explanation ==
== Explanation ==

Revision as of 03:14, 3 August 2012

[Error txt={{{1}}} needed in citelink ][1]



This template exists to simplify addition of a footnote feature within the handbook pages, to reduce the work needed when the handbook wiki is published into the dead tree version. It may also facilitate verification of all external links except that this assumes that all external links (of both types below) are in the wiki using this template.

Implementation - 1st part

The Citelink template method to satisfy the per-link part.


The URL is for a location outside of wiki.pcbsd.org.
For the link use {{Citelink|url=complete URL|txt=alternate text}}

Special External

The URL is for a site not part of the PC-BSD wiki, but has a defined shortcut such as for wikipedia.
{{Citelink|shortcut|url=page URL|txt=alternate text}}
Example: [http://en.wikipedia.org/wiki/faq/ faq on wikipedia] becomes {{citelink|wikipedia|url=faq|faq on wikipedia}}

Current defined shortcuts

commons ------- http://commons.wikimedia.org/wiki/
fbsd ---------- http://wiki.freebsd.org/
mw ------------ http://www.mediawiki.org/wiki/
mediawikiwiki - http://www.mediawiki.org/wiki/
mediazilla ---- http://bugzilla.wikimedia.org/
meta ---------- http://meta.wikimedia.org/wiki/
trac ---------- http://trac.pcbsd.org/wiki/
wikibooks ----- http://en.wikibooks.org/wiki/
wikimedia ----- http://wikimediafoundation.org/wiki/
wikinews ------ http://en.wikinews.org/wiki/
wikiquote ----- http://en.wikiquote.org/wiki/
wikisource ---- http://wikisource.org/wiki/
wikispecies --- http://species.wikimedia.org/wiki/
wiktionary ---- http://en.wiktionary.org/wiki/
wp ------------ http://en.wikipedia.org/wiki/
wikipedia ----- http://en.wikipedia.org/wiki/
wikiversity --- http://en.wikiversity.org/wiki/

Implementation - 2nd part

The refheading template method to satisfy the per-page part.

Place one <noinclude>{{refheading}}</noinclude> at the bottom of the page, above the category links section.
  • A large red text warning message which mentions <ref> is automatically generated by the wiki when the second half of the setup is missing.

Cite error: <ref> tags exist, but no <references/> tag was found