Difference between revisions of "Template:Ya"
Jump to navigation
Jump to search
Template documentation (
)
MyraMidnight (talk | contribs) m |
MyraMidnight (talk | contribs) m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | |</noinclude>style="background: {{{ | + | |</noinclude><onlyinclude>style="background: {{{background|#90ff90}}}; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-yes" |{{{text|}}}[[File:Green check.png|13px|alt=Yes|link={{{link|}}}]]</onlyinclude><noinclude> |
|} | |} | ||
− | {{Template Explanation | + | {|{{Template Explanation}}[[Category:Table Cell Template]] |
This is a Table Cell Template (for adding content to cells) | This is a Table Cell Template (for adding content to cells) | ||
− | }}</noinclude> | + | ===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 11:07, 24 June 2015
)
- The above documentation is transcluded from Template:Ya/doc.
- Editors can experiment in this template's sandbox
- Please add categories to the /doc subpage within
<includeonly>...</includeonly>
This is a Table Cell Template (for adding content to cells)
Customization[edit]
text=
add custom text before the check-markbackground=
background coloralign=
text alignmentstyle=
add extra stylinglink=
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]
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}} |
|||||||||
No | {{no}} |
No | {{no|customized text|align=left}} |
customized text | |||||
{{na}} |
{{na|link=Krafties Creatures}} |
||||||||
N/A | {{n/a}} |
N/A | |||||||
Unknown | {{unknown}} |
? | |||||||
Any | {{any}} |
Any |