Print formatting of Kill Team 2021 Tactical and Strategic Ploys (and ploy-like things like Vet Guard orders) as MTG-sized cards.
Wahupedia Kill Team Printable Ploy Cards by therefromhere
Details
Authortherefromhere
LicenseNo License
Categorywahapedia.ru/kill-team2
Created
Updated
Size5.7 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
To use, navigate to one of the Kill Team pages on and print to PDF at 100% scale.
Currently mainly tested in Chrome (relies on "has" selector, which doesn't fully work in Firefox yet).
Source code
/* ==UserStyle==
@name Wahupedia Kill Team Ploy Cards
@namespace github.com/openstyles/stylus
@version 0.1.1
@description Formatting of Kill Team 2021 Tactical and Strategic Ploy as cards suitable for printing
@author Me
@preprocessor less
@var text card-width "Print width of cards (default to MTG size)" 63mm
@var text card-height "Print height of cards (default to MTG size)" 88mm
@var text font-size "Font size" 80%
==/UserStyle== */
/*
@var <type> <name> <label> <default value> */
@-moz-document url-prefix("https://wahapedia.ru/kill-team2/kill-teams/") {
.cardSize {
font-size: @font-size;
width: @card-width;
max-width: @card-width;
height: @card-height;
max-height: @card-height;
}
.cardBorder {
/* card outline */
border-color: #eee;
border-width: 0.1px;
border-style: solid;
}
@media print {
.stratWrapper {
.cardSize();
.cardBorder();
}
/* padding */
.stratWrapper {
padding: 0px 6px;
}
.stratName {
margin: 0px -6px 6px;
padding: 0px 6px;
}
* {
/* so stratWrapper size works even with padding */
box-sizing: border-box;
}
.Columns2 {
-moz-column-count: 2;
-moz-column-gap: 14px;
-webkit-column-count: 2;
-webkit-column-gap: 14px;
column-count: 2;
column-gap: 14px;
}
td {
font-size: 90%;
}
a:link {
/* disable link colour */
color: black;
}
.pagebreak {
page-break-inside: unset!important;
}
span.tt {
/* disable tooltip underline */
border-bottom: none;
}
.noprint,
.page_header {
display: none !important;
}
/* hide bits of the page that aren't ploy cards*/
#wrapper > div:nth-child(4)/* table of contents */
/* books */
,
a[name="Books"] + h2,
a[name="Books"] + h2 + table/* faq */
,
a[name="FAQ"] + h2,
a[name="FAQ"] + h2 + div/* archetype */
,
div.archetype,
div.archetype + h2,
div.archetype + h2 + p/* abilities */
,
a[name="Abilities"] + h2,
a[name="Abilities"] + h2 + p,
a[name="Abilities"] + h2 + p + div/* strategic ploys header */
,
a[name="Strategic-Ploys"] + h2,
a[name="Strategic-Ploys"] + h2 + p/* tac ploys header */
,
a[name="Tactical-Ploys"] + h2,
a[name="Tactical-Ploys"] + h2 + p/* tacops header */
,
a[name="Tac-Ops"] + h2,
a[name="Tac-Ops"] + h2 + p,
#wrapper > div.ShowNarrativeSpecOps/* spec ops */
,
a[name="Equipment"] + h2,
a[name="Equipment"] + h2 + p,
#wrapper div:has(> p.h_relic)/* equipment */
/* data cards */
,
a[name="Datacards"] + h2,
#wrapper div.dsOuterFrame,
#wrapper div:has(> a[name="Operatives"])/* tacops */
,
div.stratWrapper:has(> div.stratTacOp) {
display: none !important;
}
/* fix print size on Chrome */
#wrapper {
width: auto !important;
}
#wrapper2 {
width: auto !important;
}
}
}
@-moz-document url-prefix("https://wahapedia.ru/kill-team2/kill-teams/veteran-guardsman/") {
.cardSize {
font-size: @font-size;
width: @card-width;
max-width: @card-width;
height: @card-height;
max-height: @card-height;
}
.cardBorder {
/* card outline */
border-color: #eee;
border-width: 0.1px !important;
border-style: solid;
}
@media print {
div.BreakInsideAvoid > div.Columns2 > div.BreakInsideAvoid > table/* guardsmen order */
,
div.BreakInsideAvoid:has(> a[name="Artillery-Barrage"]),
div.BreakInsideAvoid:has(> a[name="Marked-Air-Strike"]),
div.BreakInsideAvoid:has(> a[name="Guided-Missile"]),
div.BreakInsideAvoid:has(> a[name="Strafing-Run"]) {
.cardSize();
.cardBorder();
padding: 0px 6px;
margin: 10px;
}
div.BreakInsideAvoid:has(> a[name="Strafing-Run"]) {
font-size: 65%;
}
a[name="Strafing-Run"] ~ h4 {
font-size: 200%;
}
div.BreakInsideAvoid > div.Columns2 > div.BreakInsideAvoid > table/* guardsmen order */
{
font-size: 100%;
}
div.BreakInsideAvoid > div.Columns2 > div.BreakInsideAvoid > table td/* guardsmen order */
{
vertical-align: top;
}
div.BreakInsideAvoid > div.Columns2 > div.BreakInsideAvoid > table p:nth-child(2):before/* guardsmen order */
{
white-space: pre;
content: "Guardsmen Order\A";
font-weight: 500;
font-style: italic;
}
a[name="Abilities"] + h2 + p + div/* unhide abilities so we can make cards of guardsmen orders */
{
display: block !important;
}
a[name="Ancillary-Support"] + h2
{
display: none;
}
}
}