Template:S/documentation

Hello, you have come here looking for the meaning of the word Template:S/documentation. In DICTIOUS you will not only get to know all the dictionary meanings for the word Template:S/documentation, but we will also tell you about its etymology, its characteristics and you will know how to say Template:S/documentation in singular and plural. Everything you need to know about the word Template:S/documentation you have here. The definition of the word Template:S/documentation will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofTemplate:S/documentation, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
Documentation for Template:S. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template is for having shorter links to a Wikisouce document when the link is identical to its label. It had one mandatory parameter, and two optional:

  • {{{1}}}: the page title on Wikisource to which you wish to link.
  • {{{2}}}: the text that the template displays. Default is {{{1}}}.
  • lang: the ISO language code of the target Wikisource. Default is en.

A similar effect can be accomplished using the pipe trick: ] is converted to ] during the pre-save transform, which renders as Chicken. Only one interwiki prefix can be stripped in this way. ] transforms to ].

Examples

just using parameter 1
* {{S|The History of the Decline and Fall of the Roman Empire}}

gives:

using parameters 1 and 2
* {{w|William Shakespeare|Shakespeare}}

gives

also using parameter lang (at any position)
*{{w|William Shakespeare|Shakespeare|lang=fr}}
*{{w|lang=fr|William Shakespeare|Shakespeare}}

gives a link eventually rerouted to the French-speaking Wikipedia:

Notes

Because of its simplicity, the template can be substituted using subst:

{{subst:w|William Shakespeare|Shakespeare}}

gives

]

However, substituting

{{subst:w|The History of the Decline and Fall of the Roman Empire}}

gives an unwiedly duplication of content the template is here to avoid in the first place:

]