Topic on Project:Support desk

Jump to navigation Jump to search
Summary by Ta6513647

Add

Codi727 (talkcontribs)

I'm trying to copy an infobox template from Wikipedia to a personal mediawiki, but when I preview it, all I see is the code I entered. So there has to be something that I have to enter elsewhere to actuate the infobox code. I'm not knowledgeable in Wiki, but I am highly trainable and I greatly appreciate any assistance you can give me to get this up and running properly.

Here is the code I entered on my page:

{{italic title}}{{Taxobox
| name = ''Enchytraeus buchholzi''
| regnum = [[Animal]]ia
| phylum = [[Annelida]]
| classis = [[Clitellata]]
| subclassis = [[Oligochaeta]]
| ordo = [[Haplotaxida]]
| familia = [[Megascolecidae]]
| genus = ''[[Enchytraeus]]''
| species = '''''E. buchholzi'''''
| binomial = ''Enchytraeus buchholzi''
| binomial_authority = Vejdovský, 1879  <ref>{{cite web |author=T. Timm, & C. Erséus |year=2009 |title=''Enchytraeus buchholzi'' Vejdovský, 1879 |publisher=[[World Register of Marine Species]] |url=http://www.marinespecies.eu/aphia.php?p=taxdetails&id=137403 |accessdate=April 22, 2010}}</ref>
}}

== box ==

{{Infobox website
| name         = Open Directory Project
| screenshot   = [[Image:lettuce.gif|250px]]
| screenshot   = [[File:lettuce.gif|250px]]
| url          = [http://www.dmoz.org/ dmoz.org]
| commercial   = No
| type         = [[Web directory]]
| registration = Optional
| owner        = [[Netscape]] ([[AOL]])
| author       = [[Netscape]]
| launch date  = June 5, 1998
| content license = [[Open Directory License]]
}}

And here is what shows up when the page is saved:

Template:Infobox website

Thanks

Codi727

Reach Out to the Truth (talkcontribs)

Is it a redlink? If so, that means the template does not exist on your wiki. You have to create it manually or import it from a project that has it.

Codi727 (talkcontribs)

OK, I appreciate your response even though I don't completely understand it, it does gives me a little more to investigate such as creating a template or importing one. Do you happen to know of a place to import one from?

Codi727

Kaganer (talkcontribs)
MaxSem (talkcontribs)

Even better, use Special:Export to export this template with all its dependencies. Ensure that destination wiki has ParserFunctions or these templates will not function properly.

Codi727 (talkcontribs)

OK, I've been hard at it all day and this is what I have to date on my wiki:-

I created the following Template:DIY as per instructions and place the following in it:-

{{Infobox website
|name            = DIY Aquaponics
|logo            = [[File:diy_logo.png|48px|DIY logo]]
|logocaption     = DIY logo
|collapsible     = yes
|caption         = Detail of DIY Aquaponics.
|url             = [http://www.diyaquaponics.com/ www.diyaquaponics.com]
|slogan          = ''Feed the World''
|commercial      = No
|type            = [[Internet Aquaponic project]]
|registration    = Optional
|language        = English language
|content license = [[GNU Free Documentation License]]
|owner           = [[DIY Aquaponics, Inc.]]
|author          = [[Chris O'Brian]]
|launch date     = {{Start date|2005|07|27}}
|current status  = Online
}}

Then I created "Test Page" on my wiki and edited it placing the following in it DIY with double { brackets in front and double } brackets after it, and when I go there to see the results, this is what I get:-

Test
Template:Infobox website (which shows up in red)

So what am I missing? Please take my hand and lead me through it...Please...I know I've missed something even though I have been reading the instructional pages all day.

MaxSem (talkcontribs)

Please read Help:Templates. Of course Template:Infobox website shows up as red link since you haven't created this template.

Codi727 (talkcontribs)

Hey Max Semenik,

Sorry for being a dumb a** but as per instructions, I created the Template page as seen on the post above and also re-listed below.

When I go to special pages on my wiki, and look under Templates I find DIY so it does exist. Also when I look at it, all it shows is

Template:Infobox website
(which shows up in red)

I put ## in front of each entry here on this listing so you could see what I entered thus that is why the numbers are showing up.

Was I suppose to input something else into the Template:DIY other than what is listed below? I uploaded the ParserFunctions to my server in the extensions dir.

Copied from previous post: I created the following Template:DIY as per instructions and placed the following in it:-

  1.
        1. {{Infobox website
        2. |name =DIY Aquaponics
        3. |logo =DIY logo
        4. |logocaption =DIY logo
        5. |collapsible =yes
        6. |caption =Detail of DIY Aquaponics.
        7. |url =www.diyaquaponics.com
        8. |slogan =Feed the World
        9. |commercial =No
       10. |type =Internet Aquaponic project
       11. |registration =Optional
       12. |language =English language
       13. |content license =GNU Free Documentation License
       14. |owner =DIY Aquaponics, Inc.
       15. |author =Chris O'Brian
       16. |launch date =Template:Start date
       17. |current status =Online
       18. }}

Then as I state in my post above, I created a page named "Test" on my wiki and edited it placing the following "DIY" in it surrounded front and back with {{ }} brackets, and when I go there to see the results, this is what I get:-

Test
Template:Infobox website
(which still shows up in red)

So where am I going wrong. I am using wiki 1.16

Codi727 (talkcontribs)
Reach Out to the Truth (talkcontribs)

You need Template:Infobox website. The redlink means it doesn't exist. All you've done is moved the template call into another template; you still need the infobox templates that you're calling.

Codi727 (talkcontribs)

Sorry, I don't know your name but I do realize you are doing this vountarily so I want you to know that I do appreciate all your assistance. I know you probably help hundreds upon hundreds of people each day here, however since I apparently (as you can see) am completely shooting in the dark and don't understand your directions, perhaps you could take a little more time and explain how to do this correctly, maybe step by step. If you could, it would beat anything that I have been able to find on MediaWiki.

OK, so according to you, I'm missing something....

 Quote:- All you've done is moved the template call into another template;
 you still need the infobox templates that you're calling.

I am assuming you mean "DIY" is the template call which was placed in the page "Test" which is actually a page listed under Special Pages / All pages and is located at http://wikiaquaponics.com/index.php/Test

As for the Template, I did create it as stated above and it is located at http://wikiaquaponics.com/index.php/Template:DIY

So what other pages do I need to construct and where?

Reach Out to the Truth (talkcontribs)

You have a call to Template:DIY, which exists. But Template:DIY has a call to Template:Infobox website, which doesn't exist. You still need that template.

Unfortunately, documentation of the export and import processes is pretty bad. You could just directly copy the source of wikipedia:Template:Infobox website into your wiki, but that makes license compliance difficult. That's why I haven't suggested that method. It is possible to import into your wiki with full attribution, but it's not an easy process to explain.

Oh, and you also need install Extension:ParserFunctions. You said you downloaded it, but I can see that it's not installed yet. Make sure to follow the installation instructions on the page.

75.95.141.2 (talkcontribs)

I'm going to be honest with you, I have been working on this for 2 days and it's begining to make my head hurt :)

 You have a call to Template:DIY, which exists.
 But Template:DIY has a call to Template:Infobox website, which doesn't exist. You still need that template

Using the information I provided in my post above how do I create the :-Template:Infobox website, which you say doesn't exist. You still need that template?

So right now I have a Template page called DIY and a page which I thought was to call it called Test and you say I need another page? Please tell me how to construct it.

And yes I have been all through the Export/Import pages and they no help and I also tried copying the wikipedia:Template:Infobox website page using the edit just to see if it would work to no avail.

And I do have the Extension:ParserFunctions (as seen below but it says on the page Requirements) installed.

 The ParserFunctions extension requires
   * MediaWiki 1.7.0 or above
   * PHP compiled with 'ctype' functions (almost always is included by default)
 in my LocalSettings.php along with some others:-

I am using 1.16

require_once("$IP/extensions/ParserFunctions/ParserFunctions.php" );
$wgPFEnableStringFunctions = true;
require_once("$IP/extensions/ParserFunctions/SprintfDateCompat.php" );
require_once("$IP/extensions/ParserFunctions/ParserFunctions_body.php" );
require_once("$IP/extensions/ParserFunctions/ParserFunctionsi18n.php" );
require_once("$IP/extensions/ParserFunctions/ParserFunctionsi18n.magic.php" );
require_once("$IP/extensions/ExtensionName/importPagesIntoEndpoint.php" );
require_once("$IP/extensions/ExtensionName/JosekiStore.php" );
require_once("$IP/extensions/ExtensionName/SparqlExtension.alias.php" );
require_once("$IP/extensions/ExtensionName/SparqlExtension.i8n.php" );
require_once("$IP/extensions/ExtensionName/SparqlExtension.php" );
require_once("$IP/extensions/ExtensionName/SparqlExtension_body.php" );
require_once("$IP/extensions/ExtensionName/SparqlLinker.php" );
require_once("$IP/extensions/ExtensionName/SparqlOutputFactory.php" );
require_once("$IP/extensions/ExtensionName/SparqlOutputFormat.php" );
require_once("$IP/extensions/ExtensionName/SparqlUtil.php" );
$wgUseAjax = true;
require_once("$IP/extensions/CategoryTree/CategoryTree.php");
require_once("$IP/extensions/OpenSearchXml/OpenSearchXml.php" );

So what now?

Reach Out to the Truth (talkcontribs)

Unfortunately, importing that template and making it work isn't an easy thing for me to explain. :/ I'm going to look at the rest of what you've got here.

Remove the four lines after the $wgPFEnableStringFunctions line. You shouldn't be including those directly; ParserFunctions.php will take care care of that. The rest of this looks a bit odd. You have at least four extensions installed according to this, but none of them are showing on Special:Version. There should also be a Special:CategoryTree page, but there isn't.

So these extensions aren't installed. Since you're using require_once statements, a missing file would result in your wiki not loading at all. So it seems that those statements aren't even being read in the first place. You're doing this in LocalSettings.php, right?

Codi727 (talkcontribs)

Yes that was my LocalSettings.php file but I have now edited it to the point that only the following extensions are there to hopefully get "Infobox" problem solved:-

 ## Extension dir
 require_once("$IP/extensions/ParserFunctions/ParserFunctions.php"  );
 $wgPFEnableStringFunctions = true;

Should I remove the "require_once" for the above?

Codi727 (talkcontribs)

So, Has everyone given up on me? I just installed Cite in the extension/Cite folder as per instructions and then ran Special:Version and it doesn't show up anywhere there as installed.? So, could there be a problem with require_once("$IP/extensions/ParserFunctions/ParserFunctions.php" not working either and that is what is causing the Infobox to not show up? What could be keeping the installed extensions from working? Below is a list of what I have on bottom of the page of LocalSettings.php at this time.

 ## Extension dir
  require_once("$IP/extensions/ParserFunctions/ParserFunctions.php"  );
  $wgPFEnableStringFunctions = true;
  require_once("$IP/extensions/Cite/Cite.php");

Should the $IP be changed to my URL or is that OK? I know you guys are tired of me, but look at it as a challenge, besides I have two more Wiki sites to set up after I get this one perfected and actually know what I am doing. I promise I won't try to take your jobs, honest.

Codi727 (talkcontribs)

OK, I have finally been able to call a Template page into a regular page but the Infobox still doesn't show up.

So I have re-read all the post above again for the um-teenth time and this statement popped out at me.

 You have a call to Template:DIY, which exists. But Template:DIY has a call to Template:Infobox website,
 which doesn't exist. You still need that template.

So is this statement insunuating that I need a total of two Templates and one regular page to get a Infobox to work? Or have I completely gone off in left field again?

Reach Out to the Truth (talkcontribs)

You don't need the DIY template at all. Its contents can be transferred to the page that's currently calling it. You do need Infobox website and several other meta-templates. That's the tricky part, which I'm afraid I'm not very good at explaining.

75.95.141.2 (talkcontribs)

OK, so if you can't tell me, where do I find the documentation that gives me very explicit instructions on how to do this that I need to study to get this thing done?

Reach Out to the Truth (talkcontribs)
Codi727 (talkcontribs)

OK, so there is no instructions or manual telling all the secrets of constructing and using Infoboxes even though Wikipedia is loaded with them?

Sounds like a credible project for an enterprising person with the know how so newbies such as myself don't spend days bugging persons such as yourself and others trying to learn how to manage a particular aspect (Infobox) of Wiki when, in fact, nothing on the MediaWiki website actually tells how it's done!

So, let me know when it's done or can you refer me to a person that knows how to do it and is willing to help me? <:-)

Codi

Codi727 (talkcontribs)

OK, I did finally stick my finger in the right hole apparently. Now when I run Special:Versions, all my extensions show up, however Infobox still not working??????

Codi727 (talkcontribs)
Teratornis (talkcontribs)

Some links that may help:

If the infobox template you want to port contains HTML table code inside conditional magic words (one of the two ways to enable conditional rows in a table), then your destination wiki would have to be running HTML Tidy like Wikipedia does. Some of the infobox templates are not portable to many other wikis for this reason. Since HTML Tidy is often difficult to install, the only practical option is to rewrite the template to not use HTML table code, or find a portable version that someone else has already written. See the above links for more details.

94.45.177.73 (talkcontribs)

You made some Good points there. I did a search on the topic and found most people will agree with trog.qgl.org Wonderful!

69.121.192.224 (talkcontribs)

<code> <div style="float: right"> <table border=1><tr><td> <b>{{{name}}}</b><br> <i>{{{title}}}</i><br> <i>{{{species}}}</i><br> <i>{{{origin}}}</i><br> {{{image}}}<br> {{{height}}}<br> {{{mass}}}<br> {{{resonance}}}<br> </td></tr></table> </div> </code>

69.121.192.224 (talkcontribs)

Disclaimer:
I'm over a Year late, but this needs to be answered SOMEWHERE on the internet.


This is what an Infobox Template Reference looks like Inside your Article Page:


{{Infobox person
|name = Jane
|title = Major
|species = Human
|origin = Earth
|image = [[File:jane.png]]
}}


This is what would be Inside the Infobox Template Page:


<div style="float: right">

<table border=1><tr><td>

<b>{{{name}}}</b><br>
{{{title}}}<br>
<i>{{{species}}}</i><br>
<i>{{{origin}}}</i><br>
{{{image}}}

</td></tr></table>

</div>


Solution:
Your looking for the tag {{{name}}} to put into the Template.


Instructions:
1) Type a new Reference for an Infobox Template anywhere within your Article Page.
2) Click the 'Save Page' button
3) Click on the new Red Link Template:Infobox person (or whatever)
4) Type the correct reference tags: {{{tag}}}
5) Format your new Infobox Template the way you want it to display


Making Infobox Shift to the Right Side:
Inside the Infobox, wrap everything in a DIV Tag and give it a style to Float Right.

<div style="float: right">


My Piece:
For shame that no one could Choose to answer this question with just, I donno, a Real Answer! In Spite of the FUBAR standardization of the Infobox Template, I Strongly recommend just making your own Infobox Templates. It will definitely work, especially if your making a Personal Wiki.


Final:
Sons of the WikiMedia Community, I am Very Disappoint.
Good Luck to those who this helps!

Dan-nl (talkcontribs)
63.142.161.16 (talkcontribs)

Now THESE are instructions! TY for providing this important and extremely useful link! Explains simply and clearly what needs to be done for export and import of Infoboxes. Strange that my earlier google searches didn't include this article.

Congratulation, Dan-nl! You win internet!