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
 
(4 intermediate revisions by the same user not shown)
Line 16: Line 16:
                                                                      |<!--(timeline sub-subpage)-->
                                                                      |<!--(timeline sub-subpage)-->
                                                                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Recipes|{{BASEPAGENAME}}
                                                                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Recipes|{{BASEPAGENAME}}
                                                                                        |<!--(Code sub-subpage)-->
                                                                          |<!--(recipe sub-subpage)-->
                                                                                         | {{#ifeq: {{../../Metadata|info=pagename}}/Code|{{BASEPAGENAME}}
                                                                                         |''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]]}} }} }} }} }}
                                                                                |<!--(recipe sub-subpage)-->
                                                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Related Articles|{{BASEPAGENAME}}
                                                                                      |<!--(Related Articles sub-subpage)-->
                                                                                                    |<span style="font-style:italic;">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.</span>[[Category:Unexpected subsubpage]]}} }} }} }} }} }} }}
                            |}} }}
                            |}} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
Line 27: Line 23:
  |{{#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.-->
  |{{#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.-->
                           |{{#ifeq:{{SUBPAGENAME}}|Draft||<!--Talk subpage-->}}
                           |{{#ifeq:{{SUBPAGENAME}}|Draft||<!--Talk subpage-->}}
                           |<!--Talk subsubpage--><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">However, it cannot function on sub-subpage talk pages.</span>.</span>''Please continue discussion at [[../../]], or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subsubpage.''}}
                           |<!--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.''}}
                |{{#ifeq:{{NAMESPACE}}|User  
| {{#ifeq:{{NAMESPACE}}|User
                      | <!--(User subpage) --><span style="text-align:center; font-weight:bold; font-style:italic;">This is a draft in {{NAMESPACE}} space, not yet ready to go to Citizendium's main space, and not meant to be cited. 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 />
| <!--(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>
                         |{{#ifeq:{{SUBPAGENAME}}|Metadata
                         |{{#ifeq:{{SUBPAGENAME}}|Metadata
              | {{#ifeq:{{NAMESPACE}}|Template talk
              | {{#ifeq:{{NAMESPACE}}|Template talk
                                       |<!--(talk metadata page)--><span style="font-style:italic;">Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.</span>
                                       |<!--(talk metadata page)-->''Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.''
                                       |<!--(metadata page)--> }}
                                       |<!--(metadata page)--> }}
                               |<!--(User subpage talk)--><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/>}} }} }}
                               |<!--(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>}} }} }}
  | {{#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/> }} }} }}<!--
  |<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> }} }} }}<!--


***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. ***
***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
-->{{#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}}
    |
      |
    |{{#ifexist:{{BASEPAGENAME}} (disambiguation)
      |{{#ifexist:{{BASEPAGENAME}} (disambiguation)
           |<!--a definition exists at a term that has a disambiguation page but no metadata. A cluster might exist here in the future since it would have priority over other similar terms-->[[Category:Dabdef Subpages]][[Category:All Content]]
           |[[Category:Dabdef Subpages]]  
           |{{#ifexist:{{../../Metadata|info=pagename}}
           |
                |<!--subdefinition page often used for catalogs-->[[Category:Subdefinition]][[Category:All Content]]
:<small>''If moving a cluster see  the [http://en.citizendium.org/wiki/Special:Whatlinkshere/{{FULLPAGENAMEE}} following link] for the metadata template.''</small>[[Category:Definition Only]][[Category:All Content]] }}| }}
                |{{#ifexist:{{../../../Metadata|info=pagename}}
                      |<!--Sub-subdefinition page often used for catalogs-->[[Category:Sub-Subdefinition]][[Category:All Content]]
                      |[[Category:Definition Only]][[Category:All Content]] }}| }} }} }}
|{{#ifeq:{{SUBPAGENAME}}|Related Articles
|{{#ifeq:{{SUBPAGENAME}}|Related Articles
       |<!--Adds category for the stand alone subpages in this case related articles-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
       |<!--Adds category for the stand alone subpages in this case related articles-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
           |
           |
           |[[Category:Related Articles Only]][[Category:All Content]] }}
           |
      |{{#ifeq:{{SUBPAGENAME}}|Masterlist
:<small>''If moving a cluster see  the [http://en.citizendium.org/wiki/Special:Whatlinkshere/{{FULLPAGENAMEE}} following link] for the metadata template.''</small> [[Category:Related Articles Only]][[Category:All Content]] }}
            |<!--Adds category for the stand alone subpages in this case a masterlist subsubpage related articles-->{{#ifexist:{{../../Metadata|info=pagename}}
      |{{ {{#ifexist:Template:{{BASEPAGENAME}}/Metadata
                  |
        |{{#ifeq:{{localurl:{{BASEPAGENAME}}}}|{{localurl:{{{{BASEPAGENAME}}/Metadata|info=pagename}}}}
                  |[[Category:Masterlist Only]][[Category:All Content]] }}
              |{{#ifexist:{{BASEPAGENAME}}
            |{{ {{#ifexist:Template:{{BASEPAGENAME}}/Metadata
                      |Editor error catch
                  |{{#ifeq:{{localurl:{{BASEPAGENAME}}}}|{{localurl:{{{{BASEPAGENAME}}/Metadata|info=pagename}}}}
                      |Orphan subpage}}
                        |{{#ifexist:{{BASEPAGENAME}}
              |{{#ifexist:{{BASEPAGENAME}}
                              |Editor error catch
                      |metadata error catch
                              |Orphan subpage}}
                      |x0}} }}
                        |{{#ifexist:{{BASEPAGENAME}}
        |{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
                              |metadata error catch
              |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                              |x0}} }}
                      |no metadata template
                  |{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
                        |{{#ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                        |x0
                              |{{#ifexist:{{BASEPAGENAME}}/Definition
                          |no metadata template}} }}
                                  |Lemma
              |{{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
                                  |no metadata template}}
                    |{{#ifeq:{{NAMESPACE}}|Talk
                              |{{ #ifexist: {{../../Metadata|info=pagename}}
          |x0
                            |x0
          |{{#ifeq:{{NAMESPACE}}|User
                      |no metadata template}} }}
          |x0
                        |{{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
                                |{{#ifeq:{{SUBPAGENAME}}|Metadata
                              |{{#ifeq:{{NAMESPACE}}|Talk
                        |{{#ifeq:{{NAMESPACE}}|Template talk
                            |x0
                                                |x0
                            |{{#ifeq:{{NAMESPACE}}|User
                                                |no metadata template}}
                          |x0
                                        |x0}} }} }}
                                          |{{#ifeq:{{SUBPAGENAME}}|Metadata
                    |{{#ifeq:{{NAMESPACE}}|Talk
                                |{{#ifeq:{{NAMESPACE}}|Template talk
          | no metadata template  
                                                      |x0
          | x0}} }} }} }} }} }} }}<!--
                                                      |no metadata template}}
                                                |x0}} }} }}
                              |{{#ifeq:{{NAMESPACE}}|Talk
                            | no metadata template  
                            | 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.***


-->{{{{#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}} |subgroup={{{{BASEPAGENAME}}/Metadata|info=sub1}} |subgroup2={{{{BASEPAGENAME}}/Metadata|info=sub2}} |subgroup3={{{{BASEPAGENAME}}/Metadata|info=sub3}} |approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} |background={{Subpage list|button=background}}| tab1={{{{BASEPAGENAME}}/Metadata|info=tab1}}| tab2={{{{BASEPAGENAME}}/Metadata|info=tab2}}| tab3={{{{BASEPAGENAME}}/Metadata|info=tab3}}|speedydelete={{{{BASEPAGENAME}}/Metadata|info=speedydelete}} }}<!--
-->{{{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}} |Volk_subpagestyle|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}} |subgroup={{{{BASEPAGENAME}}/Metadata|info=sub1}} |subgroup2={{{{BASEPAGENAME}}/Metadata|info=sub2}} |subgroup3={{{{BASEPAGENAME}}/Metadata|info=sub3}} |approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} |background={{Subpage list|button=background}}| tab1={{{{BASEPAGENAME}}/Metadata|info=tab1}}| tab2={{{{BASEPAGENAME}}/Metadata|info=tab2}}| tab3={{{{BASEPAGENAME}}/Metadata|info=tab3}} }}<!--


***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***
***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***


-->{{{{ #ifexist: {{../../Metadata|info=pagename}}
-->{{{{ #ifexist: {{../../Metadata|info=pagename}}
|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={{Subpage list|button=background}}|approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} | tab1={{../../Metadata|info=tab1}}| tab2={{../../Metadata|info=tab2}}| tab3={{../../Metadata|info=tab3}}|speedydelete={{../../Metadata|info=speedydelete}} }}{{Every page below}}</includeonly><noinclude>{{TlDoc}}</noinclude>
|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={{Subpage list|button=background}}|approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} | tab1={{../../Metadata|info=tab1}}| tab2={{../../Metadata|info=tab2}}| tab3={{../../Metadata|info=tab3}} }}{{Every page below}}</includeonly><noinclude>{{TlDoc}}</noinclude>

Latest revision as of 10:53, 21 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.