Jump to content

Topic on Project:Support desk

Paulo.adrp (talkcontribs)
AhmadF.Cheema (talkcontribs)
Paulo.adrp (talkcontribs)

Did not quite understand.

I just want to make the Wikipedia box info? Could you teach me?

AhmadF.Cheema (talkcontribs)
Paulo.adrp (talkcontribs)

Hello again.

I'm still confused, I do not understand the tutorial very well.

Can you explain to me in more detail, what do I have to do?

From what I understand I need to install these two extensions: Extension: ParserFunctions & Extension: Scribunto.

I installed and enabled the "$wgUseInstantCommons = true;"

But {{info}} does not work, what am I doing wrong?

Thank you in advance, and sorry for anything.

AhmadF.Cheema (talkcontribs)
Paulo.adrp (talkcontribs)
AhmadF.Cheema (talkcontribs)

Go to Wikipedia's Special:Export page and enter the full page names of the infobox templates, for example:

Template:Infobox_government_agency

Be sure to check the Include templates checkbox to include other necessary templates

Paulo.adrp (talkcontribs)

Hello good day.

Please help me, I'm new to Wikipedia and I do not understand these procedures, I apologize for the lack of knowledge, I do not speak English, I use Google Translate, and it's very difficult to understand the tutorial.

Manual:Importing Wikipedia infoboxes tutorial#Extensions

I downloaded the following extensions and installed it on my Wikipedia, the extensions are: ParserFunctions and Scribunto.

I exported the template this way, like you said:

Template:Infobox_government_agency
Paulo.adrp (talkcontribs)

But it makes a mistake to import it into my Wikipedia.

Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\wiki\includes\http\CurlHttpRequest.php on line 36

Could you explain to me in detail what I'm doing wrong? If you have a video teaching how to install I'm grateful, or even an extension to get all INFO Templates.

ParserFunctions

I installed ParserFunctions in this way. I downloaded the file, put it in my extension folder. After these procedures I open the LocalSettings.php and added the following lines at the end of the code and saved.

wfLoadExtension( 'ParserFunctions' );
$wgPFEnableStringFunctions = true;
Paulo.adrp (talkcontribs)

Scribunto

I installed Scribunto this way. I downloaded the file, put it in my extension folder. Open LocalSettings.php and I added these codes at the end of every code after I saved it.

require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';

After these procedures I will expose the template as you said but gave the error quoted above, please help me.

Thank you in advance for your patience and dedication.

Ciencia Al Poder (talkcontribs)

"Maximum execution time of 120 seconds exceeded"

This probably means your wiki is too slow, maybe you're on a very slow machine, or database hasn't been configured properly

Paulo.adrp (talkcontribs)

Hello again.

Is there any manual import method? Well apparently I can not import the Wiki itself. If it exists, please tell me.

Thanks in advance.

AhmadF.Cheema (talkcontribs)

For a more "manual import method", go to: Template:Infobox government agency&action=edit, beneath the edit box, there should be a "Pages transcluded onto the current version of this page" section.

Open the first page under this section.

Create a page by the same name on your Wiki.

Copy the code from the Wikipedia page.

Paste the code inside the page you created on your Wiki and save the page.

Perform these steps on all the pages in the "Pages transcluded onto the current version of this page" section.

Paulo.adrp (talkcontribs)

Look at me again!

It looks like I'm getting the hang of it, but once I apologize for the inconvenience and the inconvenience, but I also ask you to help me resolve my situation.

- The Wiki was on localhost, now I put it on a dedicated server. I am able to export / import perfectly, no limit error appears, thank you for help, because I solved my problem. But now there is another problem and doubts.

1. I have a problem when importing, an error appears in my Wiki, saying, the import failed, how can I solve this problem?

https://i.imgur.com/TRpYAwC.png

2. I have a question about importing INFO from Wikipedia. I'm putting the following codes in "Add pages manually" this way, is that so, or am I doing something wrong?

https://i.imgur.com/AUVZ8sm.png

Template:Info
Template:Info/doc
Template:Infobox
Template:Infobox/doc
Template:Infobox software
Template:Infobox software/doc
Template:Infobox software license
Template:Infobox software/sandbox
Template:Infobox software/testcases
Template:Infobox software platform
Template:Infobox software/simple
Template:Infobox software/stacked
Template:Infobox software license/sandbox
Template:Infobox software license/doc

3. I want to know if it is possible to add all the INFO of Wikipedia, if there is any code for it or even an extension. If it does not exist it could help me implement the Software INFO. If there is a request please send me the download link for export, to import me to my Wiki.

4. Is it possible to undo an import? If yes, how?

I leave my thank you right away.

Ciencia Al Poder (talkcontribs)

problem when importing It says the lua binary is not executable. You should give that file executable permissions. On unix you usually do that by issuing this command: chmod a+x (the full path to the file)

Adding all pages from Wikipedia on your own wiki is possible, but note that Wikipedia has so many pages that you'll need a lot of disk space to store that, the import will take several days, and your wiki will be probably slow unless you're on a big server. You can get dumps of Wikipedia from https://dumps.wikimedia.org/

Undoing an import is not straightforward. Imports usually create pages, you'd need to manually delete them. If the page exists before the import, it will have revisions added to it, which may be difficult to determine which ones came from the import.

AhmadF.Cheema (talkcontribs)
  1. Answered above. An example of the chmod a+x command, which you will need to run through SSH (command line terminal linked to your hosting server), is present at Extension:Scribunto#Manual installation.
  2. This is fine, but you don't need to enter each page's name in the text box. On the Special:Export page, when you just insert Template:Notice and check the "Include templates" checkbox, it will automatically download all the other relevant templates. The "relevant templates" would be the ones which can be seen in the "Pages transcluded onto the current version of this page" section on the edit page.
Paulo.adrp (talkcontribs)

Just one problem, where I add this code?: <code>chmod a+x (the full path to the file)</code>

My operating system is Windows, I use FileZilla to edit the files on my Wiki, my server has a CPanel, I need to do what?

Thank you again.

AhmadF.Cheema (talkcontribs)

Which hosting provider are you using for your "dedicated server"?

You will have to connect with your account on the server through a secured command line terminal, termed as SSH. The Windows application to use for this would be PuTTY.

You will need to read the documentation from your hosting provider for the exact way to connect through SSH.

Paulo.adrp (talkcontribs)

Hello!

I recently purchased a hosting at HostGator.

extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua

I accessed my Scribunto folder, looking for yourOS/lua, but these folders do not exist in my extension, it is important to note that my Wiki is in version 1.29.

https://i.imgur.com/bgpwZqT.png

Because the folder does not exist I can not insert the following code into my SSH.

chmod a+x /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua

chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua

Thanks again.

AhmadF.Cheema (talkcontribs)

yourOS means the operating system (OS) you are running MediaWiki on, such as Windows, Linux, or Mac OS.

Assuming you are running Linux on your HostGator account, the simplest way is to ask the support staff of your hosting provider, whether Linux OS is 32 bit or 65 bit.

If your OS is 32 bit, replace yourOS from the above command with lua5_1_5_linux_32_generic.

If your OS is 64 bit, replace yourOS from the above command with lua5_1_5_linux_64_generic.

Ciencia Al Poder (talkcontribs)

If you don't want to wait for a response, you can also use the trial & error method. Try the first one and, if it fails, try the second one ;)

Paulo.adrp (talkcontribs)

I did not understand, explaining myself better?

Ciencia Al Poder (talkcontribs)

Basically, you have to replace "yourOS" with lua5_1_5_linux_32_generic or lua5_1_5_linux_64_generic.

If in doubt, try using lua5_1_5_linux_32_generic first, and if it's still failing, try with lua5_1_5_linux_64_generic

Paulo.adrp (talkcontribs)

It is working, but it is working with error, this error appears to me. Error in Lua: internal error: the interpreter was terminated with the sign "11" Error in Lua: internal error: the interpreter was terminated with the sign "11" Script error: module not found https://i.imgur.com/mpfCXkd.png

Look how it is, it's on the left side and should be on the right side, and it's also bugged.

Could you send me the download link for me to download the info and info software package?

AhmadF.Cheema (talkcontribs)

Which "yourOS" did you choose?

This error might be occurring because you chose the wrong one (Topic:Rfxsxi1i8kku7jhq). Try attempting with the other one.

Paulo.adrp (talkcontribs)

I will contact you to solve this problem and you sent me.

But please, send me the INFO CSS code?

AhmadF.Cheema (talkcontribs)

Can't be sure, but the following should be enough:

/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
	font-size: 100%;
}

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
}
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	padding: 0.2em;
	text-align: center;
}
.infobox td,
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}

.infobox.sisterproject {
	width: 20em;
	font-size: 90%;
}

.infobox.standard-talk {
	border: 1px solid #c0c090;
	background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
	border: 1px solid #c0c090;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #a2a9b1;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

/* Styles for geography infoboxes, eg countries,
   country subdivisions, cities, etc.            */
.infobox.geography {
	border-collapse: collapse;
	line-height: 1.2em;
	font-size: 90%;
}

.infobox.geography  td,
.infobox.geography  th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
	border: 0;
	padding: 0 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
	border-top: 0;
	border-bottom: 1px solid #a2a9b1;
	padding: 0 0.6em 0.4em 0.6em;
}

.infobox.geography .maptable td,
.infobox.geography .maptable th {
	border: 0;
	padding: 0;
}

/* Fix for hieroglyphs specificality issue in infoboxes ([[Phabricator:43869]]) */
table.mw-hiero-table td {
	vertical-align: middle;
}
Paulo.adrp (talkcontribs)

Hello!

Some of my templates are giving Lua error. It says the following: Error in Moon: internal error: the interpreter was finalized with the signal "11" But my machine is 64 bits, how can I fix this problem?


Thank you very much in advance.

AhmadF.Cheema (talkcontribs)

The value of yourOS from the above comments, which one are you using?

Is it lua5_1_5_linux_32_generic OR lua5_1_5_linux_64_generic?

Paulo.adrp (talkcontribs)

Hello!

I used lua5_1_5_linux_64_generic.

And I changed the permission to 0777. And now what do I do?

AhmadF.Cheema (talkcontribs)

Are you still receiving the signal "11" error?

Paulo.adrp (talkcontribs)

Yes.

AhmadF.Cheema (talkcontribs)

What happens when you use lua5_1_5_linux_32_generic?

Reply to "Article Templates"