Test2
From open-support.info
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
- | {{#vardefine: | + | {{ #vardefine:cpag|hogehoge |
+ | }}{{#vardefine:mpag|{{#show:{{#var:cpag}}|?docinfo master page#}} | ||
+ | }}{{#switch:{{{show|}}} | ||
+ | |<!-- BLANK --> | ||
+ | |all | ||
+ | |title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}} | ||
+ | }}{{#if:{{#var:title}} | ||
+ | |<!-- IS BLANK THEN --> | ||
+ | |{{#if:{{#var:mpag}}|{{#vardefine:title|{{#show:{{#var:mpag}}|?book title}} }} }} | ||
+ | }}{{#if:{{#var:title}} | ||
+ | |<!-- IS BLANK THEN --> | ||
+ | |{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }} | ||
+ | }} | ||
}} | }} | ||
- | |||
- |