Template talk:Documentation subpage

message: This template is part of the  template set. The  merge proposal was discussed and decided here. – Conrad T. Pino 07:15, 7 November 2007 (UTC)
thread_title:  Merge into Template:Documentation subpage 

message: User:PEJL reported an extra blank line at WP:SONG#Infobox between "This documentation is transcluded from ..." line and the "Code" line. The extra line was caused by the combination of  and .  User:Patrick added new lines to  to deal with other issues and  was already emitting some itself.  The prior count was low enough to not matter but 3 consecutive new lines generate
  
in the HTML stream which I saw in test cases. I edited  to emit less and the extra line was elminated. My examination of the HTML looked clean after  ending </div>. – Conrad T. Pino 08:11, 7 November 2007 (UTC)
thread_title:  New lines removed 

message: e.g.  is sorted under "T" instead of "M". --FordPrefect42 (talk) 11:35, 10 February 2008 (UTC)
thread_title:  Defaultsort does not work 

message: Template:Documentation subpage#Functions states that this template places /doc subpages (into which it is transcluded) into category 'Documentation subpages'.  In fact, this template places such subpages into one of the 'SUBJECTSPACE documentation' categories, e.g. .  (A similar claim is made by .)  --AlastairIrvine (talk) 15:08, 18 March 2008 (UTC)
replies: text: Fixed.--Patrick (talk) 16:31, 18 March 2008 (UTC)
thread_title:  Section 'Functions' is incorrect regarding category 

message: Currently, when this template is used from the  or  space (i.e. :Example/Template/doc), it ouputs:
This is a documentation subpage for :Example/Template (see that page for the  itself).
It contains usage information, categories and other content that is not part of the original .
It should be changed to:
This is a documentation subpage for :Example/Template (see that page for the  itself).
It contains usage information, categories and other content that is not part of the original .
Given the example (:Example/Template/doc), :Example/Template is not the user page. It is the user's user template page.
I have also added the ability for this template to accept two parameters () allowing the user to specify what text they'd like to use instead. If neither parameters are specified, the template will automatically use "user template" and "user template page" when used on pages on the  or  space. If that isn't even the case, it will continue on with the original code that was there (i.e. whatever the  is).
Just to note, this has been tested on my own personal template sandbox (User:Lightsup55/Template Sandbox) and an example /doc subpage (User:Lightsup55/Template Sandbox/doc).
So with that, please change this:
{{#if:{{{Original-recipe|}}}{{{Orig|}}}
|<!-- reconstruction of original  Template:Template doc page pattern (now the redirected to " Template:Documentation subpage") template... ca mid-November 2007 -->
<table  class="messagebox" style="line-height:1.1em;" style=" background:#f9f9b7;">
<tr> <td rowspan="3" style="width:60px;text-align:center;" > [[Image:Edit-paste.svg|40px]]</td>
<td> This is the [[Wikipedia:Template documentation|template documentation]]<!--
--> page for [[{{NAMESPACE}}:{{{1|{{BASEPAGENAME}}}}}]].</td></tr>
<tr><td><small>This page may not be intended to be viewed directly. <br/
>Links using [[Help:Variable|variable]]s may appear broken; do not replace these with [[hardcoded]] page names or URLs.</small></td></tr>
</table>{{#if:{{{inhib|x}}}{{{inhibit|}}}|<!-- skip --->|<includeonly>[[Category:Template documentation|{{PAGENAME}}]]</includeonly>
}}<!-- Please retain the above original template... 
There are templates formulated to [[WP:DPP]] that need this.
Of course, if you all want to start updating all the interwiki exported templates, go on making things more incompatible... queries to User:Fabartus.
--->
|<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  | <!-- doc page -->
</includeonly>{{
    #ifeq: {{{doc-notice|show}}} | show
    | {{mbox
      | type = notice
      | image = none
      | text = 
This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}} <small>(see that page for the {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }} itself)</small>.<br />It contains usage information, [[Wikipedia:Categories|categories]] and other content that is not part of the original {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}. 
      }}
    }}{{DEFAULTSORT:{{PAGENAME}}}}{{
    #if: {{{inhibit|}}}
    | <!-- skip -->
    | [[Category:{{
      #if: {{SUBJECTSPACE}}
      | {{SUBJECTSPACE}}
      | Article
    }} documentation<noinclude>| </noinclude>]]
  }}<includeonly>
| <!-- if not on a /doc subpage, do nothing -->
}}</includeonly><noinclude>
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
}}
To this:
{{#if:{{{Original-recipe|}}}{{{Orig|}}}
|<!-- reconstruction of original  Template:Template doc page pattern (now the redirected to " Template:Documentation subpage") template... ca mid-November 2007 -->
<table  class="messagebox" style="line-height:1.1em;" style=" background:#f9f9b7;">
<tr> <td rowspan="3" style="width:60px;text-align:center;" > [[Image:Edit-paste.svg|40px]]</td>
<td> This is the [[Wikipedia:Template documentation|template documentation]]<!--
--> page for [[{{NAMESPACE}}:{{{1|{{BASEPAGENAME}}}}}]].</td></tr>
<tr><td><small>This page may not be intended to be viewed directly. <br/
>Links using [[Help:Variable|variable]]s may appear broken; do not replace these with [[hardcoded]] page names or URLs.</small></td></tr>
</table>{{#if:{{{inhib|x}}}{{{inhibit|}}}|<!-- skip --->|<includeonly>[[Category:Template documentation|{{PAGENAME}}]]</includeonly>
}}<!-- Please retain the above original template... 
There are templates formulated to [[WP:DPP]] that need this.
Of course, if you all want to start updating all the interwiki exported templates, go on making things more incompatible... queries to User:Fabartus.
--->
|<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
  | <!-- doc page -->
</includeonly>{{
    #ifeq: {{{doc-notice|show}}} | show
    | {{mbox
      | type = notice
      | image = none
      | text = 
This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}} <small>(see that page for the {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template | {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }}}}}} itself)</small>.<br />It contains usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. 
      }}
    }}{{DEFAULTSORT:{{PAGENAME}}}}{{
    #if: {{{inhibit|}}}
    | <!-- skip -->
    | [[Category:{{
      #if: {{SUBJECTSPACE}}
      | {{SUBJECTSPACE}}
      | Article
    }} documentation<noinclude>| </noinclude>]]
  }}<includeonly>
| <!-- if not on a /doc subpage, do nothing -->
}}</includeonly><noinclude>
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
}}
Thanks. --Lightsup55 ( T | C ) 22:59, 7 February 2009 (UTC)
replies: text: Why not just call everything a template? And what's up with the "article" case? This template should never be used in the mainspace. --- RockMFR 05:24, 9 February 2009 (UTC)
replies: text: The whole "article" thing wasn't my idea. It was there already, so don't look at me. But yeah... this shouldn't ever be used in the article namespace. Although I do agree with you, keep in mind that "templates" (not to be confused with pages that are just transcluded on another page, such as Wikipedia:Articles for deletion/Article name transcluded on the log page for the day when it was created) are generally found in the  and  namespaces. --Lightsup55 ( T | C ) 06:33, 9 February 2009 (UTC)

text: Ruslik (talk) 12:47, 9 February 2009 (UTC)
thread_title:  "user template" instead of just "user" 

message: Hi, in the above template's usage, the "*" in the template's name is not reading as a nowiki, instead it's making a bullet, that cancels out the link back to the main template page. Please help and fix this! Thanks --Funandtrvl (talk) 18:06, 26 June 2009 (UTC)
replies: text: I think. — Martin (MSGJ · talk) 18:37, 26 June 2009 (UTC)
thread_title: Glitch at [[:Template:*mp/doc]]

message: Please update this redirect: categories to: categories  Thanks  --Funandtrvl (talk) 18:40, 14 July 2009 (UTC)
replies: text: Done - Rjd0060 (talk) 20:09, 14 July 2009 (UTC)
thread_title:  Minor redirected link update 

message: Slightly ambiguous heading, but I am looking for a template to display at the top of /doc pages which are designed for categories and interwiki links rather than documentation. There are a few templates around which will transclude /doc for this purpose but do not encourage any specific documentation to be written. (Often it's a series of templates which are centrally documented.) A few spring to mind:
*Template:Asbox
*Template:Flag template documentation
*Template:Category interwiki (I created this one)
I'm wondering if it would be preferable to adapt this template, probably by feeding a parameter, or if it would be easier to write a new template. — Martin (MSGJ · talk) 19:31, 1 February 2010 (UTC)
replies: text: I'm not sure we need a whole new template.  Perhaps all that needs to be done is make the "usage information, " and "and other content" strings optionally disabled (i.e. so that this template reads "It contains categories and interlanguage links that are not part of the original ...".  But I like those /doc pages to display something, versus only having the .... material and nothing else. — Andrwsc (talk · contribs) 19:41, 1 February 2010 (UTC)
replies: text: Okay, I agree we can adapt this one. But the first line would need to be changed as well because "This is a documentation subpage" makes no sense if the page is not for documentation ... — Martin (MSGJ · talk) 21:11, 1 February 2010 (UTC)
thread_title:  When there is no documentation 

message: Is there really anything still using this deprecated style from three years ago? The comments mention it being for WP:DPP, but that just redirects to , and some of the other commentary leads me to believe it actually concerns Wikipedia:WikiProject template sharing, which has been inactive for some time. Would anyone object to finally simply removing this? 「ダイノガイ千？！」? · Talk⇒Dinoguy1000 21:15, 13 August 2010 (UTC)
replies: text: I wondered about this as well. I am imagine it could be safely removed now. — Martin (MSGJ · talk) 21:43, 13 August 2010 (UTC)

text: The tracking category was still empty after three days (more than long enough for the job queue to have cleared), so I went ahead and removed the "original-recipe" code... Feel free to yell at me if I somehow managed to muck it up. =) 「ダイノガイ千？！」? · Talk⇒Dinoguy1000 23:35, 21 August 2010 (UTC)
thread_title:  Original recipe? 

message: Please, update interwiki from Russian Wikipedia: ru:Шаблон:Docpage , thanks. Andrew M. Vachin (talk) 20:02, 31 October 2010 (UTC)
thread_title:  Update interwiki 

message: "(see that page for the template itself)" seems redundant next to a wikilink to the parent page. Please delete it. If there are objections, I'd welcome a reversion and discussion. --Bsherr (talk) 21:08, 12 November 2010 (UTC)
replies: text: As no one has opposed this, I have made the edit. — Martin (MSGJ · talk) 09:36, 14 November 2010 (UTC)
thread_title:  Redundant? 

message: Down near the very bottom of this template page, I see something like this:
Meta-Wiki  ancestor:
* meta:Template:Documentationen:Template:Documentation subpage
Of course, that last link, being a self link, isn't actually rendered as a link there, but is instead just bold text. Unfortunately, I'm having trouble seeing where the last link comes from...
* Template:Documentation/see also has everything prior to that, but then ends with a <nowiki>.
* Template:Documentation subpage/doc might do it.
* And so might Template:Documentation subpage. (Or even Template:Documentation, for all I know!)
Very confusing.
—SamB (talk) 22:53, 7 June 2011 (UTC)
replies: text: — Martin (MSGJ · talk) 12:38, 8 June 2011 (UTC)
thread_title:  Small error at bottom of rendered page 

message: This template is used on nine pages in the portal space, which are then added to the non-existent category Portal documentation. It's not clear to me that this category is needed; therefore, can the template be changed to prevent the addition of portal doc pages to the non-existent cat? Decstop (talk) 04:06, 17 October 2011 (UTC)
replies: text: Makes sense. I also took out "Article documentation" - because this would never be used in article space! — Martin (MSGJ · talk) 10:00, 17 October 2011 (UTC)
replies: text: Thank you Decstop (talk) 02:44, 18 October 2011 (UTC)

text: I got impatient and went ahead with this. I also had a little reorganisation of the category structure for template documentation. — Martin (MSGJ · talk) 21:29, 17 October 2011 (UTC)
thread_title:  Template adds portal doc pages to a non-existent cat 

message: Replace: 
<includeonly>[[Category:{{
      #switch: {{SUBJECTSPACE}}
      | Template  = Template
      | User      = User
      | #default  = Wikipedia
    }} documentation pages]]</includeonly>

with
<includeonly>{{#ifexist:{{BASEPAGENAME}}|[[Category:{{
      #switch: {{SUBJECTSPACE}}
      | Template  = Template
      | User      = User
      | #default  = Wikipedia
    }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>

Purpose: to check to make sure the page that is being documented actually exists. — Train2104 (talk • contribs) 21:17, 17 December 2011 (UTC)
replies: text: Done Sensible. Anomie⚔ 04:09, 19 December 2011 (UTC)
replies: text: That actually needed to be : rather than  , so I've fixed it. -- WOSlinker (talk) 07:54, 19 December 2011 (UTC)
thread_title:  Edit request 

message: Please update the template indicating the interwikis are now added in Wikidata. --Vivaelcelta {discussion  ·  contributions} 13:47, 6 March 2013 (UTC)
replies: text: Please, propose a specific change. Ruslik_Zero 19:02, 6 March 2013 (UTC)
replies: text: I'm guessing that something such as Template:Documentation subpage/sandbox would do. -- WOSlinker (talk) 19:22, 6 March 2013 (UTC)
thread_title:  interwikis to Wikidata 

message: I believe :Category:Documentation subpages without corresponding pages shouldn't include user pages and propose to limit it to template and module namespaces. I'll leave this here and implement it if noone objects. ‑‑Trialpears (talk) 10:56, 16 January 2020 (UTC)
thread_title:  [[:Category:Documentation subpages without corresponding pages]] 

message: Please explain the purpose and function of . 
Currently in the documentation, text1 appears to do nothing, so the approach of letting the example explain itself is not sufficient. CapnZapp (talk) 14:44, 27 October 2020 (UTC)
thread_title:  Text customization (again) 

message: You are invited to join the discussion at MediaWiki talk:Scribunto-doc-page-header § Category:Module documentation pages.  —⁠andrybak (talk) 09:27, 14 May 2024 (UTC)
thread_title:  Discussion at [[MediaWiki talk:Scribunto-doc-page-header#Category:Module documentation pages]]