Template:Sec link/relative url: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (1 revision imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
# | //{{#switch: {{lc: {{{project|}}} }} | ||
| wikipedia | w = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikipedia | |||
| wiktionary | wikt = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wiktionary | |||
| wikinews | n = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikinews | |||
| wikibooks | b = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikibooks | |||
| wikiquote | q = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiquote | |||
| wikisource | s = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikisource | |||
| oldwikisource = wikisource | |||
| wikispecies | species = species.wikimedia | |||
| wikiversity | v = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiversity | |||
| wikimedia | foundation | wmf = wikimediafoundation | |||
| wikivoyage = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikivoyage | |||
| commons = commons.wikimedia | |||
| meta | metawikipedia | m = meta.wikimedia | |||
| strategy = strategy.wikimedia | |||
| incubator = incubator.wikimedia | |||
| mw = www.mediawiki | |||
| nost = nostalgia.wikimedia | |||
| testwiki = test.wikipedia | |||
| #default = | |||
<!-- Other Wikipedia language fed, or no project fed. | |||
(If copying this template to a non-Wikipedia project, | |||
then update the below code line.) --> | |||
| #default = {{#if:{{{project|}}}|{{{project}}}|{{CONTENTLANG}}}}.wikipedia | |||
}}.org/wiki/{{#if: {{{anchor|}}} | |||
| {{Case preserving encode|{{{pagename|}}} }}#{{anchorencode:{{{anchor}}} }} | |||
| {{Case preserving encode|{{{pagename|}}} }}{{#if: {{{query|}}} | |||
| ?{{{query|}}} | |||
}} | |||
}}<noinclude> | |||
{{documentation}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |
Latest revision as of 15:53, 19 October 2014
//en.wikipedia.org/wiki/
![]() | This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes at the talk page before implementing them. |
This is the {{sec link/relative url}} sub-template.
Do not use this template directly, use {{sec link}} or {{sec link auto}} and their sister templates instead.
This template is called from the {{sec link}} family of templates.
Technical details
This sub-template returns a raw URL for the normal servers. It expects these parameters:
{{sec link/relative url | project = | pagename = | lang = | query = | anchor = }}
For more documentation see {{sec link auto}}.
ja:Template:Sec link/relative url
The above documentation is transcluded from Template:Sec link/relative url/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |