Template:Volkpages: Difference between revisions
Jump to navigation
Jump to search
imported>David E. Volk m (Undo revision 100591305 by David E. Volk (Talk)) |
imported>David E. Volk (Dec 7 version of subpages) |
||
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]] | ||
|[[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]] }} | |[[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.*** |
Revision as of 12:10, 20 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.