[Mediawiki-l] User Variable for Use in Templates

Rob Church robchur at gmail.com
Sat Feb 4 18:59:48 UTC 2006


We don't have a {{USERNAME}} variable. It's been requested about 3
times, and each request has been rejected for a good reason; it would
defeat page caching completely. This would not be helpful.

If you want one, you'll need to hack the parser to add it.


Rob Church

On 04/02/06, Stéphane Thibault <thibault.stephane at gmail.com> wrote:
> Hey guys, here's what I'm trying to do.
>
> I'm setting up a MediaWiki website for a scientific association and
> instead of relying only on collaborative writing, it's also important
> that members be allowed to write "signed" articles on a subject that
> may already exist.
>
> What I'd like to do is include a string in the
> [[MediaWiki:Nogomatch]] that would allow the user to create the
> desired article after a failed search, redirecting him to this page:
>
> User:Username/Article
>
> The original article page would then act as a disambiguation page
> listing all articles written on a particular topic.
>
> It should be simple enough but I just can't find the proper variable
> to use for the username in my template. I looked at theses pages:
>
> http://meta.wikimedia.org/wiki/Help:Variable
> http://meta.wikimedia.org/wiki/Help:Magic_words
>
> but couldn't find what I'm looking for. Any hints? Is there a built
> in template maybe for "wgUser"? Or maybe even a simpler way to
> achieve this goal?
>
> I originally posted my question over here if anyone's interested on
> this topic:
> http://www.mwusers.com/forums/showthread.php?t=999
>
> Thanks,
> Stéphane
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list