Vorlage:News Source/fixauthor/doc

Aus skandinavien-wiki.net
< Vorlage:News Source‎ | fixauthor
Version vom 6. September 2019, 03:07 Uhr von wikinewsen>Pi zero (don't expect to mark as high-use, but makes it easier to access the external tool)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Gnome-emblem-important.svg
Diese Vorlage wird auf over 10 Seiten verwendet
Um große Unterbrechungen und unnötige Serverauslastung zu vermeiden, solltest du Änderungen an anderer Stelle testen, indem du beispielsweise den Quellcode dieser Vorlage kopierst und in den Benutzerbereich oder in die Sandbox einfügst. Erwäge, deine Änderungen auf der Diskussionsseite vorzuschlagen, bevor du diese Vorlage bearbeitest.

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

The one parameter is author, which is required.

Internals

This 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