Difference between revisions of "Template:Resource"
Jump to navigation
Jump to search
(Add VimeoID to embed videos) |
|||
Line 2: | Line 2: | ||
<div class="frontpage-tpl"> | <div class="frontpage-tpl"> | ||
<div class="tpl-title"><big>{{{Name}}}</big></div> | <div class="tpl-title"><big>{{{Name}}}</big></div> | ||
− | <div class="tpl-body"><p style="text-align:center;"><b><big>[{{{Link}}} Click here to access the resource.]</big></b></p> | + | <div class="tpl-body"> |
+ | {{ #if: {{{Link|{{{Link|}}}}}} | <p style="text-align:center;"><b><big>[{{{Link}}} Click here to access the resource.]</big></b></p> | }} | ||
+ | {{ #if: {{{VimeoID|{{{VimeoID|}}}}}} | {{#evt:service=vimeo|id={{{VimeoID}}}|alignment=center}} | }} | ||
<div class="tpl-content" style="margin-top: 0;"> | <div class="tpl-content" style="margin-top: 0;"> | ||
− | <div class="tpl-content-1 tpl-col"> | + | <div class="tpl-content-1 {{ #if: {{{VimeoID|{{{VimeoID|}}}}}} ||tpl-col|}}"> |
<h2>Resource Information</h2> | <h2>Resource Information</h2> | ||
{| summary="Wm-license-information-table-summary" class="toccolours vevent" style="width: 100%;" cellpadding="2" | {| summary="Wm-license-information-table-summary" class="toccolours vevent" style="width: 100%;" cellpadding="2" | ||
Line 28: | Line 30: | ||
|} | |} | ||
</div> | </div> | ||
+ | {{ #if: {{{VimeoID|{{{VimeoID|}}}}}} || | ||
<div class="tpl-content-2 tpl-col tpl-col-logo"> | <div class="tpl-content-2 tpl-col tpl-col-logo"> | ||
[[Image:{{{Image|}}}|link={{{Link}}}]] | [[Image:{{{Image|}}}|link={{{Link}}}]] | ||
</div> | </div> | ||
+ | | }} | ||
</div></div> | </div></div> | ||
</div> | </div> | ||
Line 43: | Line 47: | ||
|Name = | |Name = | ||
|Link = (for exapmle: www.rvc.ac.uk) | |Link = (for exapmle: www.rvc.ac.uk) | ||
+ | |VimeoID = (for exapmle: 177680793) | ||
|Description = '''Type''' e.g. video <br> What is the resource about <br> duration if applicable | |Description = '''Type''' e.g. video <br> What is the resource about <br> duration if applicable | ||
|Source = | |Source = |
Latest revision as of 14:10, 20 January 2021
To use this template insert the following information. (case sensitive)
{{Resource |Name = |Link = (for exapmle: www.rvc.ac.uk) |VimeoID = (for exapmle: 177680793) |Description = '''Type''' e.g. video <br> What is the resource about <br> duration if applicable |Source = |Date = |Author = |Licensing = |Image = }}