Forum:About Template Documentation

hello
 * Note, problem has been resolved(July 14). The most recent question is at the bottom(July 24)

I am trying to have this type of template set up on my wiki, but it does not appear to be working. The wiki I have was created before all the starter features was given. So basically I have to do much of this manually.

What it looks like
 * w:c:gaia:Template:Documentation
 * w:c:gaia:Template:Documentation/doc

What it should look like
 * w:c:testingsandbox:Template:Documentation
 * w:c:testingsandbox:Template:Documentation/doc

This is what was previously on the Documentation page before I edited it. I don't even remember putting this on the wiki, as I usually remember a lot of what I delete and create, even though my history says other wise.

Is this something I have to add on a CSS? Should I contact a staff to (I don't know) install the stater templates for me?

Some information. When I copy/paste Template:Documentation code to an entirely different template, the documentation/doc appears at it should. Is the page cursed?



-- Bunai82 (talk) 02:07, July 9, 2011 (UTC)


 * I don't quite see what the problem is - the template looks like it should and it seems to work when 'noincluded' on a template page. Could you be more precise? — Sovq 06:25, July 9, 2011 (UTC)


 * is the bane of templates. When in doubt, use  around template stuff that you want to be transcluded, but you still want to see on the template page itself. Use   around template stuff you want to only transclude, but don't want to see on the template page (like categories you want applied with the template). Use   only for stuff you want explicitly not transcluded, otherwise you will often get unexpected linebreaks or very confusing wikicode.
 * Here is an example of good template (or doc) structure:

 Some descriptive stuff that you don't want transcluded. Good for simple template documentation. Template stuff to be transcluded. Stuff not to be transcluded, like categories applied to the template page itself, but would be better outside onlyincludes. Stuff only to be transcluded, like categories to be applied to the page the template is transcluded to.
 * For the record, I also don't like transcluded template documentation, because I assume it is for some performance benefit which is negligible for many templates, but makes editing the template documentation overly complicated.
 * -- Fandyllic (talk &middot; contr) 9 Jul 2011 10:50 AM Pacific
 * The "performance benefit" is that with transcluded documentation, the server only needs to recache the template page itself whenever the documentation is updated. Without transcluded documentation, the server needs to recache all pages using the template whenever the documentation is updated. With widely used templates, this can produce quite a server backlog.
 * Ultimately, how large this benefit is depends on how many server resources are dedicated to the wiki in question, how many pages it has and its template structure (whether it uses a lot of intertwined templates etc). For small wikis it's probably negligible while for less popular wikis with a lot of pages it's more significant. -- Porter21 (talk) 07:59, July 11, 2011 (UTC)


 * So I changed
 * To Which seemed to work on the display part of the page. Honestly I don't know how you cannot see the difference between the pages I linked ^_^;;


 * I am not good at understanding css, coding, and templates, so the way I currently have templates set up is actually pretty confusing to me, spent hours some months ago getting them to work and display correctly. -- Bunai82 (talk) 19:23, July 9, 2011 (UTC)
 * I see no difference at all.
 * There are differences in the buttons and in some spacing but that's due to CSS.
 * I just don't see how the 2 templates would work differently in 2 wikis.
 * 20:44, July 9, 2011 (UTC)
 * 20:44, July 9, 2011 (UTC)


 * Do I need to take a screen cap or something? -- Bunai82 (talk) 22:36, July 9, 2011 (UTC)


 * That would probably clear things out. Perhaps your browser or a different .js/.css pages revision makes use see something different than you. — Sovq 07:45, July 10, 2011 (UTC)

Screen cap

 * Here
 * It basically looks like what you see on Wikipedia:Template:Documentation.
 * Switching and from Monobook to Oasis, it seems correct, however that doesn't explain how I am able to see it function on other wikis just fine on Monobook. Since I didn't create the Monobook CSS for the wiki, I don't feel comfortable going in and removing things that could cause a problem.

If anyone has tips on what I should look for on the CSS JS things, that would help. I contacted the creator of the layout but I doubt he will get back to me anytime soon. -- Bunai82 (talk) 22:55, July 10, 2011 (UTC)


 * Interesting, here's what I see on Gaiapedia and here's what I see on the sandbox wiki you linked to on top. That's for Firefox 5.0. Have you tried testing with another browser? — Sovq 07:29, July 11, 2011 (UTC)
 * I still don't know what's going on here, maybe I've been following this discussion when it's too early in the morning or too late at night. :p
 * I'll just point out that the template that is on that first page that was linked is the template that is put in all the wikis that are started in wikia.
 * The code that you pasted is the code from the template from wikipedia.
 * 13:36, July 11, 2011 (UTC)
 * 13:36, July 11, 2011 (UTC)
 * 13:36, July 11, 2011 (UTC)


 * Alright, it seems to be functioning better now. -- Bunai82 (talk) 03:06, July 14, 2011 (UTC)

Documentation width
What do I edit to increase the documentation box width? -- Bunai82 (talk) 14:20, July 24, 2011 (UTC)


 * Remove or change the  properties from the first div tag and set   to any value you want. Also, remember the the actual template is hidden; what's seen by default on the preview page is Template:Documentation/doc, which obviosuly won't change until the actual template page gets changed. — Sovq 07:15, July 25, 2011 (UTC)