Template:Cheatsheet-block: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class='cheatsheet-block {{#if: {{{type|generic}}}|type-{{{type|generic}}}|}}'> | <includeonly><div class='cheatsheet-block {{#if: {{{type|generic}}}|type-{{{type|generic}}}|}}'> | ||
{{#if: {{{title|}}} | {{#if: {{{title|}}} | <span class='title'> {{{title}}} </span> |}} | ||
{{#if: {{{datatype|}}} | <span class='datatype'> {{{datatype}}} | {{#if: {{{datatypelink|}}} | <span class='datatype'> [[{{datatypelink}}|{{datatype}}]] </span> | | ||
{{#if: {{{text}}} | {{#if: {{{datatype|}}} | <span class='datatype'> {{{datatype}}} </span> |}} | ||
{{#if: {{{image}}} | }} | ||
{{#if: {{{table|}}} | {{#if: {{{text}}} | <p class='text'> {{{text}}} </p> |}} | ||
{{#if: {{{image}}} | [[File:{{{image|}}}|]] |}} | |||
{{#if: {{{table|}}} | {{{table}}} |}} | |||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
| Line 11: | Line 13: | ||
* Type: Type of block. Affects the type of coloring used | * Type: Type of block. Affects the type of coloring used | ||
* Title: Title of the block | * Title: Title of the block | ||
* | * Datatype: Right below the title, indicating what data is described here. | ||
* Datatypelink: The page the datatype links to | |||
* Text: Text-content to include in the block | * Text: Text-content to include in the block | ||
* Image: Name of image to include in block | * Image: Name of image to include in block | ||
Revision as of 08:37, 14 March 2025
Parameters:
- Type: Type of block. Affects the type of coloring used
- Title: Title of the block
- Datatype: Right below the title, indicating what data is described here.
- Datatypelink: The page the datatype links to
- Text: Text-content to include in the block
- Image: Name of image to include in block
- Table: Table, terms, or other reference-info list to include in the block