Template:Plugin/doc: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(from old docs)
 
(categories should be in docs)
Line 59: Line 59:
|}
|}
<includeonly>
<includeonly>
<!-- Categories go here -->
[[Category:Formatting and function templates]]


</includeonly>
</includeonly>

Revision as of 14:47, 20 October 2013

This is a documentation subpage for Template:Plugin .
It contains usage information, categories and other content that is not part of the original template page.


Usage

In the Namespace:Plugin and on pages with language code in the name

If you need to link from plugin page to another plugin page or from pages with language code in the name like Langpacks/en‎.

Single link

{{Plugin | Plugin name | Link name (optional) }}
You type You get
{{Plugin|AIM}} AIM
{{Plugin|AIM|AIM Protocol}} AIM

Using Template:While

{{While | tpl=Plugin | Name of the first plugin | Name of the second plugin | etc. }}
You type You get
{{While|tpl=Plugin|AIM|Facebook|Jabber}} AIM, Facebook, Jabber

Other pages

If you need to link from other pages, you have to specify the language.

Single link

{{Plugin | Language code | Plugin name | Link name (optional) }}
You type You get
{{Plugin|en|AIM}} AIM
{{Plugin|en|AIM|AIM Protocol}} AIM

Using Template:While

{{While | tpl=Plugin | p1=Language code | Name of the first plugin | Name of the second plugin | etc. }}
You type You get
{{While|tpl=Plugin|p1=en|AIM|Facebook|Jabber}} AIM, Facebook, Jabber