Template:Volkpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David E. Volk
m (Undo revision 100591281 by David E. Volk (Talk))
imported>David E. Volk
mNo edit summary
Line 37: Line 37:
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{NAMESPACE}}|Talk
  | <!--(Article Talk page) -->
  | <!--(Article Talk page) -->
  |<span style="text-align:center; font-weight:bold; font-style:italic;">The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br/><span style="color:red">It will not function on {{NAMESPACE}} pages</span>.</span>[[Category:Misplaced subpage]] <br/> }} }} }}<!--
  |<span style="text-align:center; font-weight:bold; font-style:italic;">The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br/><span style="color:red">It will not function on {{NAMESPACE}} pages</span>.</span>[[Category:Misplaced subpage]] <br/> }} }} }}


***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. If there is no metadata AND a 'definition only' page the Lemma template is used on the article page. ***


-->{{#ifeq:{{SUBPAGENAME}}|Definition
{{#ifeq:{{SUBPAGENAME}}|Definition
|<!--Adds category for the stand alone subpages in this case definitions-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
|<!--Adds category for the stand alone subpages in this case definitions-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
     |
     |

Revision as of 12:25, 20 October 2009

This documentation is transcluded from Template:Volkpages/doc (edit | history)

This is a template I am currently testing.
Documentation or speedydelete to follow in due course (and if I haven't done this within a week from now, please remind me — thanks!).
David E. Volk 17:53, 20 October 2009 (UTC)

Usage

Place instructions here. Any example code should go in tags like this ..., putting the code where the dots are.

Example

Put an example of the code inside the following tags, where the dots are :

...

Now put the same example code here, without the

tags. This time it will be interpreted to give the normal result of including this code on a CZ page.