Difference between revisions of "Template:Sec link/relative url"

From Recidemia English
Jump to: navigation, search
(relative url)
 
m (Protected Template:Sec link/relative url: match parent template ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
Line 5: Line 5:
 
| wikibooks | b = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikibooks
 
| wikibooks | b = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikibooks
 
| wikiquote | q = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiquote
 
| wikiquote | q = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiquote
| wikiversity | v = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiversity
 
 
| wikisource | s = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikisource
 
| wikisource | s = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikisource
 
| oldwikisource = wikisource
 
| oldwikisource = wikisource
 
| wikispecies | species = species.wikimedia
 
| wikispecies | species = species.wikimedia
 +
| wikiversity | v = {{#if:{{{lang|}}}|{{{lang}}}|{{CONTENTLANG}}}}.wikiversity
 
| wikimedia | foundation | wmf = wikimediafoundation
 
| wikimedia | foundation | wmf = wikimediafoundation
 
| commons = commons.wikimedia
 
| commons = commons.wikimedia
Line 19: Line 19:
 
| #default =  
 
| #default =  
  
<!-- Other Wikibooks language fed, or no project fed.
+
<!-- Other Wikipedia language fed, or no project fed.
     (If copying this template to a non-Wikibooks project,
+
     (If copying this template to a non-Wikipedia project,
 
     then update the below code line.) -->
 
     then update the below code line.) -->
| #default = {{#if:{{{project|{{{lang|}}}}}}|{{{project|{{{lang}}}}}}|{{CONTENTLANG}}}}.wikibooks
+
| #default = {{#if:{{{project|}}}|{{{project}}}|{{CONTENTLANG}}}}.wikipedia
  
 
}}.org/wiki/{{#if: {{{anchor|}}}
 
}}.org/wiki/{{#if: {{{anchor|}}}
| {{PAGENAMEE:Template:{{{pagename|}}} }}#{{anchorencode:{{{anchor}}} }}
+
| {{Case preserving encode|{{{pagename|}}} }}#{{anchorencode:{{{anchor}}} }}
| {{PAGENAMEE:Template:{{{pagename|}}} }}{{#if: {{{query|}}}
+
| {{Case preserving encode|{{{pagename|}}} }}{{#if: {{{query|}}}
 
   | ?{{{query|}}}
 
   | ?{{{query|}}}
 
   }}
 
   }}
 
}}<noinclude>
 
}}<noinclude>
 +
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 10:28, 22 December 2011

//en.wikipedia.org/wiki/

[edit] [history] [purge] Documentation icon Template documentation

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