Template:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 37: Line 37:
***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***
***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***


-->{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
-->{{#ifeq:{{SUBPAGENAME}}|Definition||{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
     |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
     |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
             |Editor error catch
             |Editor error catch
Line 61: Line 61:
           | {{ {{#ifeq:{{NAMESPACE}}|Talk
           | {{ {{#ifeq:{{NAMESPACE}}|Talk
            | no metadata template  
            | no metadata template  
            | x0}} }} }} }} }}<!--
            | x0}} }} }} }} }} }}<!--


***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***

Revision as of 12:21, 8 May 2008

Full documentation for this template can be found at Subpages/Doc.