Template:Infobox item: Difference between revisions

update documentation style
m using translation category
Line 31: Line 31:
}}{{
}}{{
#if: {{{nocat|}}}{{NAMESPACE}} ||
#if: {{{nocat|}}}{{NAMESPACE}} ||
{{#if:{{{type|}}}|{{#ifeq:{{{type}}}|Items||{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | ar | ca | hr | cz | dk | eo | et | fa | fin | el | he | id | ga | lv | lt | moh | no | pt | ro | sr | sk | se | ph | th | tr | ua | vi | yi = [[Category:{{{type}}}/{{#titleparts: {{FULLPAGENAME}} | | -1 }}]] | #default = [[Category:{{{type}}}]]}}}}}}
{{#if: {{{type|}}} | {{ #ifeq: {{{type}}}| Items || {{translation category|{{{type}}}}} }}
{{#switch: {{lc: {{{renewable|}}} }}
{{translation category|project=0|{{
| yes = [[Category:Renewable resources]]
  #switch: {{lc: {{{renewable|}}} }}
| no = [[Category:Non-renewable resources]]
  | yes = Renewable resources
| [[Category:Resources with invalid renewability]]
  | no = Non-renewable resources
}}
  | Resources with invalid renewability
}}</includeonly><noinclude>
  }}
}}}}</includeonly><noinclude>
<!-- categories/interwikis on the /doc subpage, not here -->
<!-- categories/interwikis on the /doc subpage, not here -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>