User:Bureaucrat 37/sandbox/List of Clubs/Lua experiment: Difference between revisions

From Foodclubipedia
Jump to navigation Jump to search
(Undo revision 360 by Bureaucrat 37 (talk) ugh, that does too... not sure how... things... do... things?)
Tag: Undo
(crap)
Line 1: Line 1:
Experimental use of a custom Lua module to handle formatting of a query's results, rather than letting Extension:External Data or Extension:Cargo do it. That way, I should be able to format things how I want, which those extensions don't seem conducive to.
Experimental use of a custom Lua module to handle formatting of a query's results, rather than letting Extension:External Data or Extension:Cargo do it. That way, I should be able to format things how I want, which those extensions don't seem conducive to.
==Initial results==
Inital results are officially: '''CRAP'''
The invoke seems to happen after at least some of the other processing, so for example if the module outputs something like <nowiki>{{blah}}</nowiki>, then it will show up on the wiki page as <nowiki>{{blah}}</nowiki> (as opposed to showing up on the wiki page as the results of calling the blah template).
I thought maybe <nowiki>{{subst}}</nowiki> or <nowiki>safesubst</nowiki> might help, as I know they're somehow used to do... something... that seems like it might be related to this, but:
# I don't currently understand them, and
# They don't help anyway.
I dunno, I have to read documentation, I guess.
==Invocation==


{{#invoke:User:Bureaucrat 37/sandbox/List of Clubs/Lua experiment|blah}}
{{#invoke:User:Bureaucrat 37/sandbox/List of Clubs/Lua experiment|blah}}


==Post-invocation==
Here's stuff after the invoke.
Here's stuff after the invoke.

Revision as of 22:57, September 25, 2022

Experimental use of a custom Lua module to handle formatting of a query's results, rather than letting Extension:External Data or Extension:Cargo do it. That way, I should be able to format things how I want, which those extensions don't seem conducive to.

Initial results

Inital results are officially: CRAP

The invoke seems to happen after at least some of the other processing, so for example if the module outputs something like {{blah}}, then it will show up on the wiki page as {{blah}} (as opposed to showing up on the wiki page as the results of calling the blah template).

I thought maybe {{subst}} or safesubst might help, as I know they're somehow used to do... something... that seems like it might be related to this, but:

  1. I don't currently understand them, and
  2. They don't help anyway.

I dunno, I have to read documentation, I guess.

Invocation

The greatest

Attempt at template usage: {{large|The greatest}}

This is certainly the greatest Lua module I have ever written.

And, I might add, almost certainly the greatest Lua module ever written.

Post-invocation

Here's stuff after the invoke.