Template:Page Icon/Doc

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search

Summary[edit]

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

Parameters[edit]

Template:Parameters

Examples[edit]

{{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}}}|]]</div><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|UESPWiki:Community Portal|20px|left|100|15}}

<cleanspace> {{#define:image|Icon-Information.png }} {{#define:label|Community Portal }} {{#define:link|UESPWiki:Community Portal }} {{#define:width|20px }} {{#define:align|left }} {{#define:sideindent|100}} {{#define:topindent|15 }} {{#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}}}|]]</div><cleanspace> {{#local:topicons{{{align}}}|Expression error: Unrecognized punctuation character "{".}} {{#return:topicons{{{align}}}}} </cleanspace> Result is this image (20px) at the top of the page, indented 100 pixels from the left side of the screen and 15 pixels down that links to the Community Portal.