[Mediawiki-l] How to include a REDIRECT within a parser function?

K. Peachey p858snake at yahoo.com.au
Fri Mar 27 13:57:26 UTC 2009


On Fri, Mar 27, 2009 at 6:13 AM, Evelyn Yoder <eyoder at gmail.com> wrote:
> Hello -
>
> In this situation, I have two wiki sites that use the same database. The
> parser function triggers, based on the wiki SITENAME:
>
> I want to include a REDIRECT inside a parser function. Anyone have any
> suggestions?
>
> {{ #ifeq: {{SITENAME}}
> |My Support Wiki
> |#REDIRECT[[File a Support Case]]
> |<!--information related to other site(s)-->
> }}
>
> Thanks,
> Evelyn

If you template the redirect code, you could probably make a template
something like (but i'm making no assurances that it will work):

#Redirect [[{{#switch: {{SITENAME}} |#default = {{{custom|}}
|sitename1 = redirectONE | sitename2  = redirectTWO}}]]



More information about the MediaWiki-l mailing list