Template:Optional: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
 
imported>Chris Day
No edit summary
Line 1: Line 1:
{{#ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}} <!--determines if on a signed article. This is important so that the appropriate code is used when the subpages template is placed on a signed article page. -->
{{#ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}} <!--determines if on a signed article. This is important so that the appropriate code is used when the subpages template is placed on a signed article page. -->
     |  {{#ifexist: {{../../Info|info=pagename}}/{{{1}}}
     |  {{#ifexist: {{../../Info|info=pagename}}/{{{1}}}
           |<!--All buttons are off if on a signed article sub-sub-page-->{{Button off}}{{!}} <font size=1>[[{{../../Info|info=pagename}}/{{{1}}}|{{{1}}}]]</font>
           |<!--All buttons are off if on a signed article sub-sub-page--><br>{{@}}<br>{{Button off}}{{!}} <font size=1>[[{{../../Info|info=pagename}}/{{{1}}}|{{{1}}}]]</font>
           |<!-- exit if does not exist --> }}
           |<!-- exit if does not exist --> }}
     | {{#ifexist: {{BASEPAGENAME}} / {{{1}}}
     | {{#ifexist: {{BASEPAGENAME}} / {{{1}}}
           |  {{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}} <!--Determine if button should be on or off -->
           |  {{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}} <!--Determine if button should be on or off -->
               | {{Button on}}  
               | <br>{{@}}<br>{{Button on}}  
               | {{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]]</font>
               | <br>{{@}}<br>{{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]]</font>
           |<!-- exit if does not exist --> }} }}
           |<!-- exit if does not exist --> }} }}

Revision as of 11:08, 1 August 2007