Template:Source/fixauthor/doc
This is a documentation subpage for Template:Source/fixauthor (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template is used on over 10 pages. Changes to this template may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
This template takes an author name that is presumed to be in ALL CAPS, but should be presented unchanged anyway, and returns it unchanged.
Usage
editThe one parameter is author, which is required.
Internals
editThis template exists to enable tracking of pages that override {{source/ucauthor}} via parameter author
. Technically, the tracking could be handled by a tracking category hardwired into {{source}} at the point where it uses parameter author
to select between {{source/ucauthor}} and {{source/fixauthor}}; however, the modern incarnation of {{source}} avoids mixing layout with logic: if logic is used, the resultant clauses should be trivial, delegating anything nontrivial to a subtemplate. Therefore, injection of a tracking category would be delegated to a subtemplate. The existence of the subtemplate, though, obviates the need for a tracking category.
See also
edit- {{source/uc?}}
- Pages that use fixauthor: here.
- Pages that use ucauthor: here.