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 Technical Communications www.longjumpsupport.com
Evelyn Yoder 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 Technical Communications www.longjumpsupport.com
I don't think you can do that. Perhaps you can make a parser funcion redirect-if-sitename
oh - ok. thanks!
On Thu, Mar 26, 2009 at 2:25 PM, Platonides Platonides@gmail.com wrote:
Evelyn Yoder 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 Technical Communications www.longjumpsupport.com
I don't think you can do that. Perhaps you can make a parser funcion redirect-if-sitename
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Fri, Mar 27, 2009 at 6:13 AM, Evelyn Yoder eyoder@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}}]]
mediawiki-l@lists.wikimedia.org