Template:Expand View history

imported>PesachZ
(Redo logic for what to display in collapsed section, and added comments. Changed link to view and edit Nugget)
imported>PesachZ
mNo edit summary
Line 18: 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>{{Private|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>
Line 30: Line 30:
         }}<!-- end if newscript -->
         }}<!-- end if newscript -->
       |<!-- not a section and no {{{editlink}}} -->{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
       |<!-- not a section and no {{{editlink}}} -->{{#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>{{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>
           }}<!-- if no subpage don't show any link, so end ifexist  
           }}<!-- 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}}} bevasue 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}} }}} }}
       }}<!-- end if editlink,section -->
       }}<!-- end if editlink,section -->
   }}<!-- end if nt -->
   }}<!-- end if nt -->
{{Collapsible section bottom}}</includeonly><noinclude>{{doc}}</noinclude>
{{Collapsible section bottom}}</includeonly><noinclude>{{doc}}</noinclude>

Revision as of 01:38, 9 July 2015