Topic on Extension talk:Scribunto

How do I pass current page contents to a lua template?

3
Gryllida (talkcontribs)

{{{{FULLPAGENAME}}}} as the first argument is interpreted as a literal string.

197.218.83.27 (talkcontribs)
Anomie (talkcontribs)

{{{{FULLPAGENAME}}}} is interpreted as { {{{FULLPAGENAME}}} }, not {{ {{FULLPAGENAME}} }}. Since there's probably no variable named "FULLPAGENAME" being passed it, it seems like nothing happens. You could add those spaces if you really want to do it.

But that seems like a rather odd thing to do, unless you're doing it inside a <noinclude> or the like.

Reply to "How do I pass current page contents to a lua template?"