Welcome to Warhammer 40k - Lexicanum! Log in and join the community.
Difference between revisions of "Template:Portal Linkbox"
From Warhammer 40k - Lexicanum
Non Sequitur (talk | contribs) m |
Siegfriedfr (talk | contribs) m |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class=" | + | <div class="portal" style="float:right; margin:0 0 0.5em 0.5em"> |
− | {| style="background:# | + | {| style="background:#acacac; font-size:85%; line-height:120%; width: 200px;text-align: center;{{Portal Box Head Styles/Portal:{{{1|Lexicanum}}}|{{{1|Lexicanum}}}}}}" |
|style="width:45px;height:45px;text-align:center"|[[Image:{{{2|Lexicanum symbol.jpg}}}|45x43px]] | |style="width:45px;height:45px;text-align:center"|[[Image:{{{2|Lexicanum symbol.jpg}}}|45x43px]] | ||
|style="padding:0 0.2em;{{Portal Box Styles/Portal:{{{1|Lexicanum}}}|{{{1|Lexicanum}}}}}}"|'''''[[Portal:{{{1|Lexicanum}}}|{{{1|Lexicanum}}} Portal]]'''''{{#if:{{{3|}}}|<br />'''''[[{{{3|Template:Portal Linkbox2}}}]]'''''}} | |style="padding:0 0.2em;{{Portal Box Styles/Portal:{{{1|Lexicanum}}}|{{{1|Lexicanum}}}}}}"|'''''[[Portal:{{{1|Lexicanum}}}|{{{1|Lexicanum}}} Portal]]'''''{{#if:{{{3|}}}|<br />'''''[[{{{3|Template:Portal Linkbox2}}}]]'''''}} |
Latest revision as of 07:57, 9 May 2024
[edit] [ ]
Template documentation

This is the {{Portal Linkbox}} a helper template used to creat portal link boxes.
The graphics for each portal box are loaded from 2 subtemplates:
- "Template:Portal Box Head Styles/Portal:PORTAL NAME" for the icon holder table cell
- "Template:Portal Box Styles/Portal:PORTAL NAME" for the text table cell
Usage
Usage example:
{{Portal Linkbox|Chaos|Chaos.png}}
Box variant example:
{{Portal Linkbox|Space Marines|Darkangelslogo.png|Dark Angels}}
Parameters
List of all parameters:
{{Portal Linkbox |Portal Name |Image name |Subpage }}
Portal Name
- Provides both the target for the link and the path for the sub-templates containing the extra css styles
Image name
- Name of the file to be used in the box, will be resized to a max width/height of 45×43 pixels. Doesn't have to be surrounded by [[]] or preceded by File:
Subpage
- Optional parameter for template variants, the page title that holds the main informations about that variant.