Skabelon:Page-multi
| Denne skabelon bruger Lua: |
This is a very flexible page link template, which allows you to specify which links are shown beside the pagename. It can be used as a meta-template to support other page link templates, or it can be used alone.
Brug
- Standalone usage
{{page-multi|code 1|code 2|code 3|...|page=pagename}}
Parameters
- 1, 2, 3, ... n: these parameters specify what links to display in the template. See the code table below for valid input codes.
- page: the pagename. An error is returned if this is omitted.
- separator: the separator to use in between links. Valid values are
dot( · ),comma(, ),pipe( | ), andtpt-languages(⧼tpt-languages-separator⧽). If not specified, thendotis the default. - small: if this parameter exists, fonts will be displayed at 90% of the normal size.
- sup: if this parameter exists, links will be displayed in superscript.
- doc: this parameter is only available on template pages, using the /template sub-template. If set to
yes, it will automatically generate documentation for that template. - demo: if this parameter is set to
yes, the template will not output any categories.
Codes
Here is a list of currently supported link codes:
| Code | Preview |
|---|---|
| t | diskussion |
| wlh | links |
| rc | related |
| edit | redigér |
| h | historik |
| w | watch |
| tl | logs |
| efl | abuse filter log |
| vlm-sgs | stat |
Examples
| Code | Output |
|---|---|
{{page-multi|page=Example|t|wlh}} |
Example (diskussion · links) |
{{page-multi|page=Example|wlh|vlm-sgs}} |
Example (links · stat) |
Errors
In certain circumstances, the template will generate errors. This is a list of all the error messages that the template might generate, and how users can resolve them.
Not a valid link code
- Page-multi error: "xyz" is not a valid link code.
This error is generated if an invalid link code is specified. For a list of valid link codes, see the code list above.
No link type specified
- Page-multi error: no link type specified.
This error is only generated when using Modul:PageLinks directly to create a single link. The link code must be in the first positional parameter, like this: {{#invoke:PageLinks|single|<!-- link code -->|<!-- other parameters -->}}.
Function did not return a string value
- Page-multi error: the function for code "xyz" did not return a string value.
This is an error in the software generating the links, and requires attention from the developers. Please start a new thread at Skabelondiskussion:Page-multi.
Tracking categories
The template uses the following tracking categories:
- Fejl-kategori
- Category:PageLinks transklusioner med fejl - this is used to track all the errors listed above
Adding new links
To add a new link, you need to edit the Lua module that this template is based on, Modul:PageLinks. Instructions are in the source code, if you feel capable programming in Lua. If you're not familiar with Lua, feel free to make a request on Skabelondiskussion:Page-multi, and someone might add the link for you.
Se også
- {{User-multi}}
- Module:UserLinks (Diskussion · · hist · links · dok · undersider · tests (results))
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









