ទំព័រគំរូ:Sec linkThis is the {{sec link}} template. It creates a secure link. The link can be local or to any other Wikimedia project. It can for instance link to Wiktionary or the Portuguese Wikipedia. Secure links go through the Wikimedia secure server, so they give you an encrypted connection between your browser and the Wikimedia servers. Note! For most usage cases you should instead use {{sec link auto}}. That one creates a secure link only if the user is already using the secure server, otherwise it makes a normal link. For other secure link templates see the see also section below. Usage
This templates takes one or more parameters:
Here's some examples: {{sec link| commons }} {{sec link| wikt }} {{sec link| de }} {{sec link| pt }} {{sec link| commons | São Paulo }} {{sec link| wikt | São Paulo }} {{sec link| de | São Paulo }} {{sec link| pt | São Paulo }}
{{sec link| pt | São Paulo | São Paulo, in the Portuguese Wikipedia. }} São Paulo, in the Portuguese Wikipedia.
{{sec link| wikt | São Paulo | lang=pt }} {{sec link| lang=pt | wikt | São Paulo | São Paulo, in the Portuguese Wiktionary. }} São Paulo, in the Portuguese Wiktionary. In the above example we fed "lang=pt" before the other parameters. That is okay since named parameters don't interfere with the numbering of unnamed parameters. This template can of course also create a secure link to the same project as it currently is used on. For instance, even if already on the English Wikipedia this works: {{sec link| en | | Secure link to the main page of the English Wikipedia }} Secure link to the main page of the English Wikipedia Anchors and queriesThis template can also handle anchors and query parameters. Like this: {{sec link| en | Template:Sec link | anchor = See also }} {{sec link| en | Special:Search | query = search=secure+server&fulltext=Search&ns4=1&ns5=1 }} {{sec link| de | Wikipedia:Spielwiese | query = action=edit | Edit the German Wikipedia's sandbox }} en:Special:Search?search=secure+server&fulltext=Search&ns4=1&ns5=1 Edit the German Wikipedia's sandbox When feeding query parameters you must manually change any spaces " The padlockThe small padlock is automatically added to all https links by the global CSS in all Wikimedia projects. This template does not suppress that, since it makes it clearer it is a secure link. But if you want to suppress the padlock, then there are two ways. Like this: {{sec link| padlock=no | pt | São Paulo }} <span class="plainlinks"> {{sec link| pt | São Paulo }} </span> Using " Many templates such as the mboxes, navboxes and infoboxes use the "plainlinks" class since it also prevents the external link icon {{sec link| padlock=yes | pt | São Paulo }} Technical detailsWhen you are connected to the secure server, then most local links in a project is automatically secure links. But hardcoded links and links to other projects are unfortunately not auto-changed to secure links. With this template you can work around that. This template doesn't handle the "bugzilla:" prefix, since it already points to a secure server. Some languages on Wikisource don't have their own language project, instead they are pages under the main "oldwikisource:" address. For instance the Afrikaans main page on Wikisourse is not " This template internally uses the sub-templates {{sec link/secure url}} and {{sec link/text}}. It also has the sub-templates {{sec link/normal url}} and {{sec link/normal link}}, but they are used by its sister templates such as {{sec link auto}} and {{sec link image}}. For more technical details see the talk page. See also
|
Portal di Ensiklopedia Dunia