Forum:Error in pp-templte (wikipedia meta version)

The PP-template from wikipedia i imported (a long time ago) has had a problem when set to small, were the little padlock should show on the page i get an error message see here. I've updated the code from wikipedia on a couple of occasions and looked through the code several times, but canot find why the Icon will not show. see pp-meta for core code

Perhaps a new set of eyes can spot what i've missed. A lot of the wikipedia references / links have been updated to point to wikia but some remain in the sub templates. Note: a lot of the padlock.svg files have been swaped to padlock.png as i canot save svg files.

- BulldozerD11 03:49, April 15, 2010 (UTC)


 * I'm not sure if that's a cause, but there is a line that reads . ;) In general, I find it simply better not to copy templates from Wikipedia; they really overcomplicate theirs and make it adaptation to Wikia very difficult.  The 888th Avatar   (talk)  05:02, April 15, 2010 (UTC)


 * Oh - by the way, I mean Template:Pp-meta. The 888th Avatar   (talk)  05:14, April 15, 2010 (UTC)


 * Thanks Avatar i'll look at that.


 * I would agre about wikipedia templates and you will see me ocasionaly cautionng against there use as well. When i started in wikia I copied some pages that used wikipedi atemplates, so started copying them (which spiraled due to the nested nature) befor i asked for help and discovered that the two sites were not 100% the same (the parser function being the issue). Colapsible nav boxes were my original problem getting the VDE links to function. A work round for Tnavbar was found.


 * Not understanding transclusion also caused problems due to doc pages calling load of templates. By then to unravel and use wikia ones was not realy an option. Also were to find them from was a problem as the biggest wiki sites are geared to gaming and fanon. Template wiki was non existant (and is still rather a secret due to the Hubs issue).


 * The Good side is it teaches you wiki coding & gives a break from content editing. The bad side is that when they ont work they are very hard to track problems down in.


 * - BulldozerD11 02:35, April 16, 2010 (UTC)

Actually, on my home wiki, Avatar Wiki, we did manage to create simple protection icons for the top right of the page. Would that be useful? The 888th Avatar  (talk)  13:11, April 16, 2010 (UTC)


 * Thanks Avatar, that may be a useful substitute, and for implemeting the GA, FA, Start system of rateings etc on a wiki. The use of the template was a consequence of the import of templates and after i began to understand how it worked (i.e its just an image to indicate the pages status) i then started commenting it out / deleting it on pages when importing them. One side effect was i moved it on some pages an it caused a problem as it added spaces / line feeds outside the code block, which in some cases effected the templates operation. The is faulty but the std message box based version works. Every so often i come across it again an look to fix it (the simplest would be to just remove all instances, but that is tedious as i have several thousand templates). I could ask Uberfuzy about a fix but as its not causing major problems I had not bothered him, so just thought id as the experts on here incase any one had seen the problem before or knew how to fix it. BTW - Wikia has added a cut down version of the PP template now in the Starter Wiki or Template Wiki.