Difference between revisions of "User:JJR"

From Ephemeral Film Wiki
Jump to navigation Jump to search
Line 8: Line 8:


https://www.mediawiki.org/wiki/Manual:MoveBatch.php
https://www.mediawiki.org/wiki/Manual:MoveBatch.php
== tpl ==
===Making emptiness and undefinedness equivalent===
It is often convenient if assigning the empty string to a parameter has the same effect as not assigning any value to it, as the difference is somewhat abstract, and as mentioned, in some cases there is not even the choice. Also, for example "p=" may be put for convenience, to be filled in later, and/or meant to make explicit that the template has a parameter p, but at this time we do not give it a value.
Making emptiness and undefinedness equivalent can for example be achieved by exclusively using {{{p|}}}, not {{{p}}} and not {{{p|q}}} for a non-empty q, or for example using {{#if:{{{p|}}}|..{{{p}}}..|..}} (i.e., using {{{p}}} only in branches of branching functions where it is defined and non-empty).

Revision as of 22:01, 27 November 2021

A user is me!

batch move

https://www.mediawiki.org/wiki/Manual:MoveBatch.php

tpl

Making emptiness and undefinedness equivalent

It is often convenient if assigning the empty string to a parameter has the same effect as not assigning any value to it, as the difference is somewhat abstract, and as mentioned, in some cases there is not even the choice. Also, for example "p=" may be put for convenience, to be filled in later, and/or meant to make explicit that the template has a parameter p, but at this time we do not give it a value.

Making emptiness and undefinedness equivalent can for example be achieved by exclusively using , not {{{p}}} and not q for a non-empty q, or for example using .. (i.e., using {{{p}}} only in branches of branching functions where it is defined and non-empty).