Template:BanlistTable: Difference between revisions

From Little Troubles
Chesto (talk | contribs)
Created page with "<onlyinclude>{{#switch:{{{type}}} <!-- One day could simplify this even more by setting the background and border colours via a CardColor template, then switch statements wouldn't even be needed. --> |Character=style{{=}}"background:rgba(84,146,196,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" {{!}} {{ItemIcon|{{{type}}}|height=x20px|alignment=middle}} {{!}}style{..."
 
Chesto (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 77: Line 77:
{{!}}style{{=}}"background:rgba(149,87,41,0.8); color:#000000; border-color:#26140C; border-width: 3px 0px 3px 1px" {{!}} {{{status}}}
{{!}}style{{=}}"background:rgba(149,87,41,0.8); color:#000000; border-color:#26140C; border-width: 3px 0px 3px 1px" {{!}} {{{status}}}
{{!}}style{{=}}"background:rgba(149,87,41,0.8); color:#000000; border-color:#26140C; border-width: 3px 3px 3px 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px"{{!}} {{{note}}}
{{!}}style{{=}}"background:rgba(149,87,41,0.8); color:#000000; border-color:#26140C; border-width: 3px 3px 3px 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px"{{!}} {{{note}}}
|PregameAction=style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center; border-style: dashed" {{!}} {{ItemIcon|{{{type}}}|height=x20px|alignment=middle}}
|PregameAction=style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; border-style: dashed; text-align: center;" {{!}} {{ItemIcon|{{{type}}}|height=x20px|alignment=middle}}
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 1px; border-style: dashed;" {{!}} [[{{{name}}}{{!}}<span style{{=}}"color:#00297a; font-weight: bold;">{{{name}}}</span>]]
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 1px; border-style: dashed;" {{!}} [[{{{name}}}{{!}}<span style{{=}}"color:#00297a; font-weight: bold;">{{{name}}}</span>]]
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 1px; border-style: dashed" {{!}} {{{status}}}
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 0px 3px 1px; border-style: dashed" {{!}} {{{status}}}
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 3px 3px 1px; border-top-right-radius; border-style: dashed: 5px; border-bottom-right-radius: 5px"{{!}} {{{note}}}
{{!}}style{{=}}"background:rgba(183,58,57,0.8); color:#000000; border-color:#FCB345; border-width: 3px 3px 3px 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-style: dashed;"{{!}} {{{note}}}
}}</onlyinclude>
|Hybrid=style{{=}}"background:linear-gradient(180deg,rgba(84, 146, 196, 0.8) 0%, rgba(111, 81, 153, 0.8) 100%); color:#000000; border-color:#325699; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" {{!}} {{ItemIcon|{{{type}}}|height=x20px|alignment=middle}}
<noinclude>
{{!}}style{{=}}"background:linear-gradient(180deg,rgba(84, 146, 196, 0.8) 0%, rgba(111, 81, 153, 0.8) 100%); color:#000000; border-color:#325699; border-width: 3px 0px 3px 1px;" {{!}} [[{{{name}}}{{!}}<span style{{=}}"color:#00297a; font-weight: bold;">{{{name}}}</span>]]
Template to be used ''INSIDE A TABLE'' to quickly fill in style and icons for that card type.
{{!}}style{{=}}"background:linear-gradient(180deg,rgba(84, 146, 196, 0.8) 0%, rgba(111, 81, 153, 0.8) 100%); color:#000000; border-color:#325699; border-width: 3px 0px 3px 1px" {{!}} {{{status}}}
{{!}}style{{=}}"background:linear-gradient(180deg,rgba(84, 146, 196, 0.8) 0%, rgba(111, 81, 153, 0.8) 100%); color:#000000; border-color:#325699; border-width: 3px 3px 3px 1px; border-top-right-radius: 5px; border-bottom-right-radius: 5px"{{!}} {{{note}}}}}</onlyinclude>
<noinclude>Template to be used ''INSIDE A TABLE'' to quickly fill in style and icons for that card type.
Four arguments:
Four arguments:
* <code>type</code>: returns correct colours, style and image (see below for names)
* <code>type</code>: returns correct colours, style and image (see below for names)
Line 155: Line 157:
|{{BanlistTable|type=PregameAction|name=PregameAction|status=pga|note=pga}}
|{{BanlistTable|type=PregameAction|name=PregameAction|status=pga|note=pga}}
|-
|-
|}
|{{BanlistTable|type=Hybrid|name=Hybrid|status=h|note=h}}
</noinclude>
|-
|}</noinclude>

Latest revision as of 17:04, 15 August 2026

Template to be used INSIDE A TABLE to quickly fill in style and icons for that card type. Four arguments:

  • type: returns correct colours, style and image (see below for names)
  • name: column 2, name of card (will create a link to page with this name)
  • status: column 3, freetext.
  • note: column 4, freetext.

Inside a 4-column wikitable, place this template on a single line for the whole row, e.g. inside the table,

{{BanlistTable|type=Character|name=Character|status=c|note=c}}

returns

Type Name Change Note
Character Character c c

Current other types are below:

Type Name Change Note
Character Character c c
Adult Character CharacterAdult ca ca
Regressed Character CharacterRegressed cr cr
Main Character MainCharacter mc mc
Adult Main Character MainCharacterAdult mca mca
Regressed Main Character MainCharacterRegressed mcr mcr
Action Action a a
Decisive Action DecisiveAction da da
Quick Action QuickAction qa qa
Decisive Quick Action DecisiveQuickAction dqa dqa
Field Field f f
Iconic Field IconicField if if
Global Iconic Field GlobalIconicField gif gif
Toy Toy t t
Shiny Toy ShinyToy st st
Scene Scene s s
Memorable Scene MemorableScene ms ms
Goal Goal g g
Great Goal GreatGoal gg gg
Pre-game Action PregameAction pga pga
Hybrid Hybrid h h