Difference between revisions of "Template:Page Icon/Doc"

From Arcen Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (→‎Examples: Fixing links, replaced: UESPWiki → ArcenWiki (3))
 
Line 19: Line 19:
 
Result is this image ([[File:Attention.png|20px]]) at the top of the page.
 
Result is this image ([[File:Attention.png|20px]]) at the top of the page.
  
<pre>{{Page Icon|Icon-Information.png|Community Portal|UESPWiki:Community Portal|20px|left|100|30}}</pre>
+
<pre>{{Page Icon|Icon-Information.png|Community Portal|ArcenWiki:Community Portal|20px|left|100|30}}</pre>
{{Page Icon|Icon-Information.png|Community Portal|UESPWiki:Community Portal|20px|left|100|30}}
+
{{Page Icon|Icon-Information.png|Community Portal|ArcenWiki:Community Portal|20px|left|100|30}}
Result is this image ([[File:Icon-Information.png|20px]]) indented 100 pixels from the left side of the screen that links to the [[UESPWiki:Community Portal|Community Portal]].
+
Result is this image ([[File:Icon-Information.png|20px]]) indented 100 pixels from the left side of the screen that links to the [[ArcenWiki:Community Portal|Community Portal]].
 
<includeonly>[[Category:Markup Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Markup Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 19:48, 31 January 2015

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.