Difference between revisions of "Template:PAGEHEADER"
Jump to navigation
Jump to search
m (description url update) |
(url update) |
||
Line 29: | Line 29: | ||
==Wikicode== | ==Wikicode== | ||
<pre> | <pre> | ||
<includeonly>{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|thumb|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}|link=https://www. | <includeonly>{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|thumb|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}|link=https://www.vgoplayers.com/wiki/index.php/{{PAGENAME}}}}|frame|{{PAGENAME}}{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}}]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly> | ||
</pre></noinclude><includeonly>{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|thumb|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}|link=https://www. | </pre></noinclude><includeonly>{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|thumb|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}|link=https://www.vgoplayers.com/wiki/index.php/{{PAGENAME}}}}|frame|{{PAGENAME}}{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}}]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly> |
Revision as of 10:37, 22 February 2020
Template Description
- This template inserts a picture with the same name as the Page Title, and a TOC underneath that picture.
Template Usage
- Can be used on any page by inserting the code block below at the top of the page.
{{ Page Header | Image = myimagename.png | Caption = Caption Text | Size = 400 | URL = http://mypage.org/myitemlink }} |
or |
{{PAGEHEADER | Image = myimagename.png | Caption = Caption Text | Size = 400 | URL = http://mypage.net/myitemlink }} |
or |
{{PAGEHEADER}} |
- You can change the name of the image file if necessary, otherwise it will use 'pagename'+'.png' and try to display an image with that name.
- If "URL" field is blank, the image will automatically link to https://www.vgoplayers.com/wiki/index.php/{{PAGENAME}}
Wikicode
<includeonly>{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|thumb|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}|link=https://www.vgoplayers.com/wiki/index.php/{{PAGENAME}}}}|frame|{{PAGENAME}}{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}}]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly>