Template:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
(add definition category, no metadata then sorts as 1)
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***


-->{{#ifeq:{{SUBPAGENAME}}|Definition||{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
-->{{#ifeq:{{SUBPAGENAME}}|Definition
|[[Category:Definition subpages|{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|{{{{BASEPAGENAME}}/Metadata|info=abc}}|1}}]]
|{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
     |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
     |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
             |Editor error catch
             |Editor error catch

Revision as of 14:32, 9 May 2008

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