Template:Page Icon/Doc

From Arcen Wiki
Jump to navigation Jump to search

Summary

This template is used for adding images to the very top of the page. Like userboxes, it's mainly meant for customizing userpages.

Parameters

Page Icon
Parameter Scope Description

{{#splitargs:Parameters/Line|3}}

Examples

{{Page Icon|Attention.png|topindent=-30px}}

<cleanspace> {{#define:image|Attention.png }} {{#define:label| }} {{#define:link| }} {{#define:width|25 }} {{#define:align|right }} {{#define:sideindent|0}} {{#define:topindent|-23 }} {{#local:sideindent|{{#explode:{{{sideindent}}}|px|0}}}} {{#local:topindent|{{#explode:-30px|px|0}}}} {{#local:width|{{#explode:{{{width}}}|px|0}}}} {{#local:width|{{#mediawidth:{{{image}}}}}|if=}} {{#inherit:topicons{{{align}}}}}

</cleanspace><div class="pageicon{{{align}}}" style="position:absolute; z-index:50; {{{align}}}:Expression error: Unrecognized punctuation character "{".px; top:-30pxpx; ">[[File:{{{image}}}|]]<cleanspace>

{{#local:topicons{{{align}}}|Expression error: Unrecognized punctuation character "{".}} {{#return:topicons{{{align}}}}} </cleanspace> Result is this image (20px) at the top of the page.

{{Page Icon|Icon-Information.png|Community Portal|ArcenWiki:Community Portal|20px|left|100|30}}

<cleanspace> {{#define:image|Icon-Information.png }} {{#define:label|Community Portal }} {{#define:link|ArcenWiki:Community Portal }} {{#define:width|20px }} {{#define:align|left }} {{#define:sideindent|100}} {{#define:topindent|30 }} {{#local:sideindent|{{#explode:{{{sideindent}}}|px|0}}}} {{#local:topindent|{{#explode:{{{topindent}}}|px|0}}}} {{#local:width|{{#explode:{{{width}}}|px|0}}}} {{#local:width|{{#mediawidth:{{{image}}}}}|if=}} {{#inherit:topicons{{{align}}}}}

</cleanspace><div class="pageicon{{{align}}}" style="position:absolute; z-index:50; {{{align}}}:Expression error: Unrecognized punctuation character "{".px; top:{{{topindent}}}px; ">[[File:{{{image}}}|]]<cleanspace>

{{#local:topicons{{{align}}}|Expression error: Unrecognized punctuation character "{".}} {{#return:topicons{{{align}}}}} </cleanspace> Result is this image (20px) indented 100 pixels from the left side of the screen that links to the Community Portal.