Template:Expand View history

imported>PesachZ
m (Add check for subpage link if no editlink, section)
imported>Eljefe
m (70 revisions imported)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#if:|{{Collapsible section top|expand=yes}}|{{Collapsible section top}}}}
<includeonly>{{Collapsible section top|{{#if:{{{expand|}}}|expand=yes}}|style={{{style|}}}}}
{{#if:|{{#switch:|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}} {{@|{{#if:||{{SUBPAGENAME:}}}}}} {{#if:||{{#if:
      |
      |{{#if:
        |{{#ifexist:{{#ifeq:{{padleft:|1| }}|/|
                      {{FULLPAGENAME}}
                      }}{{{1}}}
            |[[File:Edit.png|15px|text-top|link={{fullurl:{{#ifeq:{{padleft:|1| }}|/|{{FULLPAGENAME}}}}{{{1}}}|action=edit}}|edit nugget]]}}<!-- end ifexist subpage {{{1}}} -->
        }}<!-- end if {{{1}}} -->
      }}<!-- end if {{{editlink}}} -->}}<!-- end if {{{nt}}} --> {{#switch:|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}}
{{#if:|
 
{{{summary}}}{{clear}}}}|Click Expand for details on {{#if:|this topic|{{SUBPAGENAME:}}}}}}
{{Collapsible section content}}
{{#if:
  |{{red|ERROR: No content was specified}}
  |{{#if:
      |{{#if:
        |{{#ifexist:{{FULLPAGENAME}}
          |<!-- newscript subpage exists, show link to Nugget only, then transclude --><small>{{Private|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Link.png|12px|text-top|link={{#ifeq:{{padleft:|1| }}|/|
                                            {{FULLPAGENAME}}
                                            }}{{{1}}}|link to nugget]]}}</small><br>
{{  }}
          |<!-- newscript subpage doesn't exist, show link to create preload content -->[{{fullurl:{{FULLPAGENAME}}}}/{{urlencode:{{{2}}}|PATH}}?action{{=}}edit&section{{=}}new&preload{{=}}{{DraftLink|Scripts}}/Preload {{Minor Highway|Click here to add your script content}}]
          }}<!-- end ifexist subpage{{{1}}} -->
      |<!-- no {{{newscript}}}, is section or had {{{editlink}}}
-- transclude content (will show red link if didn't exist)
--><br>
{{ {{red|ERROR: No content was specified}}  }}
        }}<!-- end if newscript -->
      |<!-- not a section and no {{{editlink}}} -->{{#ifexist:{{FULLPAGENAME}}
          |<!-- subpage exists, show only edit link --><small>{{Private|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Edit.png|15px|text-top|link={{fullurl:{{#ifeq:{{padleft:|1| }}|/|{{FULLPAGENAME}}}}{{{1}}}|action=edit}}|edit nugget]]}}</small>
          }}<!-- if no subpage don't show any link, so end ifexist
-- then transclude (will show Red if didn't exist) for any page thats not a section or {{{editlink}}}. No check for {{{newscript}}} because all newscript are also section --><br>
{{ {{red|ERROR: No content was specified}}  }}
      }}<!-- end if editlink,section -->
  }}<!-- end if nt -->
{{Collapsible section bottom}}<includeonly>{{#if:{{{expand|}}}|{{Collapsible section top|expand=yes}}|{{Collapsible section top}}}}
{{#if:{{{section|}}}|{{#switch:{{{section|}}}|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}} {{@|{{{2|{{#if:{{{nt|}}}||{{SUBPAGENAME:{{{1|}}}}}}}}}}}} {{#if:{{{nt|}}}||{{#if:{{{editlink|}}}
{{#if:{{{section|}}}|{{#switch:{{{section|}}}|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}} {{@|{{{2|{{#if:{{{nt|}}}||{{SUBPAGENAME:{{{1|}}}}}}}}}}}} {{#if:{{{nt|}}}||{{#if:{{{editlink|}}}
       |
       |
Line 48: Line 11:
{{#if:{{{summary|}}}|
{{#if:{{{summary|}}}|


{{{summary}}}{{clear}}}}|Click Expand for details on {{{2|{{#if:{{{nt|}}}|this topic|{{SUBPAGENAME:{{{1|}}}}}}}}}}}}
{{{summary}}}{{clear}}}}|{{#if:{{{summary|}}}|{{{summary}}}|Click Expand for details on {{{2|{{#if:{{{nt|}}}|this topic|{{SUBPAGENAME:{{{1|}}}}}}}}}}}}}}
{{Collapsible section content}}
{{Collapsible section content}}
{{#if:{{{nt|}}}
{{#if:{{{nt|}}}
Line 55: Line 18:
       |{{#if:{{{newscript|}}}
       |{{#if:{{{newscript|}}}
         |{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
         |{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
           |<!-- newscript subpage exists, show link to Nugget only, then transclude --><small>{{Private|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Link.png|12px|text-top|link={{#ifeq:{{padleft:|1|{{{1|}}} }}|/|
           |<!-- newscript subpage exists, show link to Nugget only, then transclude --><small>{{road|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Link.png|12px|text-top|link={{#ifeq:{{padleft:|1|{{{1|}}} }}|/|
                                             {{FULLPAGENAME}}
                                             {{FULLPAGENAME}}
                                             }}{{{1}}}|link to nugget]]}}</small><br>
                                             }}{{{1}}}|link to nugget]]}}</small><br>
{{ {{{1|}}} }}
{{ {{{1|}}} }}
           |<!-- newscript subpage doesn't exist, show link to create preload content -->[{{fullurl:{{FULLPAGENAME}}}}/{{urlencode:{{{2}}}|PATH}}?action{{=}}edit&section{{=}}new&preload{{=}}{{DraftLink|Scripts}}/Preload {{Minor Highway|Click here to add your script content}}]
           |<!-- newscript subpage doesn't exist, show nothing, preload link will be in summary
          }}<!-- end ifexist subpage{{{1}}} -->
-->       }}<!-- end ifexist subpage{{{1}}} -->
       |<!-- no {{{newscript}}}, is section or had {{{editlink}}}
       |<!-- no {{{newscript}}}, is section or had {{{editlink}}}
-- transclude content (will show red link if didn't exist)  
-- transclude content (will show red link if didn't exist)  
Line 68: Line 31:
       |<!-- not a section and no {{{editlink}}} -->{{#if:{{{1|}}}
       |<!-- not a section and no {{{editlink}}} -->{{#if:{{{1|}}}
|{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
|{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
           |<!-- subpage exists, show only edit link --><small>{{Private|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Edit.png|15px|text-top|link={{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/|{{FULLPAGENAME}}}}{{{1}}}|action=edit}}|edit nugget]]}}</small>
           |<!-- subpage exists, show only edit link --><small>{{road|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Edit.png|15px|text-top|link={{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/|{{FULLPAGENAME}}}}{{{1}}}|action=edit}}|edit nugget]]}}</small>
           }}<!-- if no subpage don't show any link, so end ifexist-->}}<!-- end if {{{1}}}
           }} }}<!-- if no subpage don't show any link, so end ifexist  
-- then transclude (will show Red if didn't exist) for any page thats not a section or {{{editlink}}}. No check for {{{newscript}}} because all newscript are also section --><br>
-- then transclude (will show Red if didn't exist) for any page thats not a section or {{{editlink}}}. No check for {{{newscript}}} because all newscript are also section --><br>
{{ {{{1|{{red|ERROR: No content was specified}} }}} }}
{{ {{{1|{{red|ERROR: No content was specified}} }}} }}

Latest revision as of 10:54, 30 November 2015