Difference between revisions of "Template:PAGEHEADER"

From Vanguard Wiki
Jump to navigation Jump to search
(created)
 
(license link update)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{ PAGEHEADER | Image = Images.jpg | Size = 400 | URL = Main Page }}
+
<noinclude>
[[Category:Template]][[Category:Header]]
+
{{PAGEHEADER |image = Vanguard logo 041106.jpg |size = 400 |url = Main Page |license = icon}}
 +
{{CATEGORY|Template|Header}}
 
==Template Description==
 
==Template Description==
* This template inserts a picture with the same name as the Page Title, and a TOC underneath that picture.  
+
* This template can insert a quicklinks bar, a picture with the name <nowiki>{{PAGENAME}}</nowiki>.png, a TOC underneath that picture, and a Creative Commons license image/link under the TOC.  
 
==Template Usage==
 
==Template Usage==
 
* 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>{{ Page Header | Image = myimagename.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 |license = icon }}</pre>
 
|-
 
|-
 
|text-align="center"|or
 
|text-align="center"|or
Line 12: Line 13:
 
|<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
 +
| license = yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 26: Line 28:
 
|}
 
|}
 
* 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.
 
* 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 ''<nowiki>https://www.bg-wiki.com/bg/{{PAGENAME}}</nowiki>''
+
* If "URL" field is blank, the image will automatically link to ''<nowiki>https://www.vgoplayers.com/wiki/index.php/{{PAGENAME}}</nowiki>''
 
==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.bg-wiki.com/bg/{{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.bg-wiki.com/bg/{{PAGENAME}}}}|frame|{{PAGENAME}}{{#if:{{{Caption|}}}|<br>{{{Caption}}}|}}]]}}<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div></includeonly>
+
<includeonly>{| class="wikitable" style="white-space: nowrap;" width="100%"
 +
| style="text-align: left;" width=45% |'''VGOPlayers''' &#9724; [https://vgoplayers.com/wiki/index.php/Main_Page Wiki] &#9724; [http://vgoplayers.com/community/ Forum] [https://discord.gg/Ry8d5my Discord]
 +
| style="text-align: center;" width=10%|'''QUICKLINKS'''
 +
| style="text-align: right;" width=45% |'''VGOEmulator''' &#9724; [https://wiki.vgoemulator.net/Docs/Main_Page Wiki] &#9724; [http://vgoemulator.net Portal] &#9724; [https://www.vgoemulator.net/index.php?p=bugs Bugs] &#9724; [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>{{#if:{{{license|}}}|[[file:{{#switch:{{{license}}}|yes=License-gnu-fdl.png|image=License-gnu-fdl.png.png|icon=License-gnu-fdl.png}}|50px|link=https://www.gnu.org/licenses/fdl-1.3.html|right|frameless]]|}}</includeonly><noinclude>
 +
 
 +
</pre></noinclude>
 +
<includeonly>{| class="wikitable" style="white-space: nowrap;" width="100%"
 +
| style="text-align: left;" width=45% |'''VGOPlayers''' &#9724; [https://vgoplayers.com/wiki/index.php/Main_Page Wiki] &#9724; [http://vgoplayers.com/community/ Forum] [https://discord.gg/Ry8d5my Discord]
 +
| style="text-align: center;" width=10%|'''QUICKLINKS'''
 +
| style="text-align: right;" width=45% |'''VGOEmulator''' &#9724; [https://wiki.vgoemulator.net/Docs/Main_Page Wiki] &#9724; [http://vgoemulator.net Portal] &#9724; [https://www.vgoemulator.net/index.php?p=bugs Bugs] &#9724; [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>{{#if:{{{license|}}}|[[file:{{#switch:{{{license}}}|yes=License-gnu-fdl.png|image=License-gnu-fdl.png.png|icon=License-gnu-fdl.png}}|50px|link=https://www.gnu.org/licenses/fdl-1.3.html|right|frameless]]|}}</includeonly>

Latest revision as of 10:09, 5 April 2020


VGOPlayersWikiForum Discord QUICKLINKS VGOEmulatorWikiPortalBugsProject Manager
Vanguard logo 041106.jpg
License-gnu-fdl.png

Template Description

  • This template can insert a quicklinks bar, a picture with the name {{PAGENAME}}.png, a TOC underneath that picture, and a Creative Commons license image/link under the TOC.

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 |license = icon }}
or
{{PAGEHEADER
 | image   = myimagename.png
 | caption = Caption Text
 | size    = 400
 | url     = http://mypage.net/myitemlink
 | license = yes
}}
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>{| class="wikitable" style="white-space: nowrap;" width="100%"
| style="text-align: left;" width=45% |'''VGOPlayers''' ◼ [https://vgoplayers.com/wiki/index.php/Main_Page Wiki] ◼ [http://vgoplayers.com/community/ Forum] [https://discord.gg/Ry8d5my Discord]
| 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]
|}{{#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>{{#if:{{{license|}}}|[[file:{{#switch:{{{license}}}|yes=License-gnu-fdl.png|image=License-gnu-fdl.png.png|icon=License-gnu-fdl.png}}|50px|link=https://www.gnu.org/licenses/fdl-1.3.html|right|frameless]]|}}</includeonly><noinclude>