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
 
(22 intermediate revisions by the same user not shown)
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. -->
{{#ifexist: {{../../Metadata|info=pagename}}
    | {{#ifexist: {{../../Info|info=pagename}}/{{{1}}}
        |{{#ifexist: {{../../Metadata|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>
                |{{Button off}}{{!}} <font size=1>[[{{../../Metadata|info=pagename}}/{{{1}}}|{{{1}}}]] [[CZ:{{{1}}}|&nbsp;#]]</font>
          |<!-- exit if does not exist --> }}
                |}}
    | {{#ifexist: {{BASEPAGENAME}}/{{{1}}}
        |{{#ifexist: {{{{BASEPAGENAME}}|info=pagename}}/{{{1}}}
          | {{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}} <!--Determine if button should be on or off -->
                      |{{Button off}} {{!}} <font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}/{{{1}}}|{{{1}}}]] [[CZ:{{{1}}}|&nbsp;#]]</font>   
              | <br>{{@}}<br>{{Button on}}  
                      | {{#ifexist: {{BASEPAGENAME}}/{{{1}}}
              | <br>{{@}}<br>{{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]]</font>
                              |{{ #ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/{{{1}}}
          |<!-- exit if does not exist --> }} }}
                                      |{{Button on}}
                                      |{{Button off}}}} {{!}} <font size=1>[[{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]] [[CZ:{{{1}}}|&nbsp;#]]</font>
                              | }} }} }}

Latest revision as of 15:58, 15 August 2007