Permanently protected template

Difference between revisions of "Template:Navigation"

From Yugipedia
Jump to: navigation, search
(rearrange links; display both caps variants of {{{Other(2)}}}; add tracking for unsupported {{{mode}}} values (and the "spirit"/"othergame" values); add code to allow {{{name}}} to be completely replaced by {{{1}}} (eventually))
(track all mode values; split Category:Navigation transclusions to be checked (this is years overdue))
Line 77: Line 77:
 
         | type = move
 
         | type = move
 
         | text = '''This page should be [{{fullurl:Special:MovePage/{{FULLPAGENAMEE}}|wpNewTitle={{urlencode:{{ #var: $ns }}:{{ #var: $show-name }}}}&wpReason={{urlencode:per main page}}&wpLeaveRedirect=0}} renamed]''' to "{{ #var: $ns }}:{{ #var: $show-name }}" per its [[{{ #var: $show-name }}|main card article]].<br />After renaming, please null-edit [{{fullurl:{{ #var: $ns }}:{{ #var: $show-name }}|action=edit}} this page], ''and then'' the [{{fullurl:{{ #var: $show-name }}|action=edit}} main card article], to properly update this notice.
 
         | text = '''This page should be [{{fullurl:Special:MovePage/{{FULLPAGENAMEE}}|wpNewTitle={{urlencode:{{ #var: $ns }}:{{ #var: $show-name }}}}&wpReason={{urlencode:per main page}}&wpLeaveRedirect=0}} renamed]''' to "{{ #var: $ns }}:{{ #var: $show-name }}" per its [[{{ #var: $show-name }}|main card article]].<br />After renaming, please null-edit [{{fullurl:{{ #var: $ns }}:{{ #var: $show-name }}|action=edit}} this page], ''and then'' the [{{fullurl:{{ #var: $show-name }}|action=edit}} main card article], to properly update this notice.
       }}[[Category:Navigation transclusions to be checked|N]]<!-- card page doesn't exist or is redirect -->
+
       }}[[Category:((Navigation)) transclusions to be renamed]]<!-- card page doesn't exist or is redirect -->
 
     }}
 
     }}
   }}}}{{ #if: {{{name|¬}}} || [[Category:Navigation transclusions to be checked|P]]<!-- {{{name}}} used but empty -->
+
   }}}}{{ #if: {{{name|¬}}} || [[Category:((Navigation)) transclusions with empty name parameter]]<!-- {{{name}}} used but empty -->
 
   }}{{ #if: {{{Other|}}}{{{other|}}} | [[Category:((Navigation)) transclusions with "other" parameter]]
 
   }}{{ #if: {{{Other|}}}{{{other|}}} | [[Category:((Navigation)) transclusions with "other" parameter]]
 
   }}{{ #if: {{{Other2|}}}{{{other2|}}} | [[Category:((Navigation)) transclusions with "Other2" parameter]]
 
   }}{{ #if: {{{Other2|}}}{{{other2|}}} | [[Category:((Navigation)) transclusions with "Other2" parameter]]
 
   }}{{ #switch: {{ #var: $mode }}
 
   }}{{ #switch: {{ #var: $mode }}
     |                       = <!-- blank or undefined -->
+
     |           = <!-- blank or undefined -->
     | token | nongame | tip = <!-- recognized values -->
+
     | nongame   = [[Category:((Navigation)) transclusions with "nongame" mode value]]
     | spirit               = [[Category:((Navigation)) transclusions with "spirit" mode value]]<!-- find out what, if anything, uses this -->
+
    | othergame = [[Category:((Navigation)) transclusions with "othergame" mode value]]
     | othergame            = [[Category:((Navigation)) transclusions with "othergame" mode value]]<!-- find out what, if anything, uses this -->
+
     | spirit   = [[Category:((Navigation)) transclusions with "spirit" mode value]]
     | #default             = [[Category:((Navigation)) transclusions with unrecognized mode values]]<!-- everything else -->
+
     | tip      = [[Category:((Navigation)) transclusions with "tip" mode value]]
 +
    | token    = [[Category:((Navigation)) transclusions with "token" mode value]]
 +
     | #default = [[Category:((Navigation)) transclusions with unrecognized mode values]]<!-- anything else -->
 
   }}
 
   }}
   | #default<!-- everything else -->    = {{ #switch: {{FULLPAGENAME}}
+
   | #default = {{ #switch: {{FULLPAGENAME}}<!-- all other namespaces -->
 
     | Template:Navigation          | Template:Navigation/doc  | Template:Navigation/sandbox
 
     | Template:Navigation          | Template:Navigation/doc  | Template:Navigation/sandbox
 
     | Template:Navigation/testcases | Template:Navigation2      | Template:Navigation3 = <!-- no maintenance cats for Template:Navigation et al -->
 
     | Template:Navigation/testcases | Template:Navigation2      | Template:Navigation3 = <!-- no maintenance cats for Template:Navigation et al -->
     | #default                      = [[Category:Navigation transclusions to be checked|S{{FULLPAGENAME}}]]
+
     | #default                      = [[Category:((Navigation)) transclusions in the wrong namespace]]
 
   }}
 
   }}
 
}}{{ #if: {{{demo|}}}{{{demo_ns|}}} | [[Category:Navigation demonstrations]]<!-- demo cat -->
 
}}{{ #if: {{{demo|}}}{{{demo_ns|}}} | [[Category:Navigation demonstrations]]<!-- demo cat -->

Revision as of 02:38, 25 December 2017