Template:Expand View history

imported>PesachZ
(tried to space for readability)
imported>PesachZ
m (only show edit link if page exists)
Line 9: Line 9:
   |{{#if:{{{editlink|}}}
   |{{#if:{{{editlink|}}}
       |
       |
       |<small>{{Private|[ [{{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/|
       |{{#ifexist:{{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/|
        {{FULLPAGENAME}}
                              {{FULLPAGENAME}}
        }}{{{1}}}|action=edit}} Click to edit this section] ]}}</small>
                              }}{{{1}}}
      }}{{#if:{{{newscript|}}}
         |{{#if:{{{1|}}}
         |{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
             |<small>{{Private|[ [{{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/|
             |<small>{{Private|[[{{{1}}}|Direct link to nugget]]}}</small> {{ {{{1|}}} }}
                                            {{FULLPAGENAME}}
            |[{{fullurl:{{FULLPAGENAME}}}}/{{urlencode:{{{2}}}|PATH}}?action{{=}}edit&section{{=}}new&preload{{=}}{{DraftLink|Scripts}}/Preload {{Minor Highway|Click here to add your script content}}]
                                            }}{{{1}}}|action=edit}} Click to edit this section] ]}}</small>&nbsp;
             }}
             }}
        |{{ {{{1|{{red|ERROR: No content was specified}} }}} }}
         }}
         }}
      }}{{#if:{{{newscript|}}}
          |{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
            |<small>{{Private|[[{{{1}}}|Direct link to nugget]]}}</small><br>{{ {{{1|}}} }}
            |[{{fullurl:{{FULLPAGENAME}}}}/{{urlencode:{{{2}}}|PATH}}?action{{=}}edit&section{{=}}new&preload{{=}}{{DraftLink|Scripts}}/Preload {{Minor Highway|Click here to add your script content}}]
            }}
          |<br>{{ {{{1|{{red|ERROR: No content was specified}} }}} }}
          }}
   }}
   }}
{{Collapsible section bottom}}</includeonly><noinclude>{{doc}}</noinclude>
{{Collapsible section bottom}}</includeonly><noinclude>{{doc}}</noinclude>

Revision as of 18:29, 6 July 2015