Template:Infobox: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Replaced content with "{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|Category:Infobox templates|{{remove...") Tag: Replaced |
No edit summary |
||
Line 1: | Line 1: | ||
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates | {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{SUBPAGENAME}}]]}}}}|}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> | <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> |
Revision as of 10:23, 3 July 2020
[edit] [ ] Template documentation
This is a generic infobox that can be used as a base for creating a diverse range of infoboxes. For more information on the syntax, see Wikipedia:Template:Infobox.
Note: for any given value for (n), not all combinations of parameters are permitted. The presence of a |header(n)= will cause the corresponding |data(n)= (and |rowclass(n)= |label(n)=, see below) to be ignored; the absence of a |data(n)= will cause the corresponding |label(n)= to be ignored.
{{Infobox |name = Infobox/doc |bodystyle = |titlestyle = |abovestyle = background:#cfc; |subheaderstyle = |title = Test Infobox |above = Above text |subheader = Subheader above image |subheader2 = Second subheader |imagestyle = |captionstyle = |image = [[File:Example-serious.jpg|200px|alt=Example alt text]] |caption = Caption displayed below File:Example-serious.jpg |headerstyle = background:#ccf; |labelstyle = background:#ddf; |datastyle = |header1 = Header defined alone | label1 = | data1 = |header2 = | label2 = Label defined alone does not display (needs data, or is suppressed) | data2 = |header3 = | label3 = | data3 = Data defined alone |header4 = All three defined (header, label, data, all with same number) | label4 = does not display (same number as a header) | data4 = does not display (same number as a header) |header5 = | label5 = Label and data defined (label) | data5 = Label and data defined (data) |belowstyle = background:#ddf; |below = Below text }}
The above documentation is transcluded from Template:Infobox/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |