Difference between revisions of "Template:Chapter"

From Yugipedia
Jump to: navigation, search
({{{page}}}/{{{4}}} handling doesn't rely on SMW and comes after the rest of the logic in the template, so move it after the main body of code, with its own check)
(really, there's not much reason to limit {{{page}}}/{{{4}}} to when the mode is "ref")
Line 37: Line 37:
 
   | #default = <cite>Yu-Gi-Oh! {{ #var: $template:chapter-release }}</cite> {{ #var: $template:chapter-chapter-name }} {{ #var: $template:chapter-number }}
 
   | #default = <cite>Yu-Gi-Oh! {{ #var: $template:chapter-release }}</cite> {{ #var: $template:chapter-chapter-name }} {{ #var: $template:chapter-number }}
 
   }}]]
 
   }}]]
}}{{ #ifeq: {{ lc: {{{3}}} }} | ref | {{ #if: {{{page|}}} | , page #{{{page}}} }}{{ #if: {{{4|}}} | {{;}} {{{4}}} }} }}</span></includeonly><noinclude>{{documentation}}</noinclude>
+
}}{{ #if: {{{page|}}} | , page #{{{page}}} }}{{ #if: {{{4|}}} | {{;}} {{{4}}} }}</span></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 17:47, 27 December 2015