MediaWiki:Proofreadpage header template
Appearance
| This template is used on approximately 15,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
Usage
- This template generates headers for the <pages/> command, when it is called with "header".
- It takes its parameters from the index page.
- Parameters from the index page can be overridden in the "pages" command.
Example
<pages index="foo" header author="bar" />
Tracking categories
- Category:Pages using automatic headers (15,603)
- Category:Pages using automatic headers with value parameter (35)
Testing changes
- Make changes in MediaWiki:Proofreadpage header template/sandbox. or Module:Proofreadpage header template/sandbox.
- Add the following code to your common.js page:
var $tplTemplate = $('#wpTemplateSandboxTemplate'); var $tplPage = $('#wpTemplateSandboxPage'); if ($tplTemplate.prop('type') === 'hidden') { $('#templatesandbox-editform').prepend('<legend>Preview page with this template</legend>'); $tplTemplate .attr({ type: 'text', size: '60', spellcheck: 'true' }) .wrap('<label>Template name: </label>') .after('<br>'); $tplPage .attr({ type: 'text', size: '60', 'data-mw-searchsuggest': '{"wrapAsLink":false}', class: 'mw-searchInput' }) .wrap('<label>Page title: </label>') .after(' <input name="wpTemplateSandboxPreview" value="Show preview" type="submit">'); }
- Add something like the following code to Sandbox:
<pages index="Sandbox.djvu" include="10" tosection="Chapter 1" header=1 section-author="Charles Dickens" section-illustrator="Leo Tolstoy" section-translator="Death" section-year=1984 />
- Without publishing, copy changes to MediaWiki:Proofreadpage header template or make it use the sandbox module.
- Input Sandbox in the new "Page title" field of the editing box, and click "Show preview".
See also