Template:Infobox block/doc: Difference between revisions

tyop
No edit summary
Line 10: Line 10:
This template provides a uniform design for block pages.
This template provides a uniform design for block pages.
<pre width="30px">
<pre width="30px">
&lt;onlyinclude&gt;{{ {{{1|Block}}}
<onlyinclude>{{ {{{1|Block}}}
|title=
|title=
|image=
|image=
Line 31: Line 31:
|movespeed=
|movespeed=
|firstver=
|firstver=
}}&lt;/onlyinclude&gt;</pre>
|notes=
}}</onlyinclude></pre>


Please note the unusual markup at the beginning and end; copy it verbatim if you are creating a new block page. Also note that if the item has multiple data values, use <code><nowiki>|multipledata=</nowiki></code> instead of <code><nowiki>|data=</nowiki></code>. See below:
Please note the unusual markup at the beginning and end; copy it verbatim if you are creating a new block page. Also note that if the item has multiple data values, use <code><nowiki>|multipledata=</nowiki></code> instead of <code><nowiki>|data=</nowiki></code>. See below:
Line 81: Line 82:
|-
|-
| <code>firstver</code> || First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a).  || ''None''
| <code>firstver</code> || First version that it was seen in (eg. Alpha 1.0.17, classic 0.0.23a).  || ''None''
|-
| <code>notes</code> || Adds a centred column spanning across both rows at the bottom of the box || ''None''
|}
|}


== Transcluding block pages ==
== Transcluding block pages ==
The unusual header <code><nowiki>&lt;onlyinclude&gt;{{ {{{1|Block}}}</nowiki></code> and footer are there so that block pages can be transcluded (used like templates) into other pages. Specifically, this allows the use of {{tl|Safe get}} to get specific data fields out of the infobox header in the block page. Here's some examples:
The unusual header <code><nowiki>&lt;onlyinclude&gt;{{ {{{1|Block}}}</nowiki></code> and footer are there so that block pages can be transcluded (used like templates) into other pages. Specifically, this allows the use of {{tl|Safe get}} to get specific data fields out of the infobox header in the block page. Here's some examples: