Difference between revisions of "Template:Cite wikisource/make link"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
m (ce;)
imported>Trappist the monk
m (add documentation;)
 
Line 1: Line 1:
 
{{#if:{{{noicon|}}}
 
{{#if:{{{noicon|}}}
 
|[[:s:{{#if:{{{language|}}}|{{{language}}}:}}{{#if:{{{anchor|}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}#{{{anchor}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}}}|{{{label|{{{link|}}}}}}]]
 
|[[:s:{{#if:{{{language|}}}|{{{language}}}:}}{{#if:{{{anchor|}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}#{{{anchor}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}}}|{{{label|{{{link|}}}}}}]]
|[[s:{{#if:{{{language|}}}|{{{language}}}:}}{{#if:{{{anchor|}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}#{{{anchor}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}}}|{{{label|{{{link|}}}}}}]]}}
+
|[[s:{{#if:{{{language|}}}|{{{language}}}:}}{{#if:{{{anchor|}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}#{{{anchor}}}|{{{link|}}}{{#if:{{{chapter|}}}|/{{{chapter}}}}}}}|{{{label|{{{link|}}}}}}]]}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 14:03, 6 April 2019

[[s:|]]

Template documentation[view] [edit] [history] [purge]

This is a service template for {{cite wikisource}} and {{cite DNB}}. Its purpose is to create properly formatted interwiki links into Wikisource.

Usage

{{cite wikisource/make link
  |language=    <!-- cite wikisource only; language code for non-English wikisources (second-level subdomain name) -->
  |link=        <!-- wikisource article name -->
  |anchor=      <!-- modifies {{{link}}}{{{link}}}#{{{anchor}}} -->
  |label=       <!-- the label portion of a wikilink: [[link|label]] -->
  |noicon=      <!-- when set to any value uses [[:s:...]] interwiki link style to prevent Module:Citation/CS1 from rendering the wikisource icon -->
}}