Topic on Project:Support desk

Jump to navigation Jump to search

How to create a Clickable Button in MediaWiki?

6 (talkcontribs)

Hello, I'm trying to create a site using mediawiki and ineed to have a clickable button at one page. I've tried to include a text provided here

and it resulted in the text Template:Clickable button on the page. Apparently, my mediawiki doesn't contain a template for clickable buttons. The question is: where can I take the code for this template so that my clickable button works? Thank you (talkcontribs)
AhmadF.Cheema (talkcontribs)

A template may include several other templates and modules which would also need to be imported into your Wiki.

  1. Go to Special:Export.
  2. In the "Add pages manually:" textbox, add "Template:Clickable button".
  3. Check "Include templates" and click the blue "Export" button. A file will be downloaded to your computer.
  4. Then go to your Wiki's version of the Special:Import page and then import this exported file. (talkcontribs)

Thank you. I did everything till step 4. If I just select the .xml file I get an error "Import failed: No interwiki prefix was supplied" What should be an interwiki prefix? If I use or anything else, I get an error "Import failed: No pages to import." Can you navigate me through the option on this (Special:Import) page? Thank you

AhmadF.Cheema (talkcontribs)

I have pretty much no idea regarding the Interwiki prefix. This is the first time I'm seeing this, probably added in the latest MediaWiki 1.31 version. For all I know, just adding the prefix "meta" should work, but I cannot be sure. Better wait for someone else to chime in.

$wgImportSources and this appear to be related.

AhmadF.Cheema (talkcontribs)
Reply to "How to create a Clickable Button in MediaWiki?"