I am using the Vector skin. I have an extension very similar to whatlinkshere. It needs to take the current page as the parameter just like whatlinkshere.
I would like to add it to the toolbox, but actually I do not care where it is in the navigation but the toolbox seems the most logical.
We have done this before with other older skins that had something like this section: <div id="gumax-special-tools"> I noticed that getToolBox() is within BaseTemplate. Is there a way to add this method to the tool box?
Thanks,
Mary Beebe Battelle - Charlottesville, VA Office: 434- 951-2149
**Confidentiality Notice** This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and/or otherwise exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, any disclosure, dissemination, distribution, copying or other use of this communication or its substance is prohibited. If you have received this communication in error, please return to the sender and delete from your computer system.
BaseTemplateToolbox is the cleanest hook to use. There's also SkinTemplateToolboxEnd which is hideous but existed before BaseTemplate. So ideally use BaseTemplateToolbox, unless you happen to have an ancient pre-BaseTemplate skin that's still hardcoding the toolbox.
https://www.mediawiki.org/wiki/Manual:Hooks/BaseTemplateToolbox https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateToolboxEnd
On Thu, 11 Jul 2013 14:39:42 -0700, Beebe, Mary J BeebeM@battelle.org wrote:
I am using the Vector skin. I have an extension very similar to whatlinkshere. It needs to take the current page as the parameter just like whatlinkshere.
I would like to add it to the toolbox, but actually I do not care where it is in the navigation but the toolbox seems the most logical.
We have done this before with other older skins that had something like this section:
<div id="gumax-special-tools"> I noticed that getToolBox() is within BaseTemplate. Is there a way to add this method to the tool box?
Thanks,
Mary Beebe Battelle - Charlottesville, VA Office: 434- 951-2149
**Confidentiality Notice** This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and/or otherwise exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, any disclosure, dissemination, distribution, copying or other use of this communication or its substance is prohibited. If you have received this communication in error, please return to the sender and delete from your computer system.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
That makes sense. I was trying to do it the hard way.
Thanks Daniel,
Mary
-----Original Message----- From: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of Daniel Friesen Sent: Thursday, July 11, 2013 5:53 PM To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Adding to the skin toolbox
BaseTemplateToolbox is the cleanest hook to use. There's also SkinTemplateToolboxEnd which is hideous but existed before BaseTemplate. So ideally use BaseTemplateToolbox, unless you happen to have an ancient pre-BaseTemplate skin that's still hardcoding the toolbox.
https://www.mediawiki.org/wiki/Manual:Hooks/BaseTemplateToolbox https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateToolboxEnd
On Thu, 11 Jul 2013 14:39:42 -0700, Beebe, Mary J BeebeM@battelle.org wrote:
I am using the Vector skin. I have an extension very similar to whatlinkshere. It needs to take the current page as the parameter just like whatlinkshere.
I would like to add it to the toolbox, but actually I do not care where it is in the navigation but the toolbox seems the most logical.
We have done this before with other older skins that had something like this section:
<div id="gumax-special-tools"> I noticed that getToolBox() is within BaseTemplate. Is there a way to add this method to the tool box?
Thanks,
Mary Beebe Battelle - Charlottesville, VA Office: 434- 951-2149
**Confidentiality Notice** This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and/or otherwise exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, any disclosure, dissemination, distribution, copying or other use of this communication or its substance is prohibited. If you have received this communication in error, please return to the sender and delete from your computer system.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I am using the BaseTemplateToolbox. If I print-r($toolbox) at the end of my hook, this is added to toolbox.
[proplinkhere] => Array ( [text] => Prop Links Here [href] => /acc_arswiki/index.php?title=Special%3AProplinkhere/Amikacin [id] => t-proplinkhere )
Which is what I added. But it does not show up in the toolbox. Do I have to add "t-proplinkhere" anywhere?
Do I have to do anything with BaseTemplate::makeListItem?
I did add this to the i18n message file:
'accesskey-t-proplinkhere' => '', 'tooltip-t-proplinkhere' => 'List all pages that have properties that link to this page. ',
Thanks,
Mary
-----Original Message----- From: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of Daniel Friesen Sent: Thursday, July 11, 2013 5:53 PM To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] Adding to the skin toolbox
BaseTemplateToolbox is the cleanest hook to use. There's also SkinTemplateToolboxEnd which is hideous but existed before BaseTemplate. So ideally use BaseTemplateToolbox, unless you happen to have an ancient pre-BaseTemplate skin that's still hardcoding the toolbox.
https://www.mediawiki.org/wiki/Manual:Hooks/BaseTemplateToolbox https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateToolboxEnd
On Thu, 11 Jul 2013 14:39:42 -0700, Beebe, Mary J BeebeM@battelle.org wrote:
I am using the Vector skin. I have an extension very similar to whatlinkshere. It needs to take the current page as the parameter just like whatlinkshere.
I would like to add it to the toolbox, but actually I do not care where it is in the navigation but the toolbox seems the most logical.
We have done this before with other older skins that had something like this section:
<div id="gumax-special-tools"> I noticed that getToolBox() is within BaseTemplate. Is there a way to add this method to the tool box?
Thanks,
Mary Beebe Battelle - Charlottesville, VA Office: 434- 951-2149
**Confidentiality Notice** This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and/or otherwise exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, any disclosure, dissemination, distribution, copying or other use of this communication or its substance is prohibited. If you have received this communication in error, please return to the sender and delete from your computer system.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org