Module:Params/doc/examples/list of authors: Difference between revisions
From Kenshi Wiki
More actions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{safesubst:<noinclude />#invoke:params|all_sorted|with_name_matching|author%s*%d*$|or|last%s*%d*$|or|first%s*%d*$|or|author%-link%s*%d*$|setting|i/l|; | & |call_for_each_group|Module:Params/doc/examples/list of authors/author}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}}</noinclude> | <includeonly>{{safesubst:<noinclude />#invoke:params|all_sorted|with_name_matching|author%s*%d*$|or|last%s*%d*$|or|first%s*%d*$|or|author%-link%s*%d*$|setting|i/l|; | & |call_for_each_group|Module:Params/doc/examples/list of authors/author}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}} | ||
[[Category:Module data pages]] | |||
</noinclude> | |||
Latest revision as of 23:57, 14 March 2025
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
- {{./author}}