Changes

Jump to navigation Jump to search
+ Trying to make it possible to add Wikipedia articles separated with slashes in the same way as categories and Aircraft-set.xml names
Line 914: Line 914:  
                   | zh = 维基百科
 
                   | zh = 维基百科
 
                 }}
 
                 }}
| data42      = {{#if: {{{wikipedia|}}} | {{wikipedia|{{{wikipedia}}} }} }}
+
| data42      = {{#if: {{{wikipedia|}}}
 +
                  | {{#if: {{#titleparts:/{{{wikipedia|}}}|1|2}} | {{wikipedia|{{#titleparts:/{{{wikipedia|}}}|1|2}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|3}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|3}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|4}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|4}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|5}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|5}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|6}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|6}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|7}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|7}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|8}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|8}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|9}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|9}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|10}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|10}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|11}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|11}} }} }}<!--
 +
                -->{{#if: {{#titleparts:/{{{wikipedia|}}}|1|12}} | {{wikipedia|<br/>{{#titleparts:/{{{wikipedia|}}}|1|12}} }} }}
 +
                }}<!--
 
| data45      = {{#if: {{{note|}}} | {{note|{{{note}}}|width=100%|padding=0px|margin=0px}} }}
 
| data45      = {{#if: {{{note|}}} | {{note|{{{note}}}|width=100%|padding=0px|margin=0px}} }}
 
| float{{#if:{{{float|}}}||NULL}}
 
| float{{#if:{{{float|}}}||NULL}}
Line 1,091: Line 1,103:  
; craft:  The craft type, defaulting to {{param||aircraft}}.  This can be one of {{param||aircraft}}, {{param||spacecraft}}, {{param||vehicle}}, or {{param||seacraft}}.  This will be used to add one of the categories [[:Category:All aircraft]], [[:Category:All spacecraft]], [[:Category:All vehicles]], or [[:Category:All seacraft]] to the page.
 
; craft:  The craft type, defaulting to {{param||aircraft}}.  This can be one of {{param||aircraft}}, {{param||spacecraft}}, {{param||vehicle}}, or {{param||seacraft}}.  This will be used to add one of the categories [[:Category:All aircraft]], [[:Category:All spacecraft]], [[:Category:All vehicles]], or [[:Category:All seacraft]] to the page.
   −
; wikipedia:  The Wikipedia article corresponding to the craft.  This is implemented via the {{tl|wikipedia}} template.
+
; wikipedia:  The Wikipedia article corresponding to the craft.  This is implemented via the {{tl|wikipedia}} template.  If there are separate Wikipedia articles for variants included with the aircraft, the Wikipedia articles can be separated with a slash <code>/</code>.  This will likely not work if Wikipedia article titles contain slashes.
    
; navbar:  If this is set to {{param||1}}, a {{tl|navbar}} element will be added to the very end of infobox.  This is very useful when using [[#Translations - using subpages|subpages]].  It will have the form of <code>{{navbar|{{PAGENAME}}|mini=1}}</code>.  Note that the navbar will point to pages of the form <code>{{obr}}PAGENAME{{cbr}}/info</code>, excluding the language code part of the page name.
 
; navbar:  If this is set to {{param||1}}, a {{tl|navbar}} element will be added to the very end of infobox.  This is very useful when using [[#Translations - using subpages|subpages]].  It will have the form of <code>{{navbar|{{PAGENAME}}|mini=1}}</code>.  Note that the navbar will point to pages of the form <code>{{obr}}PAGENAME{{cbr}}/info</code>, excluding the language code part of the page name.

Navigation menu