In an RTL (Hebrew) MediaWiki 1.34.0 website with Cite extension and ParserFunctions extension loaded in LocalSettings.php I use the following template to create references for English text.
Template:Cite
<includeonly>{{#if:{{{name|}}} | {{#tag:ref|{{{content|}}}|name={{{name}}}}} | {{#tag:ref|{{{content|}}}}} }}</includeonly>
Credit for @Johnatan3 for essentially developing the above template.
Calling Template:Cite
Input
First check{{Cite|content=First check}} Second check{{Cite|content=Second check|name=First_name}} Third check {{Cite|name=First_name}} <references />
Output
First check Second check Third check
- ^ First check
- ^ לקפוץ מעלה אל:2.0 2.1 Second check
My problem
I don't know if it's a best practice to explicitly call parameters (or at least, all parameters) when calling a template in MediaWiki;
For example, in Hebrew Wikipedia I have seldom created references for articles and when these references were named (i.e contain a name
HTML attribute) I just wrote:
{{הערה|מידע_ההערה|שם=xyz}}
I didn't put a parameter call such as תוכן=
(content=
) before מידע_ההערה
(REFERENCE_INFORMATION) but rather, only before שם
("name").
If I would explicitly call all parameters in a the template call we would have:
{{הערה|תוכן=מידע_ההערה|שם=xyz}}
But Hebrew Wikipedia allows to omit the first parameter call somehow (perhaps based on the fact that it's the first parameter call).
My question
Is it a best practice to explicitly call all parameters in template-calls in MediaWiki templates?
@Johnatan3 wouldn't you prefer to make it redundant to call content=
(i.e תוכן=
) at least in cases were it is the first parameter?