Difference between revisions of "Template:Infobox:ResourceBase"
(36 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Infobox:Base | + | <includeonly>{{Infobox:Base |
− | | | + | | width = {{{widths0|310}}} |
− | | color | + | | content = {{Infobox:Header |
− | | | + | | color = F0E68C |
− | | | + | | width = {{{widths0|300}}} |
− | | | + | | title = {{if|test={{{title|}}}|then={{{title}}}|else={{PAGENAME}}}} |
− | | | + | | image = {{{image|}}} |
− | | color | + | | resize = {{{resize|}}} |
− | | | + | | comment = {{{comment|}}}}}<!-- Inclusion of the food section -->{{if|test={{{section1|}}}|then={{Infobox:Section |
− | | | + | | color = F8F2C2 |
− | | item0 | + | | title = {{{section1|SECTION 1 TITLE ERROR}}} |
− | | info0 | + | | width = {{{widths1|85}}} |
− | | item1 | + | | item0 = {{{item0s1|}}} |
− | | info1 | + | | info0 = {{{info0s1|}}} |
− | | color | + | | item1 = {{{item1s1|}}} |
− | | | + | | info1 = {{{info1s1|}}} |
− | | | + | | item2 = {{{item2s1|}}} |
− | | item0 | + | | info2 = {{{info2s1|}}}}}|else=}}<!-- Inclusion of the raw resource section -->{{if|test={{{section2|}}}|then={{Infobox:Section |
− | | info0 | + | | color = F8F2C2 |
− | | item1 | + | | title = {{{section2|SECTION 2 TITLE ERROR}}} |
− | | info1 | + | | width = {{{widths2|85}}} |
− | | color | + | | item0 = {{{item0s2|}}} |
− | | | + | | info0 = {{{info0s2|}}} |
− | | | + | | item1 = {{{item1s2|}}} |
− | | item0 | + | | info1 = {{{info1s2|}}}}}|else=}}<!-- Inclusion of the elaboration section -->{{if|test={{{section2b|}}}|then={{Infobox:Section |
− | | info0 | + | | color = F8F2C2 |
− | | item1 | + | | title = {{{section2b|SECTION 2B TITLE ERROR}}} |
− | | info1 | + | | width = {{{widths2b|85}}} |
− | | item2 | + | | item0 = {{{item0s2b|}}} |
− | | info2 | + | | info0 = {{{info0s2b|}}} |
− | | item3 | + | | item1 = {{{item1s2b|}}} |
− | | info3 | + | | info1 = {{{info1s2b|}}} |
− | | item4 | + | | item2 = {{{item2s2b|}}} |
− | | info4 | + | | info2 = {{{info2s2b|}}} |
− | | item5 | + | | item3 = {{{item3s2b|}}} |
− | | info5 | + | | info3 = {{{info3s2b|}}} |
− | | item6 | + | | item4 = {{{item4s2b|}}} |
− | | info6 | + | | info4 = {{{info4s2b|}}}}}|else=}}<!-- Inclusion of the methods section -->{{if|test={{{section3|}}}|then={{Infobox:SectionList |
− | | item7 | + | | color = F8F2C2 |
− | | info7 | + | | title = {{{section3|SECTION 3 TITLE ERROR}}} |
− | }}<noinclude>[[Category:Meta- | + | | width = {{{widths3|260}}} |
+ | | ltitle = {{{ltitle|LEFT TITLE ERROR}}} | ||
+ | | rtitle = {{{rtitle|RIGHT TITLE ERROR}}} | ||
+ | | item0 = {{if|test={{{item0s3|}}}|then={{if|test={{{info0s3|}}}|then={{{item0s3}}}|else=}}|else=}} | ||
+ | | info0 = {{if|test={{{info0s3|}}}|then={{if|test={{{item0s3|}}}|then={{{info0s3}}}|else=}}|else=}} | ||
+ | | item1 = {{if|test={{{item1s3|}}}|then={{if|test={{{info1s3|}}}|then={{{item1s3}}}|else=}}|else=}} | ||
+ | | info1 = {{if|test={{{info1s3|}}}|then={{if|test={{{item1s3|}}}|then={{{info1s3}}}|else=}}|else=}} | ||
+ | | item2 = {{if|test={{{item2s3|}}}|then={{if|test={{{info2s3|}}}|then={{{item2s3}}}|else=}}|else=}} | ||
+ | | info2 = {{if|test={{{info2s3|}}}|then={{if|test={{{item2s3|}}}|then={{{info2s3}}}|else=}}|else=}} | ||
+ | | item3 = {{if|test={{{item3s3|}}}|then={{if|test={{{info3s3|}}}|then={{{item3s3}}}|else=}}|else=}} | ||
+ | | info3 = {{if|test={{{info3s3|}}}|then={{if|test={{{item3s3|}}}|then={{{info3s3}}}|else=}}|else=}} | ||
+ | | item4 = {{if|test={{{item4s3|}}}|then={{if|test={{{info4s3|}}}|then={{{item4s3}}}|else=}}|else=}} | ||
+ | | info4 = {{if|test={{{info4s3|}}}|then={{if|test={{{item4s3|}}}|then={{{info4s3}}}|else=}}|else=}} | ||
+ | | item5 = {{if|test={{{item5s3|}}}|then={{if|test={{{info5s3|}}}|then={{{item5s3}}}|else=}}|else=}} | ||
+ | | info5 = {{if|test={{{info5s3|}}}|then={{if|test={{{item5s3|}}}|then={{{info5s3}}}|else=}}|else=}} | ||
+ | | item6 = {{if|test={{{item6s3|}}}|then={{if|test={{{info6s3|}}}|then={{{item6s3}}}|else=}}|else=}} | ||
+ | | info6 = {{if|test={{{info6s3|}}}|then={{if|test={{{item6s3|}}}|then={{{info6s3}}}|else=}}|else=}} | ||
+ | | item7 = {{if|test={{{item7s3|}}}|then={{if|test={{{info7s3|}}}|then={{{item7s3}}}|else=}}|else=}} | ||
+ | | info7 = {{if|test={{{info7s3|}}}|then={{if|test={{{item7s3|}}}|then={{{info7s3}}}|else=}}|else=}} | ||
+ | | item8 = {{if|test={{{item8s3|}}}|then={{if|test={{{info8s3|}}}|then={{{item8s3}}}|else=}}|else=}} | ||
+ | | info8 = {{if|test={{{info8s3|}}}|then={{if|test={{{item8s3|}}}|then={{{info8s3}}}|else=}}|else=}} | ||
+ | | item9 = {{if|test={{{item9s3|}}}|then={{if|test={{{info9s3|}}}|then={{{item9s3}}}|else=}}|else=}} | ||
+ | | info9 = {{if|test={{{info9s3|}}}|then={{if|test={{{item9s3|}}}|then={{{info9s3}}}|else=}}|else=}}}}|else=}} | ||
+ | }}</includeonly><noinclude>{{Doc}}[[Category:Meta-Templates|{{PAGENAME}}]]</noinclude> |
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:
|