Template:Volkpages: Difference between revisions
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}} | ||
|<!--(recipe sub-subpage)--> | |||
| | |''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]]}} }} }} }} }} | ||
|}} }} | |}} }} | ||
| {{#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-->< | |<!--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 | |||
| <!--(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)--> | |<!--(talk metadata page)-->''Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.'' | ||
|<!--(metadata page)--> }} | |<!--(metadata page)--> }} | ||
|<!--(User subpage talk)-->< | |<!--(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) --> | ||
|< | |<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 | ***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) | |||
| | |[[Category:Dabdef Subpages]] | ||
| | | | ||
:<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]] }}| }} | |||
|{{#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}} | ||
| | | | ||
| | | | ||
:<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]] }} | |||
|{{ {{#ifexist:Template:{{BASEPAGENAME}}/Metadata | |||
|{{#ifeq:{{localurl:{{BASEPAGENAME}}}}|{{localurl:{{{{BASEPAGENAME}}/Metadata|info=pagename}}}} | |||
|{{#ifexist:{{BASEPAGENAME}} | |||
|Editor error catch | |||
|Orphan subpage}} | |||
|{{#ifexist:{{BASEPAGENAME}} | |||
|metadata error catch | |||
|x0}} }} | |||
|{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}} | |||
|{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}} | |||
|no metadata template | |||
|{{ #ifexist: {{../../Metadata|info=pagename}} | |||
|x0 | |||
|no metadata template}} }} | |||
|{{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}} | |||
|{{#ifeq:{{NAMESPACE}}|Talk | |||
|x0 | |||
|{{#ifeq:{{NAMESPACE}}|User | |||
|x0 | |||
|{{#ifeq:{{SUBPAGENAME}}|Metadata | |||
|{{#ifeq:{{NAMESPACE}}|Template talk | |||
|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}} | | -->{{{{#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 | |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 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.