Template:Plinks/doc
Kaonekelo
This is a documentation subpage for Template:Plinks. It may contain usage information, categories and other content that is not part of the original template page. |
This template creates floating internal link boxes linking to:
- A Wikipedia WikiProject, task force, or work group.
- A Wikipedia Portal.
- Up to three Wikipedia Noticeboards.
- The WikiProject Directory, the Portal Directory, and the Regional Notice Board Directory
Use
[kulemba source]The complete syntax for this template is:
{{Plinks|var1|var2|var3|var4|var5|align=|group=|parent=}}
where:
var1
is the optional base name of a Wikipedia WikiProject, task force, or work group.var2
is the optional base name of a Wikipedia portal.var2=1
the base name of the Wikipedia portal is the same as var1.
var3
is the optional base name of a Wikipedia notice board.var3=1
the base name of the Wikipedia notice board is the same as var1.var3=2
the base name of the Wikipedia notice board is the same as var2.
var4
is the optional base name of another Wikipedia notice board.var4=1
the base name of the Wikipedia notice board is the same as var1.var4=2
the base name of the Wikipedia notice board is the same as var2.
var5
is the optional base name of another Wikipedia notice board.var5=1
the base name of the Wikipedia notice board is the same as var1.var5=2
the base name of the Wikipedia notice board is the same as var2.
align=
the optional floating box alignment parameter.align=left
align=right
(default)
group=
the project group type of var1:group=WikiProject
(default)group=task force
group=work group
parent=
the base name of the parent WikiProject, required if group=task force or work group.
Restriction
[kulemba source]This template should not be placed in the main article namespace {{NS:0}}
.
Examples
[kulemba source]{{plinks}}
creates:
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{plinks|Mexico|1|1}}
creates:
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{plinks|Egypt|1|Africa|Arabic}}
creates:
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{plinks|Democratic Republic of the Congo|1|Africa}}
creates:
See also
[kulemba source]- This template invokes Template:Abox, and Template:Lists.
- This template may be used with Template:WPbox and Template:WGbox to create more elaborate link stacks.