Template:Infobox Block: Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
(please work)
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<infobox>
<includeonly>{{main other|{{short description|Block|noreplace}}}}{{#invoke:infobox|infoboxTemplate
<title source="title">
| bodyclass = biota
<default>{{PAGENAME}}</default>
| templatestyles = infobox/mobileviewfix.css
</title>
| abovestyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
<image source="block_img">
| aboveclass = summary
<caption source="caption-block_img"/>
| above = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
</image>
<data source="block_type">
<label>Block Type</label>
</data>
<data source="category">
<label>Category/Extension</label>
</data>
<data source="status">
<label>Status</label>
</data>
</infobox>
<noinclude>
Example usage:
<pre>
{{Blocks


| title=Example
| image = {{block_img|}}
| caption = {{caption-block_img|}}


| block_img=Example
| labelstyle = white-space:nowrap;padding-right:0.65em<!--(to ensure gap between any long/nonwrapped label and subsequent data on same line-->;
| datastyle = line-height:1.3em;


| caption-block_img=Example
| label1 = {{nowrap|Block Type}}<!--This nowrap keeps this column from being excessively narrow.-->
| data1 = {{{block_type|}}}


| block_type=Example
| label2 = Category/Extension
| data2 = {{{category|}}}


| category=Example
| label3 = Status

| data3 = {{status|}}
| status=Example
</includeonly>

}}
</pre>
<templatedata>
{"params":{"title":{"suggested":true},"block_img":{"suggested":true},"caption-block_img":{"suggested":true},"block_type":{"suggested":true},"category":{"suggested":true},"status":{"suggested":true}},"sets":[],"maps":{}}
</templatedata>
[[Category:Infobox Templates]][[Category:Templates]]
</noinclude><includeonly>{{#if:{{{nocat|}}}||[[Category:Blocks]]}}</includeonly>

Revision as of 00:01, 23 May 2024

Example usage:

{{Blocks

  | title=Example

  | block_img=Example

  | caption-block_img=Example

  | block_type=Example

  | category=Example

  | status=Example

}}

<templatedata> {"params":{"title":{"suggested":true},"block_img":{"suggested":true},"caption-block_img":{"suggested":true},"block_type":{"suggested":true},"category":{"suggested":true},"status":{"suggested":true}},"sets":[],"maps":{}} </templatedata>