Welcome to Warhammer 40k - Lexicanum! Log in and join the community.

Difference between revisions of "Template:Portal Linkbox/doc"

From Warhammer 40k - Lexicanum
Jump to: navigation, search
(Parameters)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
* '''"Template:Portal Box Head Styles/Portal:''PORTAL NAME''"''' for the icon holder table cell
 
* '''"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
 
* '''"Template:Portal Box Styles/Portal:''PORTAL NAME''"''' for the text table cell
 
This template only allows for simple one-row portal boxes, for sub-versions of the boxes with an additional line and link, use <tt>'''{{tl|Portal Linkbox2}}'''</tt> instead.
 
  
 
=== Usage ===
 
=== Usage ===
Line 15: Line 13:
 
</pre>
 
</pre>
  
{{Portal Linkbox|Space Marines|Crux Terminatus.png}}
+
{{Portal Linkbox|Chaos|Chaos.png}}
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
Line 37: Line 35:
 
}}
 
}}
 
</pre>
 
</pre>
 
Note: We recommend filling all the parameters.
 
  
 
'''Portal Name'''
 
'''Portal Name'''
Line 47: Line 43:
  
 
'''Subpage'''
 
'''Subpage'''
:For template variants, the page title that holds the main informations about that variant.<includeonly>
+
:Optional parameter for template variants, the page title that holds the main informations about that variant.<includeonly>
 
{{DEFAULTSORT:Portal Linkbox}}
 
{{DEFAULTSORT:Portal Linkbox}}
 
[[Category:Template-making Templates]]
 
[[Category:Template-making Templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 14:49, 24 June 2009

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.