![]() | This is an archive of past discussions on Wikipedia:Template documentation. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Using {{/doc}} instead of {{X/doc}} does have the benefit, that it transcludes the doc page which is relative to the name of the template. So moving the template to another name, say "Y", does still expect that the doc page of Y is at Y/doc and not shared with the doc page of X. So, for now I'm going to change this back at the project page, until there are other arguments. --Ligulem 07:46, 31 August 2006 (UTC)
I have a slight concern over it. I have been playing (for legitimate reasons!) with noincludes etc. and it seems to me that something like:
</noin<noinclude> evil grin </noinclude>clude> rude message here
in the /doc would break this model.
Rich Farmbrough 09:32 1 September 2006 (GMT).
How do i replicate this effect at pt.wikipedia??? thanxs a bunch .. Biasuz 16:33, 3 September 2006 (UTC)
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
instead. --Ligulem 09:12, 18 September 2006 (UTC)Wikipedians do have problems understanding that interwikis (and categories) should go to the doc subpage. They often add interwikis on the main template page instead of on the doc page. I've thus added a comment into the copy/paste reciepe.
However, I'm not happy with that, because it eats up from precious pre-expand include size. If anybody has a better idea to make this pattern less error prone for interwiki adding Wikipedians, please let me know by posting here. --Ligulem 11:41, 23 September 2006 (UTC)
Having a problem with categories in the /doc file (on another site, private sorry I can't provide example). It just doesn't seem to work. I inserted the category command, e.g. [[Category:foo]], but it does not show up as a category on pages where the template is used. All the other documentation appears correctly on the template page itself when it's viewed. Should this always work or does it require a certain version of wikimedia to function correctly?Elf | Talk 22:47, 26 September 2006 (UTC)
Thanks. The comments are so emphatic about catg's not being in the template that I was convinced. (Of course, by having an example of the template's output in the template's documentation, this then puts both the /doc and the template into the category... oh, well...) Elf | Talk 17:32, 27 September 2006 (UTC)
This page is too wide so I'll fix it. -- Chuck Marean 09:31, 14 October 2006 (UTC)
This header places a different notice at the top of the /doc page when viewed directly informing the viewer that there may be broken links because of variables. Any objections to making this the standard header text? It's in action at {{Lorem ipsum}} (/doc), and I've created a template that can be subst'd to include this text at User:Flamurai/Template doc page header.
<noinclude>:''This is the [[Wikipedia:Template doc page pattern|doc page]] for {{tl|{{BASEPAGENAME}}}}. It is not intended to be viewed directly. Therefore, if it uses [[Help:Variable|variable]]s, some links may appear broken. Do not replace these variables with [[hardcoded]] page names or URLs. </noinclude><includeonly>:''This template documentation is [[Wikipedia:Template doc page pattern|transcluded]] from [[{{FULLPAGENAME}}/doc]]'' [<span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}/doc|action=edit}} edit]</span>] </includeonly> |
(This could be an alternative when relative variables are used on the page.)
– flamurai (t) 03:12, 11 November 2006 (UTC)
New idea: Create two templates, then change the template on this page to be something like:
<includeonly>{{Template doc page included}}</includeonly><noinclude>{{Template doc page viewed directly}}</noinclude> |
Where the first template is the current "This template documentation..." and the second would be the new header. I created a new version in a box: User:Flamurai/Template doc page viewed directly This hides the variables and cleans up the top of the page. – flamurai (t) 20:17, 11 November 2006 (UTC)
The first example in the How to do it section seems to have an unmatched number of includeonlys. I thought these needed to be matched? Or can you start includeonly's multiple times? I would have changed it but I am not sure it's an error... Thanks! (this is an interesting technique! I know a template that should use it already.) ++Lar: t/c 11:48, 15 November 2006 (UTC)
Freak seems not to believe in the original research presented here. Since this page here is close to "primary source" material, I suggest you post your concerns here instead of re-inserting {{fact}}. Thank you. --Ligulem 23:52, 16 November 2006 (UTC)
Okay... I'm feeling dense, but I'm trying to get my head around this. What do the <noinclude> and <includeonly> tags acutally do? (ex: such as using them in a userbox template). In laymen terms please. Drcwright 08:11, 16 December 2006 (UTC)
<noinclude> .... </noinclude>
on a page is not included when that page is transcluded on (roughly, "used on" – visit the link for more info) another page. Example:
Template "Blah1"'s code: This is the code for a template named "Blah1" <noinclude>– but this bit of code won't be used! –</noinclude> and this is the end of the code. |
In the code for another page, say an This is an article about blah blah blah, bla-blah blah blah blah... {{Blah1}} Blah bl-blah blah, blah blah blah bla-blah blah... |
–result→ |
This is an article about |
<includeonly> .... </includeonly>
on a page is only included when that page is transcluded ("used on") another page. Example:
Template "Blah2"'s code: This is the code for a template named "Blah2" <includeonly>– and this is the code that's only used when the template is transcluded! – </includeonly> and this is the end of the code. |
result when |
This is the code for a |
---------------THEN:-------------- | ||
---|---|---|
In the code for another page, say an This is an article about blah blah blah, bla-blah blah blah blah... {{Blah2}} Blah bl-blah blah, blah blah blah bla-blah blah... |
—————result→ |
This is an article about |
Hope enough of the above makes sense! Best wishes, David Kernow (talk) 10:02, 16 February 2007 (UTC)
While copying the "Template doc page pattern" page (on 24 April, before it was moved!) and (weeks later, without knowing of the move) the "Template documentation" page to the Genealogy Wikia (with proper acknowledgment, I hope), I noticed that both had similar-looking instructions. (Having only just revisited the one with the long name and seen that it was moved, I can understand why there is some commonality. But I digress.) Each had a few sentences that the other didn't have. And it all looked good, although maybe the material that was unique to the older page has been deliberately removed since. After detailed comparison I merged the two (adding headings and rearranging paragraphs a little) at http://genealogy.wikia.comhttps://demo.azizisearch.com/lite/wikipedia/page/Genealogy:Template_doc_page_pattern and reduced the instructions on "Template documentation" to a mere link to the new merged instructions.
I'd like one of you experts to check that I got everything right. Then I can copy it to here for a wider audience. (Then, of course, one day, I can merge the Genealogy pages to match the new WP page and make the old one a redirect until the seven pages that link to it are changed.)
Thanks to all you marvellous template programmers. I sing your praises here and there!
Robin Patterson 13:43, 29 May 2007 (UTC)
I think that {{template doc}} is a bit to "in your face". It makes the documentation hard to read. It is too colourful and doesn't match the Wikipedia colour scheme. The image is cute but adds to the overall "information stress" of the design. And the horizontal line immediately under the title also is unnecessary. Especially since below that normally is transcluded in the sentence "This documentation is transcluded from Template:X/doc. (edit | history)" surrounded by two horizontal lines. Sure, without all that decoration it looks more boring, but the point is to make the documentation readable, not to pimp or template pages as much as possible. --David Göthberg 10:49, 10 August 2007 (UTC)
style="background-color:#ecfcf4; border:1px solid #aaa;
with style="background-color:transparent; border:none;
, or something like that.) +mt 15:18, 10 August 2007 (UTC)Original: #ecfcf4; | Lighter: #f2fcf7; (½ saturation) | Lighter: #f2f9f4; (more grey) | Blue-er: #ecf8fc; |
Oh, I forgot that most people use LCD screens nowadays. Then more colours are needed. (I use CRT screens.) So don't bother about the colour. The only changes I would like then is that we remove the image and the horizontal border under the {{template doc inline}} header. No other changes needed to make the template much less "invasive". And that should not "break" any of the old pages that only use one of the two templates.
Then it looks like this:
What do you think? --David Göthberg 18:23, 10 August 2007 (UTC)
So lets try with a bigger font size and a divider:
This template bla bla bla...
Nah, I don't think it looks nice with the bigger font size. But I like the divider since the was removed. But 209.244.43.122, you should really consider getting an account and logging in, even though you seem to have a fixed IP. I nearly did not respond to you since you were "merely" an IP user. Most of us have very bad experiences with them and have problems keeping them apart (all IPs look the same to most of us). And only signing with a number instead of a name or nick is very impersonal.
--David Göthberg (talk) 20:00, 14 March 2008 (UTC)
I saw somewhere that someone had redirected the talkpage of a /doc subpage to the talkpage of the template itself. Thus making it so that all talk relating to the template and its documentation ends up on the same talkpage. I liked it so I have started using it myself. For instance, try to click on the "discussion" tab on this page: Template:·/doc.
I suggest that we add that as a recommendation to this guideline.
--David Göthberg 14:27, 21 August 2007 (UTC)
Remember the dot: You removed the {{template doc page transcluded}}
twice and I reverted you twice. So time for me to explain why we still need it.
{{template doc page transcluded}}
adds several things that the {{template doc}}
does not add and in the third case below never can add.
{{template doc}}
on the template page. That is, when only a {{/doc}}
has been used. You wrote in one of your edit comments "This change will go into effect only for new documentation pages which will, per the instructions of this page, use {{template doc}}
". Unfortunately Wikipedia is not that perfect. See, many template pages are locked. And many of us non-admins upgrade old /doc pages according to this how-to guide. But we don't bother about the hassle to write up a {{editprotected}} explanation to get the template page itself updated. You know, many editors don't even know about {{editprotected}} or how to use it. (And the explanations in the editprotected documentation at least did scare me off from using it for a long time until I asked around what to do.) I have seen plenty of /doc pages that have the full new doc headers and footers on the /doc page but just a {{/doc}}
on the locked template page. And often no template that told about the page lock and how to ask for edits to be done.And by the way, why do you do changes on a guide like this without first discussing it on the talk page?
--David Göthberg 00:16, 15 September 2007 (UTC)
I made a new template to simplify the template documentation. That is, to simplify it for those that use this system.
See the description and documentation code examples there. If no one protests I will modify this how-to guide to use this new template instead of the two old ones in some day.
--David Göthberg 08:10, 18 September 2007 (UTC)
Komusou: You seem to be doing a major rework of this page and the templates used to do template documentation. I see that you do edits that break things and your edits show that you don't understand several of the technical details here. And you do all this without discussing it on this talk page first. Also, I disagree with several of the non-technical changes that you have done. Please discuss things first before doing this kind of major overhaul. Changes you do here do affect a lot of pages since people are using this guide all the time, so any mistake you do gets stuck on template pages that gets edited while your mistakes are in the guide.
Unfortunately I don't have the time right now to explain all the details but I'll get back to you. I am very tempted to simply revert all your edits since that would be the quickest fix to get this guide and its templates into working order again.
--David Göthberg 04:08, 26 September 2007 (UTC)
I'd like to draw some attention towards a proposed merge between {{Template doc}} and {{Documentation}}. Comment here: Template talk:Template doc#Merge Template:Documentation and Template:Template doc. +mt 08:11, 7 October 2007 (UTC)
There appears to be a new contender, being {{Documentation, template}}. --AlastairIrvine (talk) 16:09, 9 March 2008 (UTC)
An Italian interwiki bot has been breaking some templates (mostly adding iw in the transcluded section), but also demonstrating how interwiki bots will have trouble with the doc page pattern. Interwikis and iw bots are useful, so IMO this is something to think about. Two thoughts:
— Komusou talk @ 18:00, 11 October 2007 (UTC)
this and the current page bear virtually no resemblance to the purpose of the original page Template doc page pattern page. 'this' itself may have lost some of the information... that is now totally obscured by what is here on "Template documentation".
Someone needs to restore the original content and split the history and original page name[1]. WP:DPP was the original mnemonic shortcut so that can be kept with the resurrected page, but the "Template documentation" page as it currently stands is not the technical method the original page was written to be. If the information is there at all, it is well hidden. I see no link to the talk discussion involving Tim!, CDB, and then Liguleum.
http://en.wikipedia.orghttps://demo.azizisearch.com/lite/wikipedia/page/Wikipedia:Template_doc_page_pattern [Ah, what the hell -- I restored the page from the Meta copy plus a better intro. Let it be the "Here's why we do this" page it was written to be, and you guys do whatever this page does.]
As I was the person pressing for 'displayed' documentation that lead to the (questions of Tim... that lead to the...) development of this method by CBDunkerson (just over a year ago!), I've no problem with you guys standardizing and cleaning up template documentation--it is in fact one of the stated purposes when I started the WP:TSP project.
But I have a major problem that your renamed page lost the reasons for doing the method, and morphed into a spoon-feeding of naif editors, vice a clear method for the technically savvy.
Feel free to hijack that 'TSP' and rename to "template standardization project" or some such, but this former technical reference needs restored. Best regards, // FrankB 21:07, 12 October 2007 (UTC)