Template:Subpages3: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
 
(167 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
<!--
      |A{{subpage_style|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subpage|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|variant= {{{{BASEPAGENAME}}/Metadata|info=variant}}|abc= {{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check= {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked= {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by= {{{{BASEPAGENAME}}/Metadata|info=by}}|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3= {{{{BASEPAGENAME}}/Metadata|info=cat3}}|article url= {{{{BASEPAGENAME}}/Metadata|info=article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info=subpage url}}|cluster= {{{{BASEPAGENAME}}/Metadata|info=cluster}}|now= {{{{BASEPAGENAME}}/Metadata|info=now}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info=ToA editor3}}|date= {{{{BASEPAGENAME}}/Metadata|info=date}}|A editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|A editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}} }}
 
      |B{{ #ifexist: {{../../Metadata|info=pagename}}
***The following section 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.***
              |B1 {{subpage_style|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subsubpage|pagename= {{../../Metadata|info=pagename}}|variant= {{../../Metadata|info=variant}}|abc= {{../../Metadata|info=abc}}|cat_check= {{../../Metadata|info=cat_check}}|status= {{../../Metadata|info=status}}|underlinked= {{../../Metadata|info=underlinked}}|cleanup= {{../../Metadata|info=cleanup}}|by= {{../../Metadata|info=by}}|group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3= {{../../Metadata|info=cat3}}|article url= {{../../Metadata|info=article url}}|subpage url= {{../../Metadata|info=subpage url}}|cluster= {{../../Metadata|info=cluster}}|now= {{../../Metadata|info=now}}|ToA editor= {{../../Metadata|info=ToA editor}}|ToA editor2= {{../../Metadata|info=ToA editor2}}|ToA editor3= {{../../Metadata|info=ToA editor3}}|date= {{../../Metadata|info=date}}|A editor= {{../../Metadata|info=A editor}}|A editor2= {{../../Metadata|info=A editor2}}|A editor3= {{../../Metadata|info=A editor3}} }}
 
              |C {{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
-->{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
                    |D{{subpage_style
        |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| namespace={{NAMESPACE}}  
                      |<!--(Article)-->
|subpagename={{SUBPAGENAME}}  
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
|basepagename={{BASEPAGENAME}}
                        |<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
|fullpagename={{FULLPAGENAME}}
                                                    |<!--(signed article)-->
|name={{PAGENAME}}
                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
|type= template
                                              |<!--(Catalog sub-subpage)-->
|pagename= {{{{BASEPAGENAME}}|info=pagename}}
                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
|variant= {{{{BASEPAGENAME}}|info=variant}}
                                                              |<!--(timeline sub-subpage)-->
|abc= {{{{BASEPAGENAME}}|info=abc}}
                                                                            |''The {{tl|subpages}} template is not currently configured to be used on this class of subsubpage. The header and categories are consequently less specific than normal.''[[Category:Unexpected subsubpage]]}} }} }}  
|cat_check= {{{{BASEPAGENAME}}|info=cat_check}}
                          |}} }}
|status= {{{{BASEPAGENAME}}|info=status}}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
|underlinked= {{{{BASEPAGENAME}}|info=underlinked}}
| {{#ifeq:{{NAMESPACE}}|Talk
|cleanup= {{{{BASEPAGENAME}}|info=cleanup}}
|{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}<!--redirect to the article talk page. This depends on a redirect being established from the talk page to the draft talk page after approval for the subsubpage talk page.-->
|by= {{{{BASEPAGENAME}}|info=by}}
                          | {{#ifeq:{{SUBPAGENAME}}|Draft||<!--Talk subpage-->''Please continue discussion at the {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|[[{{TALKSPACE}}:{{BASEPAGENAME}}/Draft|main talk page]]|[[{{TALKSPACE}}:{{BASEPAGENAME}}|main talk page]]}}, or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subpage.''}}
|group = {{{{BASEPAGENAME}}|info=cat1}}
                          |<!--Talk subsubpage--><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">However, it cannot function on sub-subpage talk pages.</font>.'''''</center>''Please continue discussion at [[../../]], or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subsubpage.''}}
|group2= {{{{BASEPAGENAME}}|info=cat2}}
| {{#ifeq:{{NAMESPACE}}|User
|group3= {{{{BASEPAGENAME}}|info=cat3}}
| <!--(User subpage) --><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br>
|article url= {{{{BASEPAGENAME}}|info=article url}}
                        |{{#ifeq:{{SUBPAGENAME}}|Metadata
|subpage url= {{{{BASEPAGENAME}}|info=subpage url}}
              | {{#ifeq:{{NAMESPACE}}|Template talk
|cluster= {{{{BASEPAGENAME}}|info=cluster}}
                                      |<!--(talk metadata page)-->''Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.''
|now= {{{{BASEPAGENAME}}|info=now}}
                                      |<!--(metadata page)--> }}
|ToA editor= {{{{BASEPAGENAME}}|info=ToA editor}}
                              |<!--(User subpage talk)--><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br>}} }} }}
|ToA editor2= {{{{BASEPAGENAME}}|info=ToA editor2}}
| {{#ifeq:{{NAMESPACE}}|Talk
|ToA editor3= {{{{BASEPAGENAME}}|info=ToA editor3}}
| <!--(Article Talk page) -->
|date= {{{{BASEPAGENAME}}|info=date}}
|<center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br> }} }} }}<!--
|A editor= {{{{BASEPAGENAME}}|info=A editor}}
 
|A editor2= {{{{BASEPAGENAME}}|info=A editor2}}
***The following section 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***
|A editor3= {{{{BASEPAGENAME}}|info=A editor3}} }}
 
                    |E {{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
-->{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
                          | F{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
    |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
                          |Gnow enter template subroutine
            |Editor error catch
                                |Hnow enter template subroutine}}
            |{{#ifexist:{{BASEPAGENAME}}
                          |:''Return to [[{{BASEPAGENAME}}]].''<!--User pages and Draft pages resolve to here as well as the talk pages of the subsubpages. This template is not used on templates (except the metadata template, or user pages, so this only applies to the talk:subsubpages--> }} }} }} }}<noinclude>
                      |metadata error catch
{| width=100%
                      |Orphan subpage}} }} }}
|style="background-color: #cccccc"| <nowiki>{{{basepagename|}}}</nowiki>|| {{{basepagename}}}
    |{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
|style="background-color: #cccccc"| <nowiki>{{{fullpagename|}}}</nowiki>|{{{fullpagename}}}
        |{{ {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|style="background-color: #cccccc"| <nowiki>{{{pagename|}}}</nowiki>|| {{{pagename}}}
                      |no metadata template
|-
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
|style="background-color: #cccccc"| <nowiki>{{{name|}}}</nowiki>|{{{name}}}
                        |x0
|style="background-color: #cccccc"| <nowiki>{{{subpagename|}}}</nowiki>|{{{subpagename}}}
                          |no metadata template}} }} }}
|style="background-color: #cccccc"| <nowiki>{{{namespace|}}}</nowiki>|{{{namespace}}}
        | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
|-
          | {{ {{#ifeq:{{NAMESPACE}}|Talk
|style="background-color: #cccccc"| <nowiki>{{{type|}}}</nowiki> || {{{type}}}
          |x0
|style="background-color: #cccccc"| <nowiki>{{{pagename}}}</nowiki>||{{{pagename}}}
          |{{#ifeq:{{NAMESPACE}}|User
|style="background-color: #cccccc"| <nowiki>{{{variant}}}</nowiki>||{{{variant}}}
          |x0
|-
                                |{{#ifeq:{{SUBPAGENAME}}|Metadata
|style="background-color: #cccccc"| <nowiki>{{{abc}}}</nowiki>||{{{abc}}}
                        |{{#ifeq:{{NAMESPACE}}|Template talk
|style="background-color: #cccccc"| <nowiki>{{{cat_check}}}</nowiki>||{{{cat_check}}}
                                                |x0
|style="background-color: #cccccc"| <nowiki>{{{status}}}</nowiki>||{{{status}}}
                                                |no metadata template}}
|-
                                        |x0}} }} }} }}
|style="background-color: #cccccc"| <nowiki>{{{underlinked}}}</nowiki>||{{{underlinked}}}
          | {{ {{#ifeq:{{NAMESPACE}}|Talk
|style="background-color: #cccccc"| <nowiki>{{{cleanup}}}</nowiki>||{{{cleanup}}}
          | no metadata template  
|style="background-color: #cccccc"| <nowiki>{{{by}}}</nowiki>||{{{by}}}
          | x0}} }} }} }} }}<!--
|-
 
|style="background-color: #cccccc"| <nowiki>{{{group}}}</nowiki>||{{{group}}}
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***
|style="background-color: #cccccc"|  ||
 
|style="background-color: #cccccc"|  ||
-->{{{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}} |subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subpage|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|variant= {{{{BASEPAGENAME}}/Metadata|info=variant}}|abc= {{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check= {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked= {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by= {{{{BASEPAGENAME}}/Metadata|info=by}}|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3= {{{{BASEPAGENAME}}/Metadata|info=cat3}}|article url= {{{{BASEPAGENAME}}/Metadata|info=article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info=subpage url}}|cluster= {{{{BASEPAGENAME}}/Metadata|info=cluster}}|now= {{{{BASEPAGENAME}}/Metadata|info=now}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info=ToA editor3}}|date= {{{{BASEPAGENAME}}/Metadata|info=date}}|A editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|A editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}}|basepagenamee={{BASEPAGENAMEE}}|background=ffffff }}<!--
|}
 
{| width=100%
***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***
|style="background-color: #cccccc"| <nowiki>{{SUBPAGENAME}}</nowiki>|| {{SUBPAGENAME}}
 
|style="background-color: #cccccc"| <nowiki>{{FULLPAGENAME}}</nowiki>|| {{FULLPAGENAME}}
-->{{{{ #ifexist: {{../../Metadata|info=pagename}}
|style="background-color: #cccccc"| <nowiki>{{BASEPAGENAME}}</nowiki>|| {{BASEPAGENAME}}
|subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subsubpage|pagename= {{../../Metadata|info=pagename}}|variant= {{../../Metadata|info=variant}}|abc= {{../../Metadata|info=abc}}|cat_check= {{../../Metadata|info=cat_check}}|status= {{../../Metadata|info=status}}|underlinked= {{../../Metadata|info=underlinked}}|cleanup= {{../../Metadata|info=cleanup}}|by= {{../../Metadata|info=by}}|group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3= {{../../Metadata|info=cat3}}|article url= {{../../Metadata|info=article url}}|subpage url= {{../../Metadata|info=subpage url}}|cluster= {{../../Metadata|info=cluster}}|now= {{../../Metadata|info=now}}|ToA editor= {{../../Metadata|info=ToA editor}}|ToA editor2= {{../../Metadata|info=ToA editor2}}|ToA editor3= {{../../Metadata|info=ToA editor3}}|date= {{../../Metadata|info=date}}|A editor= {{../../Metadata|info=A editor}}|A editor2= {{../../Metadata|info=A editor2}}|A editor3= {{../../Metadata|info=A editor3}}|background=ffffff }}
|-
|style="background-color: #cccccc"| <nowiki>{{PAGENAME}}</nowiki>|| {{PAGENAME}}
|style="background-color: #cccccc"| <nowiki>[[/]]</nowiki>|| [[/]]
|style="background-color: #cccccc"| <nowiki>[[../]]</nowiki>|| [[../]]
|-
|style="background-color: #cccccc"| <nowiki>[[../../]]</nowiki>|| [[../../]]
|style="background-color: #cccccc"| <nowiki>{{/}}</nowiki>|| {{/}}
|style="background-color: #cccccc"| <nowiki>{{../}}</nowiki>|| {{../}}
|-
|style="background-color: #cccccc"| <nowiki>{{../../}}</nowiki>|| {{../../}}
|style="background-color: #cccccc"| <nowiki>{{NAMESPACE}}</nowiki>|| {{NAMESPACE}}
|style="background-color: #cccccc"|  ||
|}
</noinclude>

Latest revision as of 23:04, 19 March 2008

The {{subpages}} template is designed to be used within article clusters and their related pages.
It will not function on Template pages.