On Tue, Sep 26, 2017 at 4:01 AM, mathieu stumpf guntz <
psychoslave(a)culture-libre.org> wrote:
Here is what I mean with a simple use case
```
== Section 1 ==
Some text.
Hello, we are in {{section}}, leading paragraph is
{{paragraph|1|{{section}}}}.
== Section 2 ==
Some other text.
Hello, we are in {{section}}, leading paragraph is
{{paragraph|1|{{section}}}}.
```
And each call should generate respectively something like
Hello, we are in Section 1, leading paragraph is "Some text.".
Hello, we are in Section 2, leading paragraph is "Some other text.".
So, basically the idea is to let the module infers parameters from the
calling context, rather than
always make them explicit.
No, there is no simple way to do this.[2] Doing so would probably be a
violation of T67258.[1]
[1]:
https://phabricator.wikimedia.org/T67258
[2]: There's a completely insane way to do something like it in some
limited cases, but per w:en:WP:BEANS
<https://en.wikipedia.org/wiki/Wikipedia:Don%27t_stuff_beans_up_your_nose>
I think I'll not go into details.
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation