Jump to content

Module:Params/doc/examples/list of authors/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grufo (talk | contribs) at 12:14, 27 May 2024 (Helper subtemplates: New section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This example template shows how to use {{#invoke:params|call_for_each_group}} in order to create a list of authors in the same way as {{Cite book}} does.

Usage

For instance, writing

{{module:params/doc/examples/list of authors
	| last1 = Playfair
	| first1 = I. S. O.
	| author-link1 = Ian Stanley Ord Playfair
	| last2 = Stitt
	| first2 = G. M. S.
	| last3 = Molony
	| first3 = C. J. C.
	| last4 = Toomer
	| first4 = S. E.
}}

will generate

Playfair, I. S. O.; Stitt, G. M. S.; Molony, C. J. C. & Toomer, S. E.

Helper subtemplates