Template:Linked pages with templates
This template is a template gadget. It requires the LinkedPagesWithTemplates gadget to work, which is loaded automatically when this template is used. |
Use this template to list pages linked from a given page with one or more given templates. This template was originally meant to be useful in wikiprojects to produce, say, a list of pages lacking references out of the wikiproject's watchlist.
See the installation instructions to get it working in your wiki.
Usage
[edit]Basic
[edit]Pages linked from Global templates that have the Template:Update.
Markup | Renders as |
---|---|
|
Loading...
|
Advanced
[edit]Pages linked from Global templates that have the Template:Update, including an link to edit them.
Markup | Renders as |
---|---|
|
Loading...
|
Installation
[edit]To install this template in your wiki:
- Create a template with the following markup. You can choose the template name, parameter names and defaults to suit your wiki.
<includeonly><div class="LinkedPagesWithTemplates" data-page="{{{page|}}}" data-templates="{{{templates|}}}" data-limit="{{{limit|10}}}" data-editlink="{{{editlink|}}}" data-editintro="{{{editintro|}}}" >Loading...</div>[[Category:Gadget:LinkedPagesWithTemplates]]</includeonly>
- Create MediaWiki:Gadget-LinkedPagesWithTemplates.js with the following code:
/** * LinkedPagesWithTemplates allows to list pages linked from a given page and with one or more given templates * Documentation: https://www.mediawiki.org/wiki/LinkedPagesWithTemplates * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-LinkedPagesWithTemplates.js */ mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-LinkedPagesWithTemplates' );
- Add the following gadget to MediaWiki:Gadgets-definition:
* LinkedPagesWithTemplates[ResourceLoader|hidden|default|categories=Gadget:LinkedPagesWithTemplates]|LinkedPagesWithTemplates.js
Done! Add your template to any page to verify that the installation was successful.
Template data
[edit]Use this template to list pages linked from a given page and with one or more given templates
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | page | Page from where to get the list of linked pages
| Page name | required |
Templates | templates | Comma-separated list of templates to search
| String | required |
Limit | limit | Max number of pages to list
| Number | optional |
Edit link | editlink | Whether to show a link to edit the listed pages
| Boolean | optional |
Edit intro | editintro | Page with an edit intro to show when the editor loads | Page name | optional |
See also
[edit]- es:Plantilla:Páginas enlazadas con plantillas - Spanish localization of this template
- phab:T253642 - When this task is completed, this template could be replaced with Template:Search
- User:Sophivorus - Main author of this template