This template is used for linking to pages on our sister projects (Wikipedia, Wikisource, and so on).
For example, this Wiki code:
* {{projectlink|pedia|Φυ|Μβαρ|lang=el|sc=Grek}}
produces this output:
{{pedialite|…}}
is a shortcut to {{projectlink|pedia|…}}.
This template's parameters are as follows:
pedia
(for Wikipedia) or species
(for Wikispecies). There are also a few special values, such as dab
(for Wikipedia disambiguation pages) and cat
(for Wikipedia category pages). For a full list of possibilities, see Special:Prefixindex/Template:PL: (where the part after the PL:
in a template-name is a possible value here; struck-through template-names indicate redirects).lang=
en
.sc=
Should the sidebar link produce a capitalized article title, for consistency with the in-body link? —RuakhTALK 08:49, 21 November 2007 (UTC)
Is the fact that {{{1}}}
defaults to pedia
being used at all? Because I think that parameter should simply be made fully mandatory, rather than the current quasi-mandatory sometimes-work,-sometimes-not we have now. It's not like logically an editor should expect a template called "projectlink" to link to Wikipedia, anyway. —RuakhTALK 08:49, 21 November 2007 (UTC)
Currently, there's a lot of duplicate code among the various {{PL:*}} templates. Specifically, I believe that all the code is the same for determining the link target and the link text, except of course for the project prefix in the link target, and the application of {{ucfirst:}}. It seems that rather than simply passing through {{{2}}} and {{{3}}} as 1= and 2=, it would make sense for this template to handle all the details itself. The only annoying thing is that it will somehow need to indicate to the sub-template whether the 2= was an explicit {{{3}}} or a computed one, since the sub-templates that use {{ucfirst:}} won't want to force-capitalize an explicitly-provided value. I think the simplest way is for this template to compute both a 2= and a uc2=, and different sub-templates can choose which they want. It's a bit of pointless overhead, but I think the maintenance benefits will be worth it. (Another benefit is that we can then incorporate the handling of {{{sc}}} into this template, so sub-templates won't need to worry about it at all.)
So, should I go ahead with that change?
—RuakhTALK 02:25, 13 April 2008 (UTC)
Hello, i was wondering if the function on "Projectlinks" works on other skins. I'd like to use it, but my wiki doesn't use Vector or Monobook. Thank you, and i apologize if this is in the wrong place. Bud0011 07:29, 16 December 2010 (UTC).
Could this be fitted with an optional "i" parameter so that italics could be specified for the taxonomic names that are supposed to appear in italics? The kinds of names are all virus names and all taxonomic names at the rank of genus and below. Special (manual for now) provision needs to be made for names that include "subsp.", "var.", "morph"/"morpha", "subg.", and similar.
The same need applies to {{specieslite}}
, {{pedia}}
/{{pedialite}}
, {{commonslite}}
, {{wikispecies}}
, {{wikipedia}}
, {{commons}}
, and {{commonscat}}
.
I could try to do this myself, but my template foo is weak, the template architecture is more complicated than I understand, and the templates are widely transcluded. I am doing this for various "reference" templates used for taxon names, which are both simpler in architecture and less widely transcluded. DCDuring TALK 17:56, 27 January 2015 (UTC)
{{wikipedia}}
This has annoyed me for a while. {{wikipedia}}
formats the sidebar links with the language code in superscript, like this Wikipedia: he, rather than he.Wikipedia. I think we should change this template to match because the first format is better looking and more clear. I propose replacing lines 27-35 at Template:projectlink/Wikipedia (which is protected) with:
Add caption to it
-->Wikipedia {{#if:{{{lang|}}}|<sup>{{#invoke:wikimedia languages/templates|getByCodeWithFallback|{{{lang}}}|getCode}}</sup>}}<!--
Add page title to it if differs from current page title
-->{{#ifeq:{{lc:{{#if:{{{dab|}}}|{{{dab}}}|{{#if:{{{1|}}}|{{{1}}}|{{#if:{{{dab|}}}|{{{dab}}}|{{ucfirst:{{PAGENAME}}}}}}}}}}}}|{{lc:{{PAGENAME}}}}||<!--
--><nowiki>:</nowiki> {{#if:{{{dab|}}}|{{{dab}}}|{{#if:{{{1|}}}|{{{1}}}|{{#if:{{{dab|}}}|{{{dab}}}|{{ucfirst:{{PAGENAME}}}}}}}}}}}}]]<!--
--></span><!--
— Enosh (talk) 10:16, 11 May 2016 (UTC)
The end point in the result on Wikipedia.Wikipedia of the template makes it unusable in the middle of a sentence. --DominiqueM (talk) 12:34, 26 January 2019 (UTC)
The default for 1911 needs to be uppercase, because sequin links to the lowercase. Dunderdool (talk) 18:35, 9 July 2022 (UTC)