Template:PDFBOX: Difference between revisions

No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="resourcebox vcard"
<div class="infobox mw-parser-output vcard" style="width: 22em; max-width:100%; border: 1px solid #aaa; margin: 10px; float: right; background: #f9f9f9;">
style="width:22em; max-width:100%; border:1px solid #aaa;
    <table style="width: 100%; border: none;">
margin:10px; float:right; background:#f9f9f9; font-family:Arial, sans-serif;">
        <!-- Name and Image -->
 
        <tr>
<table style="width:100%; border:none; border-collapse:collapse;">
            <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 16px; padding: 5px;">{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}}}}</th>
 
        </tr>
<!-- TITLE -->
        <tr>
<tr>
            <td colspan="2" style="text-align: center;">
<th colspan="2" style="background:#e9e9e9; text-align:center;
                {{#if: {{{cover|}}}
font-size:16px; padding:8px;">
                    | [[File:{{{cover}}}|200px|center]]}}
{{{title|{{PAGENAME}}}}}
            </td>
</th>
        </tr>
</tr>
        {{#if: {{{caption|}}}
 
            | <tr>
<!-- COVER -->
                <td colspan="2" style="align: center; text-align: center; font-style: italic;">{{{caption}}}</td>
{{#if:{{{cover|}}}|
            </tr>
<tr>
        }}
<td colspan="2" style="text-align:center; padding:10px;">
{{#if: {{{youtube|}}}
[[File:{{{cover}}}|200px|center]]
| <tr>
</td>
    <th colspan="2" style="background:#e9e9e9; text-align:center; font-size:14px; padding:5px;">
</tr>
        Video
}}
    </th>
 
  </tr>
<!-- CAPTION -->
  <tr>
{{#if:{{{caption|}}}|
    <td colspan="2" style="text-align:center; padding:8px;">
<tr>
        <youtube width="300">{{{youtube}}}</youtube>
<td colspan="2" style="text-align:center; font-style:italic;
    </td>
font-size:12px; padding:6px;">
  </tr>
{{{caption}}}
</td>
</tr>
}}
}}
 
        <tr>
<!-- BUTTONS -->
            <th colspan="2" style="background: #e9e9e9; text-align: center; font-size: 14px; padding: 5px;">Resource</th>
        </tr>
<!-- BUTTONS (TEXT ONLY) -->
<tr>
<tr>
<td colspan="2" style="text-align:center; padding:12px;">
<td colspan="2" style="text-align:center; padding:1px;">
 
'''[{{{file}}} Read]''' or
<!-- READ -->
'''[{{{file}}} Download]
<div style="
'''</td>
display:inline-block;
padding:8px 10px;
margin:3px;
background:#2d89ef;
border-radius:4px;
font-size:13px;
text-align:center;
">
 
[[Media:{{{file}}}|📖 Read]]
 
</div>
 
<!-- DOWNLOAD -->
<div style="display:inline-block; margin:3px;">
[[Media:{{{file}}}|⬇ Download]]
</div>
 
</td>
</tr>
</tr>
 
        </table>
</table>
</div>
</div>
<noinclude>
== Example ==
{{PDFBOX
| title = Investing in Uganda Guide
| cover = Brief Guide on Investing in Uganda.pdf
| caption = A complete investment handbook
| file = File:Brief Guide on Investing in Uganda.pdf
}}
</noinclude>