To create a sort of breadcrumbs I use MediaWiki:Tagline (need to change CSS), Extension:ParserFunctions,
and the following wiki text:
MyWiki {{#if: {{NAMESPACE}} |
{{NAMESPACE}}
}}
{{#titleparts: {{PAGENAME}} | 1 | 1 }}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2 }} |
{{#titleparts: {{PAGENAME}} | 1 | 2 }}
}} {{#if: {{#titleparts: {{PAGENAME}} | 1 | 3 }} |
{{#titleparts: {{PAGENAME}} | 1 | 3 }}
}}
This results, for instance in a tagline like this:
MyWiki > Help > Editing > Lists
on a page with the title Help:Editing/Lists
Ideally, I would like to add links, for instance
[[Mainpage|MyWiki]], etc. but this does not work. The code in MediaWiki:Tagline is not parsed into a linktext, even if I try somethig like {{fullurl:Mainpage}}, etc.
Any suggestion?
Thx in advance
Bernhard
You might have already tried this, but to link to the Main Page, make sure that there is a space, and that the capitalization is correct: [[Main Page | MyWiki]]
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Scheid, Bernhard Sent: Tuesday, April 05, 2011 1:50 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] breadcrumbs: tagline with internal links
To create a sort of breadcrumbs I use MediaWiki:Tagline (need to change CSS), Extension:ParserFunctions,
and the following wiki text:
MyWiki {{#if: {{NAMESPACE}} |
{{NAMESPACE}}
}}
{{#titleparts: {{PAGENAME}} | 1 | 1 }}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2 }} |
{{#titleparts: {{PAGENAME}} | 1 | 2 }}
}} {{#if: {{#titleparts: {{PAGENAME}} | 1 | 3 }} |
{{#titleparts: {{PAGENAME}} | 1 | 3 }}
}}
This results, for instance in a tagline like this:
MyWiki > Help > Editing > Lists
on a page with the title Help:Editing/Lists
Ideally, I would like to add links, for instance
[[Mainpage|MyWiki]], etc. but this does not work. The code in MediaWiki:Tagline is not parsed into a linktext, even if I try somethig like {{fullurl:Mainpage}}, etc.
Any suggestion?
Thx in advance
Bernhard
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
That's not the problem. (Actually I had [[Hauptseite|Religion-in-Japan]], which should work in a German wiki...)
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von mrthetooth Gesendet: Dienstag, 5. April 2011 23:15 An: 'MediaWiki announcements and site admin list' Betreff: Re: [Mediawiki-l] breadcrumbs: tagline with internal links
You might have already tried this, but to link to the Main Page, make sure that there is a space, and that the capitalization is correct: [[Main Page | MyWiki]]
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Scheid, Bernhard Sent: Tuesday, April 05, 2011 1:50 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] breadcrumbs: tagline with internal links
To create a sort of breadcrumbs I use MediaWiki:Tagline (need to change CSS), Extension:ParserFunctions,
and the following wiki text:
MyWiki {{#if: {{NAMESPACE}} |
{{NAMESPACE}}
}}
{{#titleparts: {{PAGENAME}} | 1 | 1 }}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2 }} |
{{#titleparts: {{PAGENAME}} | 1 | 2 }}
}} {{#if: {{#titleparts: {{PAGENAME}} | 1 | 3 }} |
{{#titleparts: {{PAGENAME}} | 1 | 3 }}
}}
This results, for instance in a tagline like this:
MyWiki > Help > Editing > Lists
on a page with the title Help:Editing/Lists
Ideally, I would like to add links, for instance
[[Mainpage|MyWiki]], etc. but this does not work. The code in MediaWiki:Tagline is not parsed into a linktext, even if I try somethig like {{fullurl:Mainpage}}, etc.
Any suggestion?
Thx in advance
Bernhard
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Is there any method (Magic Word, etc.) to determine the status/usergroup of the user viewing the page? Something like "{{#if: sysop |... }}" ?
I would need this in a template that produces different texts for different users.
I tried Extension:ConditionalShow but it did not work (probably not compatible with MW 1.16?)
Thx
Bernhard
Scheid, Bernhard wrote:
Is there any method (Magic Word, etc.) to determine the status/usergroup of the user viewing the page? Something like "{{#if: sysop |... }}" ?
I would need this in a template that produces different texts for different users.
I tried Extension:ConditionalShow but it did not work (probably not compatible with MW 1.16?)
Thx
Bernhard
Not out of the box. You would need an extension or javascript to do such switch.
Platonides wrote:
Scheid, Bernhard wrote:
Is there any method (Magic Word, etc.) to determine the status/ usergroup of the user viewing the page? Something like "{{#if: sysop |... }}" ?
I would need this in a template that produces different texts for different users.
I tried Extension:ConditionalShow but it did not work (probably not compatible with MW 1.16?)
Thx
Bernhard
Not out of the box. You would need an extension or javascript to do such switch.
As of 1.18 usergroup-specific site wide resources are / can be loaded.
eg. MediaWiki:Sysop.css / MediaWiki:Sysop.js
What you could have:
== Template:MsgForUser == <div class="msgforuser msgforuser-{{lc:{{{group|user}}}}}"> {{{msg|Hello this message is for a specific user-group only}}} </div>
== MediaWiki:Common.css == .msgforuser { display: none; }
== MediaWiki:User.css == .msgforuser.msgforuser-user { display: block; }
== MediaWiki:Sysop.css == .msgforuser.msgforuser-sysop { display: block; }
== My awesome page == Welcome {{MsgForUser | group=sysop | msg=master }}, how are you today ?
Which will display "Welcome, how are you today?" or "Welcome master, how are you today?" depending on the membership of the user.
Right out of the box support for content for registered-users only, or sysop, or any other usergroup you may have.
Only takes a few css settings, no JS dependency either.
The only catch is that it's not in 1.16 or 1.17
-- Krinkle
Thx! This is exactly what I need. Is it possible/feasible to update to 1.18?
B.
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Krinkle Gesendet: Mittwoch, 6. April 2011 16:41 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] different texts for different users
Platonides wrote:
Scheid, Bernhard wrote:
Is there any method (Magic Word, etc.) to determine the status/ usergroup of the user viewing the page? Something like "{{#if: sysop |... }}" ?
I would need this in a template that produces different texts for different users.
I tried Extension:ConditionalShow but it did not work (probably not compatible with MW 1.16?)
Thx
Bernhard
Not out of the box. You would need an extension or javascript to do such switch.
As of 1.18 usergroup-specific site wide resources are / can be loaded.
eg. MediaWiki:Sysop.css / MediaWiki:Sysop.js
What you could have:
== Template:MsgForUser == <div class="msgforuser msgforuser-{{lc:{{{group|user}}}}}"> {{{msg|Hello this message is for a specific user-group only}}} </div>
== MediaWiki:Common.css == .msgforuser { display: none; }
== MediaWiki:User.css == .msgforuser.msgforuser-user { display: block; }
== MediaWiki:Sysop.css == .msgforuser.msgforuser-sysop { display: block; }
== My awesome page == Welcome {{MsgForUser | group=sysop | msg=master }}, how are you today ?
Which will display "Welcome, how are you today?" or "Welcome master, how are you today?" depending on the membership of the user.
Right out of the box support for content for registered-users only, or sysop, or any other usergroup you may have.
Only takes a few css settings, no JS dependency either.
The only catch is that it's not in 1.16 or 1.17
-- Krinkle
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org