Template:Subpages test/doc: Difference between revisions
Jump to navigation
Jump to search
See the tab above for Recipes of Subpages test.
imported>Chris Day (New page: =Documentation of all templates called by the {{tl|Subpages}} template= == List of templates used by the subpages template== ===Core function=== :{{tl|Subpages}} ::Specific task for this t...) |
imported>Chris Day No edit summary |
||
Line 1: | Line 1: | ||
=Documentation of all templates called by the {{tl|Subpages}} template= | =Documentation of all templates called by the {{tl|Subpages test}} template= | ||
== List of templates used by the subpages template== | == List of templates used by the subpages template== | ||
===Core function=== | ===Core function=== | ||
:{{tl|Subpages}} | :{{tl|Subpages test}} | ||
::Specific task for this template include: | ::Specific task for this template include: | ||
::#Adds a comment at the top of any page that cannot use the subpages template. It also places a comment at the top of subpage and subsubpage talk pages encouraging the use of the clusters primary talk page (at either Talk:Article or Talk:Article/Draft depending on the status of approval. | ::#Adds a comment at the top of any page that cannot use the subpages template. It also places a comment at the top of subpage and subsubpage talk pages encouraging the use of the clusters primary talk page (at either Talk:Article or Talk:Article/Draft depending on the status of approval. | ||
Line 90: | Line 90: | ||
|} | |} | ||
==={{tl|Subpages}} template hierarchy=== | ==={{tl|Subpages test}} template hierarchy=== | ||
:* Bulleted templates indicate those that can be used for content. Content can be added to specific pages in a given cluster or added to various combinations of pages. See the [[Template:Subpages/doc#Usage_Summary|usage chart]] below to determine which template is most suitable. | :* Bulleted templates indicate those that can be used for content. Content can be added to specific pages in a given cluster or added to various combinations of pages. See the [[Template:Subpages/doc#Usage_Summary|usage chart]] below to determine which template is most suitable. | ||
:{{tl|Subpages}} Does preliminary error check and places appropriate messages on page if there is a problem such as incorrect pagename or no metadata template. | :{{tl|Subpages}} Does preliminary error check and places appropriate messages on page if there is a problem such as incorrect pagename or no metadata template. | ||
====Places content above subpage template==== | ====Places content above subpage template==== | ||
:{{tl|Subpages}} | :{{tl|Subpages test}} | ||
:*<font color="gray"><nowiki>{{Every page}} Currently empty</nowiki></font> | :*<font color="gray"><nowiki>{{Every page}} Currently empty</nowiki></font> | ||
::{{tl|Subpage style}} | ::{{tl|Subpage style}} | ||
Line 101: | Line 101: | ||
====Places content inside subpage template==== | ====Places content inside subpage template==== | ||
::{{tl|Subpage style}} | ::{{tl|Subpage style test}} | ||
:::{{tl|Subsubpages IN}} | :::{{tl|Subsubpages IN}} | ||
:::*<font color="gray"><nowiki>{{All Subsubpages In}} Currently empty</nowiki></font> | :::*<font color="gray"><nowiki>{{All Subsubpages In}} Currently empty</nowiki></font> | ||
Line 139: | Line 139: | ||
====Places content below template==== | ====Places content below template==== | ||
::{{tl|Subpage style}} | ::{{tl|Subpage style test}} | ||
:::{{tl|Subsubpages}} | :::{{tl|Subsubpages}} | ||
:::*{{tl|All Subsubpages}}<nowiki> [[Category:Sub-subpages|{{{abc|}}}]]</nowiki> | :::*{{tl|All Subsubpages}}<nowiki> [[Category:Sub-subpages|{{{abc|}}}]]</nowiki> |
Revision as of 13:56, 23 February 2009
Documentation of all templates called by the {{Subpages test}} template
List of templates used by the subpages template
Core function
- {{Subpages test}}
- Specific task for this template include:
- Adds a comment at the top of any page that cannot use the subpages template. It also places a comment at the top of subpage and subsubpage talk pages encouraging the use of the clusters primary talk page (at either Talk:Article or Talk:Article/Draft depending on the status of approval.
- Adds error templates to the top of pages. Errors caught include, no metadata page, a misspelled pagename field or a mismatch between the status and approving editor fields (Must have a status of "0" if an approving editor is shown). The tree below resolves such that the 'no metadata template' is only placed on subpages, the article and its talk page and the metadata page. If there is no metadata AND a 'definition only' page the Lemma template is used on the article page.
- Establishes parameters for the ‘subpage style’ template on all pages except subsubpages and their talk pages.
- Establishes parameters for the ‘subpage style’ template on subsubpages.
- The following categories are specifically placed by this template when appropriate:
- Specific task for this template include:
- {{Subpage style}}
- Adds the status bar on the article and all subpages.
- Adds the MAIN ARTICLE tab
- Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not.
- Adds the Definition tab
- Adds the DRAFT tab but only if the article is approved.
- Adds the DEFAULT subpage tabs.
- Adds the OPTIONAL subpage tabs if the page exists.
- These final categories add the All Content and Workgroup Content categories as well as the Workgroup and subgroup tags categories.
- {{Button off2}}
- {{Button on2}}
- {{Optional3}}
- {{Button off2}}
- {{Button on2}}
- {{Default3}}
- {{Button off2}}
- {{Button on2}}
- {{Subpage list}}
- {{Subpage style}}
- {{move}}
- {{Every page}}
- {{Every page below}}
- {{Lemma}}
- {{Editor error catch}} In place to identify a discrepancy between the approval status of the article and the placement of approving editors. Useful reminder for constables who forget to change the status during approval.
- {{No metadata template}} Placed on subpages that have an associated article but no metadata page.
- {{metadata error catch}} Placed on pages in which the metadata pages pagename field has no known article despite the fact that the basepagename does have an article. Possibly due to an error in the pagename or if the basepagename leads to a redirect there was an error while moving the article.
- {{Orphan subpage}} Placed on subpages with no article or metadata page. Also on subpages or templates with no article on the basepagename or the pagename from the metadata page.
- {{Metadata to finish}} Create a todo list on the talk page with an aim to get the metadata templates fully filled out with respect to the status, variant, abc and workgroup. Also used to remind authors to add the definition if needed. Uses the {{Talk Checklist}} to check for the absense of information and place the template. The To-Do list will disappear when all four and the definition are completed.
Color
These four colours are coded for in by fields in the {{subpage list}} template. These colors are all variable to allow changes that might be needed with the skin upgrade.
Button type | field name | designated color | example of the color selected |
---|---|---|---|
For approved article | button on A | C4DFC4 | |
For unapproved article | button on NA | C4D2DF | |
For a button that is not selected | button off | CCCCCC | |
For template background | background | f3f3f3 |
{{Subpages test}} template hierarchy
- Bulleted templates indicate those that can be used for content. Content can be added to specific pages in a given cluster or added to various combinations of pages. See the usage chart below to determine which template is most suitable.
- {{Subpages}} Does preliminary error check and places appropriate messages on page if there is a problem such as incorrect pagename or no metadata template.
Places content above subpage template
- {{Subpages test}}
- {{Every page}} Currently empty
- {{Subpage style}}
- {{Every page below}} Currently empty
Places content inside subpage template
- {{Subpage style test}}
- {{Subsubpages IN}}
- {{All Subsubpages In}} Currently empty
- {{Signed Article Header}}
- {{Catalog Header}}
- {{Timeline Header}}
- {{Tutorial Header}}
- {{Recipe Header}}
- {{Code Header}}
- {{Related Articles Header}}
- {{Other subsubpage Header}}
- {{Metadata header}} Currently empty
- {{All Subpage Talk In}} Currently empty
- {{To Approve Inner}} This template controls whether the draft page is populated or not. It is only populated when the article is approved. Likewise the article talk page is only populated when the article is unapproved.
- {{Checklist22 Unused}}
- {{Checklist22}} Adds checklist to the talk page; reads the info from the metadata template. Also adds the maintenance and definition categories to the talk page.
- {{Unused subpage list}} Adds a list of subpages that have not been used in any particular cluster.
- {{article approved IN}}
- {{Article Specific In}} Currently empty
- {{Approved Article In}} Contains the approved article disclaimer and brief details with respect to the approving editor/s.
- {{draft approved IN}}
- {{All Subpages In}} Currently empty
- {{Draft header}} Containers header text.
- {{TOAPPROVE stuff In}} Currently empty
- {{subpages not draft IN}}
- {{All Subpages In}} Currently empty
- {{Approval header}} Containers header text.
- {{subpage approved IN}}
- {{All Subpage Content In}} Currently empty
- {{Tab header}} Generic header for any article specific subpage designated by the fields tab1, tab2 or tab3 in the metadata.
- {{ {{{subpagename|}}} header}}
- {{TOAPPROVE stuff In}} Currently empty
- {{article not approved IN}}
- {{Article Specific In}} Currently empty
- {{Not Approved Article In}} Adds the following text. "This is a draft article, under development. These unapproved articles are subject to a disclaimer."
- {{TOAPPROVE stuff In}} Currently empty
- {{Checklist22 Unused}}
- {{Subsubpages IN}}
- {{Subpage style test}}
Places content below template
- {{Subpage style test}}
- {{Subsubpages}}
- {{All Subsubpages}} [[Category:Sub-subpages|{{{abc|}}}]]
- {{Signed Article Subsubpage}}
- {{Catalog Subsubpage}}
- {{Timeline Subsubpage}}
- {{Tutorial Subsubpage}}
- {{Recipe Subsubpage}}
- {{Code Subsubpage}}
- {{Related Articles Subsubpage}}
- {{Other Subsubpage}}
- {{metadata2}} Allows the metadata to be viewed without entering edit mode. Also add the Please create the "Talk page" link if talk page is absent.
- {{All Subpage Talk}} Currently empty
- {{To Approve Info}} This template controls whether the draft page is populated or not. It is only populated when the article is approved. Likewise the article talk page is only populated when the article is unapproved.
- {{Talk Always}} Added to the approved article talk page. Adds some of the subpage categories so they are listed by article name only.
- {{Talk Checklist Not Approved Article}}
- {{Talk Always}} Added to the regular (not approved) article talk page. Adds some of the subpage categories so they are listed by article name only.
- {{Talk Checklist}} Controls the addition of the "To Do" list on the talk page and adds the "no approval page" reminder if needed.
- {{Metadata to finish}} adds content to the "To Do" list for finishing the checklist and/or the definition. Adds categories for def needed and metadata to finish as appropriate.
- {{Not Approved Article Talk}} currently empty
- {{Talk_Checklist_Approved_Article}}
- {{Talk Checklist}} See above.
- {{Approved Article Talk}} Currently empty
- {{article approved}}
- {{Article Specific}} This template adds the CZ live category to the article page. It also adds Approved article workgroup and subgroup categories when article is approved. If the talk page is absent it gives a hyperlink and requests Please create the "Talk page". If a recipe subpage exists it will add a comment at the top of the page. See below:
- {{Subsubpages}}
- {{Subpage style test}}
- {{Approved Article}} added __NOEDITSECTION__ to this
- {{draft approved}}
- {{All Subpages}} Currently empty
- {{Draft footer}} Adds the workgroup and subgroup category links at the top of the draft page.
- {{TOAPPROVE stuff}} Contains the To Approve template.
- {{subpages not draft}}
- {{All Subpages}} Currently empty
- {{Approval footer}} If the talk page is absent it gives a hyperlink and requests Please create the "Talk page". Added following [[Category:Approval Subpage|{{{abc|}}}]]
- {{subpage approved}}
- {{All Subpage Content}} [[Category:Subpages|{{{abc|}}}]] and the categories for the workgroup specific extra/optional subpages.
- {{Tab footer}} Generic footer for any article specific subpage designated by the fields tab1, tab2 or tab3 in the metadata. This template adds categories to an article specific subpage.
- {{ {{{subpagename|}}} footer}}
- {{TOAPPROVE stuff}} Contains the To Approve template. As above
- {{article not approved}}
- {{Article Specific}} See above.
- {{Not Approved Article}} added {{Editintro}} to this
- {{TOAPPROVE stuff}} Contains the To Approve template. As above.
inner
All headers used by the Subpages template are also used by Subpages3 template.
- {{Related Articles header}}
- {{Bibliography header}}
- {{ External Links header}}
- {{ Works header}}
- {{ Discography header}}
- {{ Filmography header}}
- {{ Catalogs header}}
- {{ Timelines header}}
- {{ Gallery header}}
- {{ Audio header}}
- {{ Video header}}
- {{ Code header}}
- {{ Tutorials header}}
- {{ Student_Level header}}
- {{ Signed Articles header}}
- {{ Function header}}
- {{ Addendum header}}
- {{ Debate Guide header}}
- {{ Isotopes header}}
- {{ Recipes header}}
outer
Three different templates for adding text or categories immediately below the subpages template.
- {{All Subpage Content}} only on subpages with content, omits the approval page and the draft page. Added [[Category:Subpages|{{{abc|}}}]]
- {{All Subpages}}, includes draft and approval page. Currently empty
- {{All Subpage Talk}} Currently empty
- {{Draft footer}}
- Draft page only. Adds the workgroup and subgroup category links at the top of the draft page.
- {{Related Articles footer}}
- Adds the "what links here" links to the top of the related articles page. And the Related Articles specific categories.
- {{Bibliography footer}}
- Adds the "Please sort and annotate in a user-friendly manner" text. And the bibliography specific categories.
- {{External Links footer}} Currently empty
- {{Works footer}} Currently empty
- {{Discography footer}} Currently empty
- {{Filmography footer}} Currently empty
- {{Catalogs footer}} Currently empty
- {{Timelines footer}} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }} Currently empty
- {{ }}
Approval
- {{Approval header}}
- {{Approval footer}} added following [[Category:Approval Subpage|{{{{BASEPAGENAME}}/Metadata|info=abc}}]]
Metadata view
- {{Metadata2}} allows the metadata to be viewed without entering edit mode.
- {{ }} Currently empty
Inner
- {{Tutorial Header}}
- {{Recipe Header}}
- {{Timeline Header}}
- {{Signed Article Header}}
- {{Catalog Header}}
- {{Code Header}}
- {{Related Articles Header}}
- {{Other subsubpage Header}}, a generic version subsubpages not hardwired into the subpages template. Currently empty
Outer
- {{Other Subsubpage}} Generic one for any subsubpage created outside of the hardwired current three. See error category above to monitor for such instances. If there is a need we can hard wire more of the subpages for subsubpage functionality.
- {{Signed Article Subsubpage}}
- {{All Subsubpages}} [[Category:Sub-subpages|{{{abc|}}}]]
- {{Timeline Subsubpage}}
- {{Catalog Subsubpage}}
- {{Code Subsubpage}}
- {{Tutorial Subsubpage}}
- {{Recipe Subsubpage}}
- {{Related Articles Subsubpage}}
General (used elsewhere)
- {{ }}
- {{Tl}}
- {{ }}
- {{ }}
- {{ }}
- {{ }}
- {{ }}
Usage Summary
A-nA | = Article (not approved) | A | = Approval page | Meta | = Metadata template |
A-nAT | = Article Talk (not approved) | AT | = Approval page Talk | MetaT | = Metadata template Talk |
A-A | = Article (approved) | Sub | = Subpage | USsp | = Unexpected Sub-subpage |
A-AT | = Article Talk (approved) | SubT | = Subpage Talk | USspT | = Unexpected Sub-subpage Talk |
Dft | = Draft | Ssub | = Sub-subpage | ||
DftT | = Draft Talk | SsubT | = Sub-subpage Talk |
Content in this template appears above the subpage template | Specific page type | |||||||||||||||
A-nA | A-nAT | A-A | A-AT | Dft | DftT | A | AT | Sub | SubT | Ssub | SsubT | Meta | MetaT | USsp | USspT | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Every page}} | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X |
Content in these templates appear below the subpage template | Specific page type | |||||||||||||||
A-nA | A-nAT | A-A | A-AT | Dft | DftT | A | AT | Sub | SubT | Ssub | SsubT | Meta | MetaT | USsp | USspT | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Every page below}} | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | |
{{Approved Article}} | X | |||||||||||||||
{{Article Specific}} | X | X | ||||||||||||||
{{Not Approved Article}} | X | |||||||||||||||
{{TOAPPROVE stuff}} | X | X | X | X | X | |||||||||||
{{ | }}X | |||||||||||||||
{{Talk Checklist}} | X | X | ||||||||||||||
{{Talk Always}} | X | X | ||||||||||||||
{{ | }}X | |||||||||||||||
{{All Subpages}} | X | X | X | |||||||||||||
{{Draft footer}} | X | |||||||||||||||
{{All Subpage Content}} | X | |||||||||||||||
{{All Subpage Talk}} | X | X | X | X | ||||||||||||
{{Related Articles footer}} or similar subpage specific footer | X | |||||||||||||||
{{Approval footer}} | X | |||||||||||||||
{{Metadata2}} | X | |||||||||||||||
{{Other Subsubpage}} | X | |||||||||||||||
{{All Subsubpages}} | X | X | ||||||||||||||
{{Catalog Subsubpage}} or similar subpage specific footer | X |
Content in these templates appear inside the subpage template | Specific page type | |||||||||||||||
A-nA | A-nAT | A-A | A-AT | Dft | DftT | A | AT | Sub | SubT | Ssub | SsubT | Meta | MetaT | USsp | USspT | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ | }}X | X | ||||||||||||||
{{Not Approved Article In}} | X | |||||||||||||||
{{Approved Article In}} | X | |||||||||||||||
{{Checklist22}} | X | X | ||||||||||||||
{{Unused subpage list}} | X | X | ||||||||||||||
{{Draft header}} | X | |||||||||||||||
{{ | }}X | X | X | X | X | |||||||||||
{{ | }}X | X | X | |||||||||||||
{{Related Articles header}} or similar subpage specific header | X | |||||||||||||||
{{ | }}X | |||||||||||||||
{{ | }}X | X | X | X | ||||||||||||
{{Approval header}} | X | |||||||||||||||
{{ | }}X | |||||||||||||||
{{Catalog Header}} or similar subsubpage specific header | X | |||||||||||||||
{{Other subsubpage Header}} | X | |||||||||||||||
{{All Subsubpages}} | X | X |