Difference between revisions of "Template:Episode buttons"

From Semantic Stargate Wiki
Jump to navigation Jump to search
(Created page with "{{Buttons | frame = no <!-- | frame border = | frame background = | buttons border = | buttons background = | background selec...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Buttons
+
<includeonly>{{#ifeq: {{NAMESPACE}} | Category | {{#vardefine: images | {{#sub:{{PAGENAME}}|12}} }} }}</includeonly>{{Buttons
 
| frame                  = no
 
| frame                  = no
 
<!-- | frame border          =  
 
<!-- | frame border          =  
Line 9: Line 9:
  
 
| button-1              = Episode
 
| button-1              = Episode
| url-1                  = Episode:{{{1|{{PAGENAME}}}}}
+
| url-1                  = Episode:{{#ifeq: {{NAMESPACE}} | Category | {{#var: images }} | {{{1|{{PAGENAME}}}}} }}
 
| image-1                =  
 
| image-1                =  
  
 
| button-2              = Credits
 
| button-2              = Credits
| url-2                  = Credits:{{{1|{{PAGENAME}}}}}
+
| url-2                  = Credits:{{#ifeq: {{NAMESPACE}} | Category | {{#var: images }} | {{{1|{{PAGENAME}}}}} }}
 
| image-2                =  
 
| image-2                =  
  
 
| button-3              = Transcript  
 
| button-3              = Transcript  
| url-3                  = Transcript:{{{1|{{PAGENAME}}}}}
+
| url-3                  = Transcript:{{#ifeq: {{NAMESPACE}} | Category | {{#var: images }} | {{{1|{{PAGENAME}}}}} }}
 
| image-3                =  
 
| image-3                =  
  
 
| button-4              = Images
 
| button-4              = Images
| url-4                  = :Category:Images from {{{1|{{PAGENAME}}}}}
+
| url-4                  = :Category:Images from {{#ifeq: {{NAMESPACE}} | Category | {{#var: images }} | {{{1|{{PAGENAME}}}}} }}
 
| image-4                =  
 
| image-4                =  
  
 
| button-5              = Quotes
 
| button-5              = Quotes
| url-5                  = Quote:{{{1|{{PAGENAME}}}}}
+
| url-5                  = Quotes:{{#ifeq: {{NAMESPACE}} | Category | {{#var: images }} | {{{1|{{PAGENAME}}}}} }}
 
| image-5                =  
 
| image-5                =  
  
 
}}
 
}}

Latest revision as of 06:53, 28 December 2020