Changes

From Wazeopedia

Template:Expand

1,121 bytes added, 4 years ago
m
70 revisions imported
<includeonly>{{Collapsible section top}}|{{#if:{{{sectionexpand|}}}|{{#switch:{{{section|}}}|1 expand= {{Eqyes}}|2 style= {{Eq}}{{Eq}}style|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}} {{@|{{{2|{{#if:{{{ntsection|}}}||{{SUBPAGENAME:{{{1|}}}}}}}}}}}} {{#switch:{{{section|}}}|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}}{{#if:{{{summary|}}}| {{{summary}}}{{clear}}}}@|Click Expand for details on {{{2|{{#if:{{{nt|}}}|this topic|{{SUBPAGENAME:{{{1|}}}}}}}}}}}}{{Collapsible section content}}{{#if:{{{nt|}}} |{{{1|{{red|ERROR: No content was specified}} }}} |{{#if:{{{editlink|}}}
|
|{{#if:{{{1|}}}
{{FULLPAGENAME}}
}}{{{1}}}
|<small>{{Private|[ [File:Edit.png|15px|text-top|link={{fullurl:{{#ifeq:{{padleft:|1|{{{1|}}} }}|/| {{FULLPAGENAME}} }}{{{1}}}|action=edit}} Click to |edit this sectionnugget] ]}}</small>&nbsp; }}<!-- end ifexist subpage {{{1}}} -->
}}<!-- end if {{{1}}} -->
}}<!-- end if {{{editlink}}} -->}}<!-- end if {{{nt}}} --> {{#switch:{{{section|}}}|1 = {{Eq}}|2 = {{Eq}}{{Eq}}|3 = {{Eq}}{{Eq}}{{Eq}}|4 = {{Eq}}{{Eq}}{{Eq}}{{Eq}}|{{Eq}}{{Eq}}{{Eq}}{{Eq}}{{Eq}}}}{{#if:{{{summary|}}}| {{{summary}}}{{clear}}}}|{{#if:{{{summary|}}}|{{{summary}}}|Click Expand for details on {{{2|{{#if:{{{nt|}}}|this topic|{{SUBPAGENAME:{{{1|}}}}}}}}}}}}}}{{Collapsible section content}}{{#if:{{{nt|}}} |{{{1|{{red|ERROR: No content was specified}} }}} |{{#if:{{{editlink|}}}{{{section|}}} |{{#if:{{{newscript|}}}
|{{#ifexist:{{FULLPAGENAME}}{{{1|}}}
|<!-- newscript subpage exists, show link to Nugget only, then transclude --><small>{{Privateroad|This content is transcluded from a [[Waze:Wazeopedia #Nuggets|nugget]] source [[File:Link.png|12px|text-top|link={{#ifeq:{{padleft:|1|{{{1|}}} }}|/| {{FULLPAGENAME}} }}{{{1}}}|Direct link to nugget]]}}</small><br>{{ {{{1|}}} }} |[<!-- newscript subpage doesn't exist, show nothing, preload link will be in summary --> }}<!-- end ifexist subpage{{{1}}} --> |<!-- no {fullurl:{{FULLPAGENAMEnewscript}}}, is section or had {{{editlink}}}/-- transclude content (will show red link if didn't exist) --><br>{{ {{{1|{{urlencodered|ERROR:No content was specified}} }}} }} }}<!-- end if newscript --> |<!-- not a section and no {{{2editlink}}}-->{{#if:{{{1|PATH}}?action}|{{#ifexist:{{=FULLPAGENAME}}edit&section{{={1|}}}new&preload |<!-- 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|}}} }}|/|{{DraftLink|ScriptsFULLPAGENAME}}}}/Preload {{Minor Highway{1}}}|Click here to add your script contentaction=edit}}|edit nugget]]}}</small> }} }}<!-- if no subpage don't show any link, so end ifexist subpage-- then transclude (will show Red if didn't exist) for any page thats not a section or {{{editlink}}}. No check for {{{1newscript}}} because all newscript are also section --> |<br>{{ {{{1|{{red|ERROR: No content was specified}} }}} }} }}<!-- end if {{{newscript}}} editlink,section --> }}<!-- end if {{{nt}}} -->
{{Collapsible section bottom}}</includeonly><noinclude>{{doc}}</noinclude>