Template:Documentation/end box: Difference between revisions

From VNDev Wiki
Removed sandbox and testcase pages since they were creating a ton of red links in Special:WantedPages
I figured it out. Please clap.
 
Line 26: Line 26:
       }}<!--  
       }}<!--  
         Add links to /sandbox and /testcases when appropriate:
         Add links to /sandbox and /testcases when appropriate:
   --><!--
   -->{{#switch: {{SUBJECTSPACE}}
      Uncomment this if you can figure out how to not add 2 red links in Special:WantedPages for every single template
 
{{#switch: {{SUBJECTSPACE}}
       | {{ns:User}}
       | {{ns:User}}
       | {{ns:Template}} =  
       | {{ns:Template}} =  
         Editors can experiment in this template's {{
         Editors can experiment in this template's {{
         #ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
         #if:{{exists|{{{sandbox| {{FULLPAGENAME}}/sandbox }}}}}
         | [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">&#40;[{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff]&#41;</small>  
         | [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">&#40;[{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff]&#41;</small>  
         | sandbox <small style="font-style: normal">&#40;[{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror]&#41;</small>  
         | sandbox <small style="font-style: normal">&#40;[{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror]&#41;</small>  
         }} and {{
         }} and {{
         #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
         #if:{{exists|{{{testcases| {{FULLPAGENAME}}/testcases}}}}}
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">&#40;[{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit]&#41;</small>
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">&#40;[{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit]&#41;</small>
         | testcases <small style="font-style: normal">&#40;[{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create]&#41;</small>
         | testcases <small style="font-style: normal">&#40;[{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create]&#41;</small>
         }} pages. <br />
         }} pages. <br />
       }}--><!--
       }}<!--
         Show the cats text, but not  
         Show the cats text, but not  
         if "content" fed or "docname fed" since then it is  
         if "content" fed or "docname fed" since then it is  

Latest revision as of 20:18, 18 June 2022