Difference between revisions of "Template:Infobox/Part/Manufacturer entry"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<incluedeonly>{{#if: {{{1}}}|<span style="font-size:smaller;">{{lang|en=by|de=von|pl=wyk. przez}}<br />''[[:Category:{{{1}}}{{if lang}}|{{{1}}}]]''{{#if: {{if lang}}{{#ifeq: {...")
 
m (Syntax error fixed.)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<incluedeonly>{{#if: {{{1}}}|<span style="font-size:smaller;">{{lang|en=by|de=von|pl=wyk. przez}}<br />''[[:Category:{{{1}}}{{if lang}}|{{{1}}}]]''{{#if: {{if lang}}{{#ifeq: {{#titleparts:{{PAGENAME}}|1}}|{{PAGENAME}}|1}}|[[Category:{{{1}}}{{if lang}}]]}}</span>}}</includeonly><noinclude>Generates the manufacturer options. If the page name has a valid language tag '''or''' has no subdirectories it categorises them into the manufacturer's category. Takes only one parameter of the manufacturer, which should be passed through {{Tl|Partbox/Manufacturer}} first.
+
<includeonly>[[:Category:{{{1}}}{{if lang}}|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}]]{{#if: {{if lang}}{{#ifeq: {{#titleparts:{{PAGENAME}}}}|{{#titleparts:{{PAGENAME}}|1}}|1}}<!-- both need #titleparts, because otherwise special characters are encoded differently (so ifeq is not working) -->|[[Category:{{{1}}}{{if lang}}]]}}</includeonly><noinclude>Generates a manufacturer entry. If the page name has a valid language tag '''or''' has no subdirectories it categorises them into the manufacturer's category. Takes two parameters: the english manufacturer name and (optionally) the translated name of the manufacturer, which should be passed through {{Tl|Infobox/Part/Manufacturer}} first.
  
 
== See also ==
 
== See also ==
 
* [[:Category:Manufacturers]]
 
* [[:Category:Manufacturers]]
  
[[Category:Templates]]
+
{{Subcategory|metatemplates}}</noinclude>

Latest revision as of 17:25, 3 May 2019

Generates a manufacturer entry. If the page name has a valid language tag or has no subdirectories it categorises them into the manufacturer's category. Takes two parameters: the english manufacturer name and (optionally) the translated name of the manufacturer, which should be passed through {{Infobox/Part/Manufacturer}} first.

See also