| 第1行: |
第1行: |
| − | <noinclude>{{WIP/auto|until=1700, Aug 27, 2019}}</noinclude> | + | <includeonly>{{#ifeq:<!-- |
| − | {{#ifeq:<!-- | + | //if noinclude=true, disable entirely |
| − | if noinclude=true, disable entirely | + | -->{{lc:{{{noinclude|}}}}}|true||<!-- |
| − | -->{{{noinclude|}}}|true||<!-- | + | //Store NAMESPACENUMBER. if demospaceid exists and is legal, use demospaceid instead |
| − | check for namespace. use ID to reduce ambiguity.
| + | -->{{#vardefine:nsid|{{#iferror:{{#expr:{{{demospaceid|error}}}*0}}|{{NAMESPACENUMBER}}|{{#expr:trunc {{{demospaceid}}}}} }} }}<!-- |
| − | chk:ANY TALK PAGE | + | //Start checking for namespace |
| − | -->{{#ifeq:{{#expr:{{NAMESPACENUMBER}}mod2}}|1|{{{anytalk|}}}| | + | //chk:ANY Talk page if "anytalk" is defined |
| − | {{#switch:{{NAMESPACENUMBER}}<!-- | + | -->{{#ifeq:{{#ifeq:{{{anytalk}}}|{{{anytalk|}}}|{{#expr:{{#var:nsid}}mod2}}|2}}|1|{{{anytalk}}}|<!-- |
| − | chk:MAIN | + | -->{{#switch:{{#var:nsid}}<!-- |
| − | -->0={{{main|}}}<!-- | + | //chk:(MAIN) if "main" is defined |
| − | chk:USER | + | -->| 0{{#ifeq:{{{main}}}|{{{main|}}}||NULL}}= {{{main}}}<!-- |
| − | -->{{#ifeq:{{NAMESPACENUMBER}}|2|{{{user|}}}|<!-- | + | //chk:User if "user" is defined |
| − | chk:Project: not included, add until req'd | + | -->| 2{{#ifeq:{{{user}}}|{{{user|}}}||NULL}}= {{{user}}}<!-- |
| − | chk:MediaWiki: not included, add until req'd | + | //chk:Project if "project" is defined |
| − | chk:Template | + | -->| 4{{#ifeq:{{{project}}}|{{{project|}}}||NULL}}= {{{project}}}<!-- |
| − | -->{{#ifeq:{{NAMESPACENUMBER}}|8|{{{template|}}}|<!-- | + | //chk:File if "file" is defined |
| − | chk:Help | + | -->| 6{{#ifeq:{{{file}}}|{{{file|}}}||NULL}}= {{{file}}}<!-- |
| − | -->{{#ifeq:{{NAMESPACENUMBER}}|10|{{{help|}}}|<!-- | + | //chk:MediaWiki if "mediawiki" is defined |
| − | chk:category | + | -->| 8{{#ifeq:{{{mediawiki}}}|{{{mediawiki|}}}||NULL}}= {{{mediawiki}}}<!-- |
| − | -->{{#ifeq:{{NAMESPACENUMBER}}|12|{{{category|}}}|<!-- | + | //chk:Template if "template" is defined |
| − | check for subpage status. | + | -->|10{{#ifeq:{{{template}}}|{{{template|}}}||NULL}}= {{{template}}}<!-- |
| − | <noinclude>{{doc}}</noinclude> | + | //chk:Help if "help" is defined |
| | + | -->|12{{#ifeq:{{{help}}}|{{{help|}}}||NULL}}= {{{help}}}<!-- |
| | + | //chk:Category if "category" is defined |
| | + | -->|14{{#ifeq:{{{category}}}|{{{category|}}}||NULL}}= {{{category}}}<!-- |
| | + | //does not yet include Modules, etc. since they are not built in |
| | + | -->|#default =<!-- |
| | + | -->{{#switch:{{FULLPAGENAME}}<!-- |
| | + | //check for FULL page name. Ignore entire entry if corresponding pagename is not defined. |
| | + | //Allow 3 entries, but more can be added if there is the need. |
| | + | -->|{{{pagename}}}{{#ifeq:{{{pagename}}}|{{{pagename|}}}||NULLPAGENEVERCHECK}}= {{{page|}}}<!-- |
| | + | -->|{{{pagename2}}}{{#ifeq:{{{pagename2}}}|{{{pagename2|}}}||NULLPAGENEVERCHECK}}= {{{page2|}}}<!-- |
| | + | -->|{{{pagename3}}}{{#ifeq:{{{pagename3}}}|{{{pagename3|}}}||NULLPAGENEVERCHECK}}= {{{page3|}}}<!-- |
| | + | //done checking everything and there was no match. Use "other". |
| | + | -->|#default={{{other|}}}<!-- |
| | + | -->}}<!-- |
| | + | -->}}<!-- |
| | + | -->}}<!-- |
| | + | -->}}</includeonly><noinclude>{{doc}}<!-- |
| | + | //C++ & C# best programmer waifus (滑稽 |
| | + | --></noinclude> |