Difference between revisions of "Template:Portal"

From The Broken Dagger Wiki
Jump to: navigation, search
m (1 revision)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
<div class="tright" style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;">
+
{{#if:{{{2|}}}|{{Portal box|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}|{{{16|}}}}}|
{| style="background: transparent;"
+
<div class="noprint {{#ifeq:{{{left|}}}|yes|tleft|tright}} portal" style="border:solid #aaa 1px;margin:{{#if:{{{margin|}}}
|<div style="position: relative; width: 36px; height: 32px; overflow: hidden">
+
|{{{margin|}}}
<div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[Portal:{{{name|{{PAGENAME}}}}}|&nbsp;&nbsp;&nbsp;]]</div>
+
|{{#ifeq:{{{left|}}}|yes
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image|Portal.gif}}}|{{{size|36}}}x32px|Portal:{{{name|{{PAGENAME}}}}}]]</div>
+
  |0.5em 0.5em 0.5em 0
</div>
+
  |0.5em 0 0.5em 0.5em
|| '''''[[Portal:{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}} Portal]]'''''
+
}}
|}
+
}};">
</div><noinclude>
+
<table style="background:#f9f9f9; font-size:85%; line-height:110%; max-width:175px; {{#if:{{{boxsize|}}}
 
+
|width:{{{boxsize|}}}px;
==Use==
+
}}">
This template is used to link an article to its related [[Portal:Browse|portal]]
+
<tr><td>[[Image:{{{image|{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}} }}} }}} }} }}
 
+
|{{Portal/Images/{{ucfirst:{{lc:{{{name|{{{1|{{PAGENAME}}}}}}}}}}}}}}
==Location==
+
|{{Portal/Images/Default}}
This template is placed at the bottom of the article in the "See also" section.
+
}} }}}|{{#if:{{{size|}}}
 
+
|{{{size|}}}px
 +
|x{{{height|28}}}px
 +
}}{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}{{#ifeq:{{{alt|¬}}}|¬||{{!}}alt={{{alt|}}}}}]]
 +
</td><td style="padding:0 0.2em;">'''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes
 +
|<br />
 +
|&#32;
 +
}}portal]]'''''
 +
</td></tr>
 +
</table>
 +
</div>}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 14:49, 14 July 2014

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}