Template:When
Jump to navigation
Jump to search
{{#switch:
|¬={{#if: {{#ifeq: | true | dontcat }}{{#ifeq: | no | dontcat }}{{#switch: ¬ | yes | ¬ = | #default = dontcat }}{{#switch: | no = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:When|0|3}} | subsubpage | {{#if:{{#titleparts:Template:When|0|2}} | subpage | basepage }} }} }}
| basepage =
| subpage = dontcat
| subsubpage = dontcat
}}
| only = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:When|0|3}} | subsubpage | {{#if:{{#titleparts:Template:When|0|2}} | subpage | basepage }} }} }}
| basepage = dontcat
| subpage = | subsubpage = }}
}}
| |
{{#switch: {{#ifeq: | false | | {{#ifeq: | yes | | {{#ifeq: | yes | | {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:When }}|0|2}} | | }}
}}
}} }} }} | hide = | #default = {{#ifeq: h0#384!5nea+w9 | | {{#invoke:Namespace detect|main}} | {{#iferror: {{#expr: 1 + {{#invoke:Namespace detect|main}} }}
| {{#invoke:Namespace detect|main}} | }}
}} }}
}}
|SUBST=
}}{{#if:
{{#ifeq: | true | dontcat }}{{#ifeq: | no | dontcat }}{{#switch: ¬ | yes | ¬ = | #default = dontcat }}{{#switch: no | no = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:When|0|3}} | subsubpage | {{#if:{{#titleparts:Template:When|0|2}} | subpage | basepage }} }} }}
| basepage =
| subpage = dontcat
| subsubpage = dontcat
}}
| only = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:When|0|3}} | subsubpage | {{#if:{{#titleparts:Template:When|0|2}} | subpage | basepage }} }} }}
| basepage = dontcat
| subpage = | subsubpage = }}
}}
| |
{{#switch: {{#ifeq: | false | | {{#ifeq: | yes | | {{#ifeq: | yes | | {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:When }}|0|2}} | | }}
}}
}} }} }} | hide = | #default = {{#ifeq: h0#384!5nea+w9 | {{#if:Category:Vague or ambiguous time |[[Category:Vague or ambiguous time {{#if: |from }}]]{{#if: |{{#ifexist:Category:Vague or ambiguous time from | | }} }} }}{{#if:|}}{{#if: |[[ {{#if: |from }}]]{{#if: |{{#ifexist: from | | }} }} }}{{#if:|}}{{#if: |[[ {{#if: |from }}]]{{#if: |{{#ifexist: from | | }} }} }} | {{#invoke:Namespace detect|main}} | {{#iferror: {{#expr: 1 + {{#invoke:Namespace detect|main}} }}
| {{#invoke:Namespace detect|main}} | }}
}} }}
}}{{#if:when?
|[{{#if: |{{{pre-text}}} }}when?{{#if: | {{{post-text}}} }}]|
}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}