A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

How to make a button on a wikipage

DS123

I am trying to make a button that when clicked can name and time stamp a log book. Not a link to another page, but a button

RazeSoldier

Your question is to allow your wiki to parse <button> tag?

FlorianSW

Does it really need to be a button (why?)? If not, and it only needs to look like a button, you can use some css magic to do so. MediaWiki.org uses that at several pages, the code would look something like:

[[Google Code-in/Participants|<span class="mw-ui-button mw-ui-progressive mw-ui-big" style="font-size: 1.5em;" title="">Register as a student</span>]]

The result looks something like the “Register as a student” button on the Google Code-in 2017 page.

If you really need a button (what would be the action and how do you want/plan to implement it? Some more context would be nice here :P) you can probably take a look to the InputBox extension, which provides buttons (and other input fields) at least for most of the MediaWiki related stuff.

If this is not, what you wanted, please, like I wrote already, provide some more context with the clear rationale what you want to achieve. It’s possible that you need to create your own extension for that, but let’s see.

Best,
Florian

HouselessOz

You may want to check out Page Forms (and Semantic Wiki). Here’s a workflow on my wiki showing various types of form/button actions:

Every single field/button there is custom and there’s even a list at the end of all the submissions, so you’ll definitely be able to do what your asking for! I’m brand new on here, so if I post too many links Discourse will trigger me as a spammer, sp instead here are the steps to get you started:

  • Install Semantic Wiki
  • Install Page Forms
  • Page Forms Quickstart - Follow “The Easy Way” method (which is how I built that workflow)
    • Basicaly, visit your sites /Special:CreateClass page

With more info we can definitely get you to were you want to be!

qgil

@DS123 did you find a good answer to your problem in this thread?

Jayprakash12345

@DS123 Also See https://www.mediawiki.org/wiki/Extension:InputBox, This can also help you. It will give Button and Textbox as well. :slight_smile: