Template:Subpages4: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 11: Line 11:
***The following code determine if the article name is longer than twenty characters.  If so, main article is used rather than the actual name.  This means huge names are not crunched into the navigation template. At present the the expr functions to determine string length are not functional in CZ.***
***The following code determine if the article name is longer than twenty characters.  If so, main article is used rather than the actual name.  This means huge names are not crunched into the navigation template. At present the the expr functions to determine string length are not functional in CZ.***


-->{{ #ifeq: {{#expr: {{#len:{{BASEPAGENAME}}}} > 20 }} | 1 | '''[[{{BASEPAGENAME}}|Main Article]]''' | '''[[{{BASEPAGENAME}}]]''' }}<br><font size=1>''[[Template:{{BASEPAGENAME}}/Info|Information]]''</font><!--
-->{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|{{ #ifeq: {{#expr: {{#len:{{../../Info|info=pagename}}}} > 20 }} | 1 | '''[[{{../../Info|info=pagename}}|Main Article]]''' | '''[[{{../../Info|info=pagename}}]]''' }}<br><font size=1>''[[Template:{{../../Info|info=pagename}}/Info|Information]]''</font>{{ #ifeq: {{#expr: {{#len:{{BASEPAGENAME}}}} > 20 }} | 1 | '''[[{{BASEPAGENAME}}|Main Article]]''' | '''[[{{BASEPAGENAME}}]]''' }}<br><font size=1>''[[Template:{{BASEPAGENAME}}/Info|Information]]''</font>}}<!--


***The next piece of code adds a Link to the draft page if it exists***
***The next piece of code adds a Link to the draft page if it exists***


-->{{#ifexist:{{BASEPAGENAME}}/Draft|<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>}}<!--
-->{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|{{#ifexist:{{../../Info|info=pagename}}/Draft|<br><font size=1>''[[{{../../Info|info=pagename}}/Draft|Draft Page]]''</font>}}|{{#ifexist:{{BASEPAGENAME}}/Draft|<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>}} }}<!--


***The following code identifies the subpages in the Template:Subpage list that are tagged as Default. It adds those buttons in the numerical sequence regardless of whether the subpage exists or not.  
***The following code identifies the subpages in the Template:Subpage list that are tagged as Default. It adds those buttons in the numerical sequence regardless of whether the subpage exists or not.  
Line 91: Line 91:
|<center><font size=1>''[[CZ:Subpage Pilot|About Clusters]]''</font></center>
|<center><font size=1>''[[CZ:Subpage Pilot|About Clusters]]''</font></center>
|-
|-
|<center><font color="#333333" size=1>[[{{BASEPAGENAME}}/Unused|Unused subpages]]</font></center>
|<center><font color="#333333" size=1>{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|[[{{../../Info|info=pagename}}/Unused|Unused subpages]]|[[{{BASEPAGENAME}}/Unused|Unused subpages]]}}</font></center>
|}
|}
|}<!--
|}<!--
Line 106: Line 106:


}}{{#ifeq:{{NAMESPACE}}:{{PAGENAME}}/Info |Template:{{BASEPAGENAME}}/Info|{{Info}}
}}{{#ifeq:{{NAMESPACE}}:{{PAGENAME}}/Info |Template:{{BASEPAGENAME}}/Info|{{Info}}
}}{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|{{Signed Article Header}}


}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}  
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}  

Revision as of 12:05, 24 July 2007