Difference between revisions of "Template:Na"

From Krafties
Jump to navigation Jump to search
(Created page with "<noinclude> {| class="wikitable" |- |</noinclude><onlyinclude>style="background: {{{background|#F99}}}; color: black; vertical-align: middle; text-align: {{{align|center}}}; {...")
 
m
 
Line 1: Line 1:
<noinclude>
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|</noinclude><onlyinclude>style="background: {{{background|#F99}}}; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-yes" |{{{text|}}}[[File:600px-Dark_Red_x.svg.png|13px|alt=Yes|link={{{link|}}}]]</onlyinclude><noinclude>
+
|<onlyinclude>style="background: {{{background|#F99}}}; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-yes" |{{{text|}}}[[File:600px-Dark_Red_x.svg.png|13px|alt=Yes|link={{{link|}}}]]</onlyinclude>
 
|}
 
|}
{|{{Template Explanation}}[[Category:Table Cell Template]]
+
 
This is a Table Cell Template (for adding content to cells)
+
{{Documentation}}
===Customization===
 
*'''<code><nowiki>text=</nowiki></code>''' add custom text before the check-mark
 
*'''<code><nowiki>background=</nowiki></code>''' background color
 
*'''<code><nowiki>align=</nowiki></code>''' text alignment
 
*'''<code><nowiki>style=</nowiki></code>''' add extra styling
 
*'''<code><nowiki>link=</nowiki></code>''' turn the check-mark image into a link
 
{{Table Cell Templates/help}}
 
|}</noinclude>
 

Latest revision as of 04:05, 11 October 2020

Yes
Documentation icon Template documentation ( view · talk · edit)

This is a Table Cell Template (for adding content to cells)

Customization[edit]

  • text= add custom text before the check-mark
  • background= background color
  • align= text alignment
  • style= add extra styling
  • link= turn the check-mark image into a link

How to use Table Cell Templates[edit]

  • You put the cell-template within a "cell" of the table.
  • You cannot combine two templates in one cell, or add your own styling if the template does not include it.
  • You cannot add style= into the same cell, since it will conflict with the template. Sometimes the template itself will allow you to add styling
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Any}}
...
Yes No N/A
Any

List of TableCellTemplates[edit]

Table Cell Templates, view individual templates for details
Group Default use Preview (default) Example Customized Preview (customized)
Elements Cell Templates
Basic elements {{FireElement}} Fire {{FireElement|Custom Text|align=right}} Custom Text
{{WindElement}} Wind {{WindElement|Custom Text|align=right}} Custom Text
{{EarthElement}} Earth {{EarthElement|Custom Text|align=right}} Custom Text
{{WaterElement}} Water {{WaterElement|Custom Text|align=right}} Custom Text
Hybrid {{VolcanicElement}} Volcanic {{VolcanicElement|Custom Text|align=left}} Custom Text
{{SteamElement}} Steam {{SteamElement|Custom Text|align=left}} Custom Text
{{SandElement}} Sand {{SandElement|Custom Text|align=left}} Custom Text
{{PlantElement}} Plant {{PlantElement|Custom Text|align=left}} Custom Text
{{LightningElement}} Lightning {{LightningElement|Custom Text|align=left}} Custom Text
{{IceElement}} Ice {{IceElement|Custom Text|align=left}} Custom Text
Special {{MindElement}} Mind {{MindElement|Custom Text|align=right}} Custom Text
{{AffectionElement}} Affection {{AffectionElement|Custom Text|align=right}} Custom Text
{{VampireElement}} Vampire {{VampireElement|Custom Text|align=right}} Custom Text
{{NuclearElement}} Nuclear {{NuclearElement|Custom Text|align=right}} Custom Text
Other {{NeutralElement}} Neutral {{NeutralElement|Custom Text|align=right}} Custom Text
{{DarkElement}} Dark {{DarkElement|Custom Text|align=right}} Custom Text
Other
Yes {{yes}} Yes {{yes|customized text|align=left}} customized text
{{ya}} Yes
No {{no}} No {{no|customized text|align=left}} customized text
{{na}} Yes {{na|link=Krafties Creatures}} Yes
N/A {{n/a}} N/A
Unknown {{unknown}} ?
Any {{any}} Any
The above documentation is transcluded from Template:Na/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly>