Difference between revisions of "Template:PAGEHEADER"

From Vanguard Wiki
Jump to navigation Jump to search
(quicklinks bar update)
m (capitalization fix)
Line 3: Line 3:
| style="text-align: center;" width=10%|'''QUICKLINKS'''
| style="text-align: center;" width=10%|'''QUICKLINKS'''
| style="text-align: right;" width=45% |'''VGOEmulator''' ◼ [https://wiki.vgoemulator.net/Docs/Main_Page Wiki] ◼ [http://vgoemulator.net Portal] ◼ [https://www.vgoemulator.net/index.php?p=bugs Bugs] ◼ [https://www.vgoemulator.net/index.php?p=projman Project Manager]
| style="text-align: right;" width=45% |'''VGOEmulator''' ◼ [https://wiki.vgoemulator.net/Docs/Main_Page Wiki] ◼ [http://vgoemulator.net Portal] ◼ [https://www.vgoemulator.net/index.php?p=bugs Bugs] ◼ [https://www.vgoemulator.net/index.php?p=projman Project Manager]
|}{{#ifeq:{{lc:{{{Image}}}}}|none||[[File:{{#if:{{{Image|}}}|{{{Image}}}|{{PAGENAME}}.png}}|{{#if:{{{Size|}}}|{{{Size}}}px|250px}}|{{#if:{{{URL|}}}|link={{{URL}}}}}|right|frameless]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly><noinclude>
|}{{#ifeq:{{lc:{{{image}}}}}|none||[[file:{{#if:{{{image|}}}|{{{image}}}|{{PAGENAME}}.png}}|{{#if:{{{size|}}}|{{{size}}}px|250px}}|{{#if:{{{url|}}}|link={{{url}}}}}|right|frameless]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly><noinclude>
{{PAGEHEADER |Image = Vanguard logo 041106.jpg |Size = 400 |URL = Main Page }}
{{PAGEHEADER |image = Vanguard logo 041106.jpg |size = 400 |url = Main Page }}
{{CATEGORY|Template|Header}}
{{CATEGORY|Template|Header}}
==Template Description==
==Template Description==
Line 11: Line 11:
* Can be used on any page by inserting the code block below at the top of the page.
* Can be used on any page by inserting the code block below at the top of the page.
{|
{|
|<pre>{{PAGEHEADER |Image = Imagename.png |Caption = Caption Text |Size = 400 |URL = http://mypage.org/myitemlink }}</pre>
|<pre>{{PAGEHEADER |image = Imagename.png |caption = Caption Text |size = 400 |url = http://mypage.org/myitemlink }}</pre>
|-
|-
|text-align="center"|or
|text-align="center"|or
Line 17: Line 17:
|<pre>
|<pre>
{{PAGEHEADER
{{PAGEHEADER
  | Image   = myimagename.png
  | image   = myimagename.png
  | Caption = Caption Text
  | caption = Caption Text
  | Size   = 400
  | size   = 400
  | URL     = http://mypage.net/myitemlink
  | url     = http://mypage.net/myitemlink
}}
}}
</pre>
</pre>
Line 39: Line 39:
</div>
</div>
</div>
</div>
{{#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>
{{#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>
</pre></noinclude>

Revision as of 00:04, 5 March 2020

VGOPlayersWikiForum QUICKLINKS VGOEmulatorWikiPortalBugsProject Manager
Vanguard logo 041106.jpg

Template Description

  • This template inserts a quicklinks bar, a picture with the name 'PAGENAME.png' 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.
{{PAGEHEADER |image = Imagename.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><div style="border:0; margin: 0.2em 0px 0px;">
<div style="background:#f9f9f9; padding:4px; border:1px solid #aaaaaa; margin-bottom:5px;">
'''QUICKLINKS''' ◼ [[Main_Page|VGOPlayers Wiki]] ◼ [http://vgoplayers.com/community/ VGOPlayers Forum] ◼ [http://vgoemulator.net VGOE Portal] ◼ [https://www.vgoemulator.net/index.php?p=bugs VGOE Bugs] ◼ [https://www.vgoemulator.net/index.php?p=projman VGOE Status] ◼ 
</div>
</div>
{{#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>