Project:Support desk/Sections/Formatting

__NEWSECTIONLINK__

= Formatting Support =

How can I get my text to have a "right" alignment?
I can't figure out how to get text aligned to the right side of the page, despite searching the help pages for "alignment." Please help!

Existing pages with table code doesn't work in mediawiki 1.13.2

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.51a
 * URL: localhost

I have upgraded mediawiki version 1.10.0 with 1.13.2. I have executed update.php and refreshLinks.php. But the pages which have table code has broken. The data is in text table. All the pages are working good with 1.10.0 version. But doesn't work with 1.13.2.

So, I have edited the page which was not working on 1.13.2 and copied the data from other system where it is working with 1.10.0 and saved the changes. but the page is not saving properly and it is removing the '|' and also placing some extra characters to the data.

Even the table format is good also the page is not getting displayed in tabular form.

It works good when i create a new page with table format.

Please help me that what's wrong with version 1.13.2 that doesn't support existing page table code? —The preceding unsigned comment was added by 208.88.84.10 (talk • contribs) 20:49, 31 December 2008. Please sign your posts with ~ !


 * I really need your help in finding this problem. Actually, it looks like there is some encoding problem some where with mediawiki version 1.13.2. This is corrupting the page display. If you are already aware of the problem then please let me know what could be the solution? —The preceding unsigned comment was added by 208.88.85.100 (talk • contribs) 18:21, 13 January 2009. Please sign your posts with ~ !

nowiki tags appear

 * MediaWiki version: 1.13.3
 * PHP version: 5.5
 * MySQL version: 5
 * URL:

Hi all,

I have a certain issue which makes  appear on the results of an mssql query below are the source



Fixed Issues
The table below lists all issues fixed since the last release.

include a path and transfer a excel table

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.0-8+etch13 (cgi-fcgi)
 * MySQL version: 5.0.32-Debian_7etch8-log
 * URL:

Hello I'm trying to include the path on the top of a site (example wiki>help>diskussions>). Are there a command? I'm looking for a tool to transfer excel tabel in a wiki table? Thanks for help

(resolved) Problem with a template, I want empty/unused variables to leave blank spaces not

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version:  5.0.67-0ubuntu6-log
 * URL: http://wildedibleplants.wikia.com/wiki/Template:Bigsitelinks http://wildedibleplants.wikia.com/wiki/Taraxacum_officinale

I'm trying to write a simple template which will create a table. Each variable is to contain only the URL to a link which is to go into the table. All the other formatting is to be done by the template (putting the link in square brackets and giving it a name). I can get all that to work so long as all the variables are filled in at on the wiki using the template. What I haven't been able to do, and I've been trying to use parser functions to do it, is to have empty cells in the table (instead of or whatever) when a variable is empty. I tried using the #if function and I think I used it correctly, but it doesn't seem to work with variables.

The reason I'm doing this instead of just doing it manually is that there will potentially be many links per page when this wiki I started gets going (*crosses fingers*) and I want to start organizing the common, big sites now, keeping them in the same order.

There's probably a simple answer to this but I haven't found it in the help pages I've read...

Thanks for your time

—Khono 00:33, 22 June 2009 (UTC)


 * Still looking for an answer. Khono 03:17, 8 July 2009 (UTC)


 * You can specify a default value for when a parameter is not defined:   displays "foo" when the parameter is not defined in the template.  So you probably need   , to give an empty default.  Is this what you're looking for? Happy ‑ melon 10:46, 8 July 2009 (UTC)


 * While that gets rid of the it's not appropriate for what I'm trying to do.  I'm trying to make the template accept only the URL, since everything else is style and we may (and likely will 'cause it looks horrible now) change what we do with that URL.  I currently put square brackets around it to make it a link, so leaving it blank results in: "[ Wikipedia]" instead of the goal of just: "Wikipedia".  So I'd want to be able to leave out all the supporting code around that parameter if the parameter's empty.  Thanks anyway, though :)  Khono 13:34, 9 July 2009 (UTC)


 * You could also use this and make your templates a living nightmare :) | #ifeq usage
 * something to look at as far as usage, i have about 20 templates that have required fields which are shown in the black box below but the optional fields are invisible but are still in the template format when someone uses them, i even went so far as to nest conditional fields for the template even if someone uses the field, it wont show unless there is another field that is used first. This is to show you how complex you can build a template and this is a light complexity compared to what i have seen on other wikis.
 * You can go here and view the source to get a better understanding of this templates customizable attributes
 * If you have any questions, just send me a email through my account Goldbishop 12:54, 8 July 2009 (UTC)


 * Hah, thank you very much, Goldbishop! It's now working as I intended and without too much pain!  I'm fine with using these parser functions.  I didn't have much luck using them before and I didn't find any useful examples of the #if functions until you showed me yours.  I looked at the code for the only other template I could think of that showed different content based on what was entered and it's RIDICULOUSLY!! complex.


 * I do have some questions, though. The link you gave to the documentation of #ifeq shows different.. umm, code structure than you used in your example.  In your example you wrote:
 * Which, if I understand correctly, can be described as:
 * The documentation you linked to doesn't mention an else function and it uses a | before the first value instead of a :. While it seems I understand since I got my template to work (see the links I posted in the original question if you care to see), I am curious as to why the discrepancy.  Again, thanks so much, you made my day :)  Khono 14:19, 9 July 2009 (UTC)
 * The documentation you linked to doesn't mention an else function and it uses a | before the first value instead of a :. While it seems I understand since I got my template to work (see the links I posted in the original question if you care to see), I am curious as to why the discrepancy.  Again, thanks so much, you made my day :)  Khono 14:19, 9 July 2009 (UTC)
 * The documentation you linked to doesn't mention an else function and it uses a | before the first value instead of a :. While it seems I understand since I got my template to work (see the links I posted in the original question if you care to see), I am curious as to why the discrepancy.  Again, thanks so much, you made my day :)  Khono 14:19, 9 July 2009 (UTC)


 * The #ifeq: parser function is from the ParserFunctions extension. Happy ‑ melon 14:31, 9 July 2009 (UTC)


 * Cool, thanks again, Happy-melon. Khono 15:27, 9 July 2009 (UTC)

Help with templates and basically everything

 * MediaWiki version: 1.15.0
 * PHP version: 2.11.9.5
 * MySQL version: 4.1.22
 * URL: www.mysite.com

Can anyone lay out a simple explanation of how I put info boxes and things on my wiki? The tutorials on here really make no sense and there is no good one out there.

Basically, I want to make it have everything wikipedia has on their website.


 * RTFM. I'm afraid no one is going to help you with a 'problem' like this, because you haven't demonstrated any effort to help yourself.  There are hundreds of pages of tutorials, help guides, Q&As, FAQs, template documentation notes, and other useful information, available on this website, enwiki, and (just a Google search away) on dozens of other sites.  "everything wikipedia has" has been built up over eight years by a team of thousands of editors.  Learning how it all works is a gradual process, not one that you can expect to master instantly.  If you have specific queries about particular features or markup, we're always here to help.  But your question is essentially "how do I write a wiki", the answer for which comprises this entire site. Happy ‑ melon 15:30, 3 July 2009 (UTC)

—Tab01 04:45, 3 July 2009 (UTC)


 * Sorry, I should have clarified my question. Obviously I can't make mine look exactly like Wikpedia. I simply wanted the infoboxes that way I can create my own. I've went through and edited the LocalSettings.php to include the parser function and added it to the extension folder. There is no good template out there on what to actually edit or include into your site to allow it to read infoboxes. At least I have found a single good tutorial on how to do it.


 * Here are a bunch of examples of templates. I looked at a few and they seem pretty simple yet there are various types with different appearances.  Perhaps these will help you out.  If you use these examples along with the tutorials for writing Templates, I believe you will learn how to make your own.  Khono 09:09, 10 July 2009 (UTC)

Sidebar changes not showing up
I've followed the directions at http://www.mediawiki.org/wiki/Manual:Interface/Sidebar but for some reason my changes are not showing up. I've tried purging the cache but this hasn't worked for me. I was able to have my changes show up before, so I'm not sure what I'm doing differently now that this isn't working any more. My sidebar has now reverted to the default settings it had when I first installed MediaWiki and no matter how much I edit MediaWiki:Sidebar I cannot get it to change. I'd be grateful for any advice. Thanks, Iain. —75.157.101.247 17:04, 17 July 2009 (UTC)
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (cgi-fcgi)
 * MySQL version: 5.0.67-log
 * URL: http://wiki.documentation.nelsonwaldorf.org/wiki/MediaWiki:Sidebar

Wiki toolbar missing in edit page after applying skin

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (cgi-fcgi)
 * MySQL version: 5.0.81-community-log
 * URL: Tar Heel Wiki

The roundedblue2 skin installed on my site, tarheelwiki for some reason doesnt display a toolbar in the edit tab.

I can change the default skin for the site to monobook and the toolbar appears in the edit tab, so it has to be something with the skin, I assume.

Can anyone help me fix this issue?

—Theothertomjones 21:04, 23 July 2009 (UTC) No relation :P
 * Well where did the skin come from? Did you design it? I would suggest going to the Developers section and looking up the ID's of the different sections, in case they are not there like yours is doing.  Here is a link for your ease -> []
 * Goldbishop 21:24, 23 July 2009 (UTC)

—

Disregard - The fix is to add the following to:

The skins php file:

php print Skin::makeGlobalVariablesScript( $this->data ); (I removed the php open and closing tags for this statement so the formatting wouldnt conflict)

text('jsmimetype') ?>" src="text('stylepath' ) ?>/common/wikibits.js?">

And have this in your localsettings php file:

$wgAllowUserJs = true; $wgAllowUserCss = true; $wgEnableMWSuggest = true; $wgUseAjax = true;'

At least this fixed the issues I was having.

—Theothertomjones 21:04, 23 July 2009 (UTC) No relation :P

OSKzMeAvIjEoojkYNA
What is it,

How to add a Template to the End of a Page

 * MediaWiki version: 1.15
 * PHP version:
 * MySQL version: 5.0.51a
 * URL: http://multiweb.gesis.org/mediawiki/

We have a Semantic Mediawiki, with Personal pages where every Person can see his Projects, Meetings and Vacation times. so we got a Person Template an want to have at the end of every Page the list of Meetings and Vacation's. Is there a way to inculde the Vacation and Meetings Templates in there Person Template after the part of the Free text ever Person can write to his Page?

Something like:

Text at the end of the Page ???

—193.175.238.250 09:01, 30 July 2009 (UTC)