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: {{../../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>}}<!--
-->{{ #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***

Revision as of 11:07, 24 July 2007