Template:Cheatsheet-block: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
mNo 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|}}}        | <span class='title'>    {{{title}}}                         </span>    |}}
{{#if: {{{title|}}}        | <span class='title'>    {{{title}}}                                               </span>    |}}
{{#if: {{{datatypelink|}}} | <span class='datatype'>  [[{{datatypelink}}|{{datatype}}]]  </span>    |
{{#if: {{{datatypelink|}}} | <span class='datatype'>  [[{{{datatypelink}}}|{{{datatype|{{{datatypelink}}}}}}]]  </span>    |
     {{#if: {{{datatype|}}} | <span class='datatype'>  {{{datatype}}}                     </span>    |}}
     {{#if: {{{datatype|}}} | <span class='datatype'>  {{{datatype}}}                                             </span>    |}}
}}
}}
{{#if: {{{text}}}          | <p class='text'>        {{{text}}}                         </p>      |}}
{{#if: {{{text}}}          | <p class='text'>        {{{text}}}                                                 </p>      |}}
{{#if: {{{image}}}        |                          [[File:{{{image|}}}|]]                         |}}
{{#if: {{{image}}}        |                          [[File:{{{image|}}}|]]                                               |}}
{{#if: {{{table|}}}        |                          {{{table}}}                                   |}}
{{#if: {{{table|}}}        |                          {{{table}}}                                                           |}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 08:39, 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