Difference between revisions of "Template:Infobox:ResourceBase"
m |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
| title = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}} | | title = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}} | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
+ | | resize = {{{resize|}}} | ||
| comment = {{{comment|}}}}}<!-- Inclusion of the food section -->{{if|test={{{section1|}}}|then={{Infobox:Section | | comment = {{{comment|}}}}}<!-- Inclusion of the food section -->{{if|test={{{section1|}}}|then={{Infobox:Section | ||
| color = F8F2C2 | | color = F8F2C2 | ||
Line 13: | Line 14: | ||
| info0 = {{{info0s1|}}} | | info0 = {{{info0s1|}}} | ||
| item1 = {{{item1s1|}}} | | item1 = {{{item1s1|}}} | ||
− | | info1 = {{{info1s1|}}}}}|else=}}<!-- Inclusion of the raw resource section -->{{if|test={{{section2|}}}|then={{Infobox:Section | + | | info1 = {{{info1s1|}}} |
+ | | item2 = {{{item2s1|}}} | ||
+ | | info2 = {{{info2s1|}}}}}|else=}}<!-- Inclusion of the raw resource section -->{{if|test={{{section2|}}}|then={{Infobox:Section | ||
| color = F8F2C2 | | color = F8F2C2 | ||
| title = {{{section2|SECTION 2 TITLE ERROR}}} | | title = {{{section2|SECTION 2 TITLE ERROR}}} | ||
Line 31: | Line 34: | ||
| info2 = {{{info2s2b|}}} | | info2 = {{{info2s2b|}}} | ||
| item3 = {{{item3s2b|}}} | | item3 = {{{item3s2b|}}} | ||
− | | info3 = {{{info3s2b|}}}}}|else=}}<!-- Inclusion of the methods section -->{{if|test={{{section3|}}}|then={{Infobox:SectionList | + | | info3 = {{{info3s2b|}}} |
+ | | item4 = {{{item4s2b|}}} | ||
+ | | info4 = {{{info4s2b|}}}}}|else=}}<!-- Inclusion of the methods section -->{{if|test={{{section3|}}}|then={{Infobox:SectionList | ||
| color = F8F2C2 | | color = F8F2C2 | ||
| title = {{{section3|SECTION 3 TITLE ERROR}}} | | title = {{{section3|SECTION 3 TITLE ERROR}}} |
Latest revision as of 14:34, 17 February 2016
{{Infobox:ResourceBase}} is a meta-template, ie a template for creating templates. This template is intended to be a basic template for resource templates of different languages. With this template you can describe, in a single table, all the characteristics of any resource. Moreover, one can define an image with description, and an alternative title (for templates in languages other than English). UsagePut the following code in the template being designed. Complete the parameters you want, delete the unused. Important note: If you want to create a resource template in your language, do not use this template, this is a base template. Instead, copy the final template of another language and translate into your language. See "Examples of final templates in different languages" section for a list of currently created templates that you can translate. {{Infobox:ResourceBase | widths0 = | title = | image = | resize = | comment = | section1 = | widths1 = | item0s1 = | info0s1 = ... | item2s1 = | info2s1 = | section2 = | widths2 = | item0s2 = | info0s2 = | item1s2 = | info1s2 = | section2b = | widths2b = | item0s2b = | info0s2b = ... | item4s2b = | info4s2b = | section3 = | widths3 = | ltitle = | rtitle = | item0s3 = | info0s3 = ... | item9s3 = | info9s3 = }} Parameters
Even if width and height are specified the image will keep its original aspect ratio: either the width or the height will be equal to the specified maximum, whichever allows the other to be <= the maximum.
Examples of final templates in different languagesYou can add the different versions (translations) of the final template here:
|