Difference between revisions of "Template:Infobox/Part/Manufacturer entry"
From Kerbal Space Program Wiki
< Template:Infobox | Part
m (!of course don't compare the same texts;) |
m (!return a value please;) |
||
Line 1: | Line 1: | ||
− | <includeonly>[[:Category:{{{1}}}{{if lang}}|{{{1}}}]]{{#if: {{if lang}}{{#ifeq: {{#titleparts:{{PAGENAME}}}}|{{#titleparts:{{PAGENAME}}|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 only one parameter of the manufacturer, which should be passed through {{Tl|Infobox/Part/Manufacturer}} first. | + | <includeonly>[[:Category:{{{1}}}{{if lang}}|{{{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 only one parameter of the manufacturer, which should be passed through {{Tl|Infobox/Part/Manufacturer}} first. |
== See also == | == See also == |
Revision as of 20:29, 29 July 2014
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 only one parameter of the manufacturer, which should be passed through {{Infobox/Part/Manufacturer}} first.