Difference between revisions of "Template:CitelinkIW"

From PC-BSD Wiki
Jump to: navigation, search
(edit directly prior worked! :))
(Replaced content with "{{ourInterwiki|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}}")
 
(42 intermediate revisions by one user not shown)
Line 1: Line 1:
<onlyinclude>[{{#switch: {{{1}}}
+
{{ourInterwiki|{{{1}}}|{{{url|{{{2|{{{1}}}}}}}}}}}
{{template:ourInterwiki|{{{1}}}}}{{{url|{{{2|{{{1}}}}}}}}} {{{txt|{{{3|{{{2|{{{1|}}}}}}}}}}}}]{{#tag:ref|{{#switch: {{{1}}}
+
{{template:ourInterwiki|{{{1}}}{{{url|{{{2|}}}}}}|name="{{#switch: {{{1}}}
+
{{template:ourInterwiki|{{{1}}}{{{url|{{{2|{{{1}}}}}}}}}"}}</onlyinclude><noinclude>
+
== Explanation ==
+
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.
+
; External
+
: The URL is for a location outside of wiki.pcbsd.org.
+
:: For the link use '''<nowiki>{{Citelink|url=</nowiki>'''''complete URL'''''|txt='''''alternate text'''''}}'''
+
:: Also place one '''<<nowiki>noinclude>{{refheading}}</noinclude</nowiki>>''' at the bottom of the page, above the category links section.
+
 
+
; Special External
+
: The URL is for a site not part of the PC-BSD wiki, but has a defined shortcut such as for wikipedia.
+
: '''<nowiki>{{Citelink|</nowiki>'''''shortcut'''''|url='''''page URL'''''|txt='''''alternate text'''''}}'''
+
: current defined shortcuts:
+
:: fbsd  (http://wiki.freebsd.org)
+
:: mw (http://www.mediawiki.org/wiki/)
+
:: trac (http://trac.pcbsd.org/wiki/)
+
:: wikipedia (http://en.wikipedia.org/wiki/)
+
</noinclude>
+
<noinclude>
+
[[Category:templates]]
+
[[category:testing]]
+
</noinclude>
+

Latest revision as of 21:21, 24 February 2013

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox