Template:Optional: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
(reduce to minimum)
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}}|{{#ifexist: {{../../Info|info=pagename}}/{{{1}}}|<br>{{@}}<br>{{Button off}}{{!}} <font size=1>[[{{../../Info|info=pagename}}/{{{1}}}|{{{1}}}]]</font>|}}| {{#ifexist: {{BASEPAGENAME}}/{{{1}}}|{{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}}|<br>{{@}}<br>{{Button on}}|<br>{{@}}<br>{{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]]</font>|}} }}
    | {{#ifexist: {{../../Info|info=pagename}}/{{{1}}}
          |<!--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 --> }}
    | {{#ifexist: {{BASEPAGENAME}}/{{{1}}}
          | {{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}} <!--Determine if button should be on or off -->
              | <br>{{@}}<br>{{Button on}}  
              | <br>{{@}}<br>{{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]]</font>
          |<!-- exit if does not exist --> }} }}

Revision as of 13:10, 1 August 2007