User talk:GregoryRasputin

From Vita Developer wiki
Jump to navigation Jump to search
  1. upload (http://www.psdevwiki.com/vita/index.php?title=Special:Upload) the needed buttons
  2. add category ([[Category:Custom edit buttons]]) to their description
  3. note their URL's to be used below

For global, edit At http://www.psdevwiki.com/vita/index.php?title=MediaWiki:Common.js and add the pre-text (without the == header == and without pre-tags):

add seperate "table buttons" to the tool bar[edit source]


if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.psdevwiki.com/vita/images/a/a4/TableStart.png",
     "speedTip": "Table Start",
     "tagOpen": "{|",
     "tagClose": "",
     "sampleText": ""};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.psdevwiki.com/vita/images/7/71/TableCell.png",
     "speedTip": "Table Cell",
     "tagOpen": "|",
     "tagClose": "",
     "sampleText": "cell"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.psdevwiki.com/vita/images/4/4c/TableRow.png",
     "speedTip": "Table Row",
     "tagOpen": "|-",
     "tagClose": "",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.psdevwiki.com/vita/images/0/06/TableEnd.png",
     "speedTip": "Table End",
     "tagOpen": "",
     "tagClose": "|}",
     "sampleText": ""}
  }

add single "table button" to the tool bar[edit source]

    mwCustomEditButtons.push({
        "imageFile": "http://www.psdevwiki.com/vita/images/4/4a/Button_table.png",
        "speedTip": "Insert a table",
        "tagOpen": '{| class="wikitable"\n|',
        "tagClose": "\n|}",
        "sampleText": "-\n! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"
    });

save and hardrefresh the edit page to preview the buttons. test out if they work as intended.


Added templates need enabling of parsing[edit source]

Added some handy templates, that will not work without enabling parsing (navigational boxes and documentation subspace)they are also used on ps3/ps4 wiki as the familiar blueish boxes for main navigation on ps4 wiki and most commonly on ps3wiki at the firmware page (to make it easier to add firmwares and have a nice readable overview of what is available.

https://www.mediawiki.org/wiki/Extension:ParserFunctions

alternatively: "This extension is bundled with MediaWiki 1.18 and above"

this wiki runs 1.17.0...

(PS3wiki: 1.18.1 / PS4wiki: 1.20.2 / new shared psdevwiki: 1.21.1)

Euss 19:19, 26 June 2013 (EDT)

current wiki runs 1.24.0 (yay!) but some parsings still do not work (which depend on the logical and string functions that https://www.mediawiki.org/wiki/Extension:ParserFunctions gives)
Euss (talk) 18:31, 10 April 2015 (MDT)

Wiki has no GeSHi[edit source]

a sample of where it is also used on this wiki : PlayView#content.dat.28.edat.29: (scroll to "Second part XML:")

a sample that should work once it is installed:


<?php

   $v = "string";    // sample initialization

?> html text <?

   echo $v;         // end of php code

?>