User:Franamax/Preview refs
Overview
The MediaWiki (MW) Cite extension allows footnoting to attribute sources and add notes, where source information is enclosed in
For most articles, the
We propose addition of an optional check-box on the edit screen which will cause the Preview function to duplicate the functionality of temporarily adding the {{tl|reflist}} template.
Known limitations
Named references defined elsewhere in the article (with
Technical implementation
class="wikitable"
!Task!!Notes | |
Add config variable $wgPreviewRefs | Opt-in/out for individual sites |
Add UI element in EditPage.php: | |
On the same line as "This is a minor edit" and "Watch this page" | |
Add system messages for UI text and tooltip | Translate for other languages |
Add help page for "what's this?" | Translate for other languages |
Add logic to "Show preview" button | If preview-refs and Cite-installed, call Cite() |
Add $preview parameter to Cite.php and Cite_body.php | Or use a global variable? |
If $preview set, output alternate error messages | cite_preview_references_no_text instead of cite_error_references_no_text |
Add system message cite_preview_references_no_text | Translate for other languages |
Add help page to explain the information message | Translate for other languages |
Bask in glory as thanks pour in | Or blame someone else |