MediaWiki:PDFCreator/Onboarding Handbook: Difference between revisions

Meryam Sahin (talk | contribs)
Update pdf template
 
Meryam Sahin (talk | contribs)
Update pdf template
 
(9 intermediate revisions by the same user not shown)
pdfcreator_template_intro
Line 2: Line 2:
<div class="pdfcreator-intro-cover-cnt">
<div class="pdfcreator-intro-cover-cnt">
<div class="pdfcreator-intro-title">{{{book-title}}}</div>
<div class="pdfcreator-intro-title">{{{book-title}}}</div>
<div class="pdfcreator-intro-text"></div>
<div class="pdfcreator-intro-text">{{{book-subtitle}}}</div>
</div>
</div>
</div>
</div>
pdfcreator_template_header
Line 2: Line 2:
<table>
<table>
<tr>
<tr>
<td>
<td><div class="pdfcreator-runningheader-logo">{{{logo}}}</div></td>
<div class="pdfcreator-runningheader-logo">
<td><h1 class="title">{{{title}}}</h1></td>
{{{logo}}}
</div>
</td>
<td>
<h1 class="title">{{{title}}}</h1>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
pdfcreator_template_footer
Line 2: Line 2:
<table>
<table>
<tr>
<tr>
<td>
<td><span>{{int:pdfcreator-pdf-export-time}}: {{#time: d.m.Y|now}}</span></td>
<span>{{int:pdfcreator-pdf-export-time}}: {{#time: d.m.Y|now}}</span>
<td><span></span></td>
</td>
<td><span>{{int:pdfcreator-pdf-param-currentpagenumber-label}} {{{currentpagenumber}}} {{int:pdfcreator-pdf-param-totalpagescount-label}} {{{totalpagescount}}}</span></td>
<td>
<span></span>
</td>
<td>
<span>{{int:pdfcreator-pdf-param-currentpagenumber-label}} {{{currentpagenumber}}} {{int:pdfcreator-pdf-param-totalpagescount-label}} {{{totalpagescount}}}</span>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
pdfcreator_template_outro
Line 1: Line 1:
<div class="pdfcreator-outro">
 
</div>
pdfcreator_template_styles
Line 150: Line 150:
background-size: 21cm;
background-size: 21cm;
width: 21cm;
width: 21cm;
height: 29.7cm;
height: 21cm;
background-repeat: no-repeat;
background-repeat: no-repeat;
}
}
Line 156: Line 156:
.pdfcreator-intro-cover-cnt {
.pdfcreator-intro-cover-cnt {
position: absolute;
position: absolute;
top: 12.5cm;
top: 23cm;
left: 1.75cm;
left: 0cm;
width: 17.5cm;
width: 21cm;
max-height: 6.5cm;
text-align: center;
overflow: hidden;
}
}


.pdfcreator-intro-title {
.pdfcreator-intro-title {
font-size: 40px;
font-size: 34px;
color: #3E5389;
color: #3f6f9f;
font-weight: 900;
font-weight: 900;
line-height: 1.3em;
border-top: 2px solid #CCDBEB;
padding-top: 1cm;
width: 15cm;
margin: 0 auto;
}
}


.pdfcreator-intro-text {
.pdfcreator-intro-text {
font-size: 30px;
font-size: 20px;
font-weight: 700;
font-weight: 500;
line-height: 1.3em;
line-height: 1.3em;
color: #3f6f9f;
margin-top: 0.35cm;
opacity: 0.90;
}
/*** CUSTOMIZINGS *** /
/* position and resize logo */
.pdfcreator-runningheaderfix>table .pdfcreator-runningheader-logo img {
width: auto !important;
height: 1cm !important;
margin-top: 0.5cm;
}
/* remove border of header */
.pdfcreator-runningheaderfix>table {
border-bottom: none !important;
}
/*smaller font sizes and larger line-height in content */
.pdfcreator-page-content th,
.pdfcreator-page-content td,
.pdfcreator-page-content div,
.pdfcreator-page-content li,
.pdfcreator-page-content pre,
.pdfcreator-page-content p {
font-size: 9.5pt;
line-height: 1.8em;
}
/* smaller bullet points in lists*/
.pdfcreator-page-content ul {
list-style-type: none !important;
list-style: none !important;
padding-left: 1.2em;
}
.pdfcreator-page-content ul li {
list-style-type: none !important;
position: relative;
}
.pdfcreator-page-content ul li::before {
content: "\2022";
/* Unicode bullet (•) */
position: absolute;
left: -1em;
font-size: 1em;
/* fully controllable */
}
.pdfcreator-page-content .toc ul li::before {
content: "";
/* remove custom bullet from TOC */
}
/* style h2 headings */
.pdfcreator-page-content h2 {
border-bottom: none;
margin: 2em 0;
}
/* TOC styling */
.toc {
border: none;
padding: 0;
margin: 1em 0;
}
/* syntaxhighlight and preformatted text with smaller font size */
.mw-highlight pre,
pre {
font-size: 8.5pt !important;
line-height: 1.5em !important;
}
/*wikitable print color white */
.wikitable {
background-color: #fff
}
.wikitable tr th {
background-color: #f1f3f9
}
/*avoid orphans */
h2,
h3,
h4 {
-fs-keep-with-next: always;
margin-top: 1.2em;
}
p {
-fs-page-break-min-height: 5em;
line-height: 1.5;
}
}
pdfcreator_template_options
Line 1: Line 1:
{
{
"embed-page-toc": true,
"embed-page-toc": true,
"nsPrefix": true,
"attachments": true,
"attachments": true,
"suppress-links": false
"suppress-links": false,
"no-redirect": false,
"coverBackground": ""
}
}

Latest revision as of 07:56, 17 June 2026