Template:Subpages3: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
 
(273 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="position: absolute; top: 190px; left: -154px;">
<!--
{|align=right width="145px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
|align="top" align="center"|
{|width="145px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"
|align=center|<font size=1>'''Infoset'''</font>
{{ #ifeq: {{#expr: {{#len:{{BASEPAGENAME}}}} > 20 }} | 1 | '''[[{{BASEPAGENAME}}|Main Article]]''' | '''[[{{BASEPAGENAME}}]]''' }}
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Draft|<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>}}<nowiki>


</nowiki>{{ #ifeq: {{Subpage list|button=1C}}|Default|{{subpage_list_row|{{Subpage list|button=1A}}|{{Subpage list|button=1B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{subpage_list_row|{{Subpage list|button=1A}}|{{Subpage list|button=1B}} }} }} }}<nowiki>
***The following section adds a comment at the top of any page that cannot use the subpages template. It also places a comment at the top of subpage and subsubpage talk pages encouraging the use of the clusters primary talk page (at either Talk:Article or Talk:Article/Draft depending on the status of approval.***


</nowiki>{{ #ifeq: {{Subpage list|button=2C}}|Default|{{subpage_list_row|{{Subpage list|button=2A}}|{{Subpage list|button=2B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{subpage_list_row|{{Subpage list|button=2A}}|{{Subpage list|button=2B}} }} }} }}<nowiki>
-->{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
        |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                      |<!--(Article)-->
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
                        |<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                                                    |<!--(signed article)-->
                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                                              |<!--(Catalog sub-subpage)-->
                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                                              |<!--(timeline 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:{{NAMESPACE}}|Talk
|{{#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-->''Please continue discussion at the {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|[[{{TALKSPACE}}:{{BASEPAGENAME}}/Draft|main talk page]]|[[{{TALKSPACE}}:{{BASEPAGENAME}}|main talk page]]}}, or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subpage.''}}
                          |<!--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:{{NAMESPACE}}|Template talk
                                      |<!--(talk metadata page)-->''Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.''
                                      |<!--(metadata page)--> }}
                              |<!--(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
| <!--(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> }} }} }}<!--


</nowiki>{{ #ifeq: {{Subpage list|button=3C}}|Default|{{subpage_list_row|{{Subpage list|button=3A}}|{{Subpage list|button=3B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=3A}}|{{subpage_list_row|{{Subpage list|button=3A}}|{{Subpage list|button=3B}} }} }} }}<nowiki>
***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***


</nowiki>{{ #ifeq: {{Subpage list|button=4C}}|Default|{{subpage_list_row|{{Subpage list|button=4A}}|{{Subpage list|button=4B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=4A}}|{{subpage_list_row|{{Subpage list|button=4A}}|{{Subpage list|button=4B}} }} }} }}<nowiki>
-->{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
    |{{ {{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
            |Editor error catch
            |{{#ifexist:{{BASEPAGENAME}}
                      |metadata error catch
                      |Orphan subpage}} }} }}
    |{{#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}} }} }} }} }}<!--


</nowiki>{{ #ifeq: {{Subpage list|button=5C}}|Default|{{subpage_list_row|{{Subpage list|button=5A}}|{{Subpage list|button=5B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=5A}}|{{subpage_list_row|{{Subpage list|button=5A}}|{{Subpage list|button=5B}} }} }} }}<nowiki>
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***


</nowiki>{{ #ifeq: {{Subpage list|button=6C}}|Default|{{subpage_list_row|{{Subpage list|button=6A}}|{{Subpage list|button=6B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=6A}}|{{subpage_list_row|{{Subpage list|button=6A}}|{{Subpage list|button=6B}} }} }} }}<nowiki>
-->{{{{#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}}|background=ffffff }}<!--


</nowiki>{{ #ifeq: {{Subpage list|button=7C}}|Default|{{subpage_list_row|{{Subpage list|button=7A}}|{{Subpage list|button=7B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=7A}}|{{subpage_list_row|{{Subpage list|button=7A}}|{{Subpage list|button=7B}} }} }} }}<nowiki>
***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***


</nowiki>{{ #ifeq: {{Subpage list|button=8C}}|Default|{{subpage_list_row|{{Subpage list|button=8A}}|{{Subpage list|button=8B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=8A}}|{{subpage_list_row|{{Subpage list|button=8A}}|{{Subpage list|button=8B}} }} }} }}<nowiki>
-->{{{{ #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=ffffff }}
</nowiki>{{ #ifeq: {{Subpage list|button=9C}}|Default|{{subpage_list_row|{{Subpage list|button=9A}}|{{Subpage list|button=9B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=9A}}|{{subpage_list_row|{{Subpage list|button=9A}}|{{Subpage list|button=9B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=10C}}|Default|{{subpage_list_row|{{Subpage list|button=10A}}|{{Subpage list|button=10B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=10A}}|{{subpage_list_row|{{Subpage list|button=10A}}|{{Subpage list|button=10B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=11C}}|Default|{{subpage_list_row|{{Subpage list|button=11A}}|{{Subpage list|button=11B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=11A}}|{{subpage_list_row|{{Subpage list|button=11A}}|{{Subpage list|button=11B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=12C}}|Default|{{subpage_list_row|{{Subpage list|button=12A}}|{{Subpage list|button=12B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=12A}}|{{subpage_list_row|{{Subpage list|button=12A}}|{{Subpage list|button=12B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=13C}}|Default|{{subpage_list_row|{{Subpage list|button=13A}}|{{Subpage list|button=13B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=13A}}|{{subpage_list_row|{{Subpage list|button=13A}}|{{Subpage list|button=13B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=14C}}|Default|{{subpage_list_row|{{Subpage list|button=14N}}|{{Subpage list|button=14B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=14A}}|{{subpage_list_row|{{Subpage list|button=14N}}|{{Subpage list|button=14B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=15C}}|Default|{{subpage_list_row|{{Subpage list|button=15A}}|{{Subpage list|button=15B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{subpage_list_row|{{Subpage list|button=15A}}|{{Subpage list|button=15B}} }} }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{Subpage list|button=16C}}|Default|{{subpage_list_row|{{Subpage list|button=16A}}|{{Subpage list|button=16B}}}}|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{subpage_list_row|{{Subpage list|button=16A}}|{{Subpage list|button=16B}} }} }} }}
|-
|<center><font size=1>''[[CZ:Subpage Pilot|About Infosets]]''</font></center>
|-
|<center><font color="#333333" size=1>[[{{BASEPAGENAME}}/Unused|Unused subpages]]</font></center>
|}
|}</div><noinclude>
 
See use of this template here [[John_Doherty_%28fiddler%29]]
 
==Nuts and bolts==
<pre>
<div style="position: absolute; top: 190px; left: -154px;">
{|align=right width="145px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
|align="top" align="center"|
{|width="145px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"
</pre>
 
The 190 and -154px represent the location of the tempalte relative to the page.
 
The 145 px elements represent the width of the template.

Latest revision as of 00:04, 20 March 2008

The {{subpages}} template is designed to be used within article clusters and their related pages.
It will not function on Template pages.