Template:Meta portal banner: Difference between revisions

From Camianpedia
Jump to navigationJump to search
From https://en.vikidia.org/wiki/Template:Meta_portal_banner
 
We don’t allow British English content
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><center>
<includeonly><center>
{|style="clear: both; margin-top: 12px; border-left: 4px solid {{{border|#E0E0E0}}}; color: {{{textColour|#000000}}}; width: 90%; background: {{{background|#F0F0F0}}}; border-radius: 2px;"
{|style="clear: both; margin-top: 12px; border-left: 4px solid {{{border|#E0E0E0}}}; color: {{{textColor|#000000}}}; width: 90%; background: {{{background|#F0F0F0}}}; border-radius: 2px;"
|style="padding: 3px; text-align: left;"|{{#if:{{{image|}}}|[[File:{{{image}}}|{{{imageSize|}}}]]|}}
|style="padding: 3px; text-align: left;"|{{#if:{{{image|}}}|[[File:{{{image}}}|{{{imageSize|}}}]]|}}
|width="90%" style="font-size: 15px;"|{{{link|}}} {{{text}}} {{{detail|}}}
|width="90%" style="font-size: 15px;"|{{{link|}}} {{{text}}} {{{detail|}}}
|}
|}
</center></includeonly><noinclude>
</center></includeonly><noinclude>
This meta-template is used as part of [[PikloDex:Portals|portal]] banners templates. It should not be used directly on articles.
This meta-template is used as part of [[My wiki:Portals|portal]] banners templates. It should not be used directly on articles.


Parameters:
Parameters:
* <code>border</code> = the colour of the portal banner border (default: #E0E0E0). See [[Help:Colours]].
* <code>border</code> = the color of the portal banner border (default: #E0E0E0). See [[Help:Colors]].
* <code>background</code> = the colour of the portal banner background (default: #F0F0F0). See [[Help:Colours]].
* <code>background</code> = the color of the portal banner background (default: #F0F0F0). See [[Help:Colors]].
* <code>image</code> = the file name of the image that is to appear on the portal banner, e.g. "ImageFileName.svg" (default: no image).
* <code>image</code> = the file name of the image that is to appear on the portal banner, e.g. "ImageFileName.svg" (default: no image).
* <code>imageSize</code> = the size of the image that is to appear on the portal banner, e.g. "30px" (default: none)
* <code>imageSize</code> = the size of the image that is to appear on the portal banner, e.g. "30px" (default: none)
* <code>text</code> = the text that is to appear on the portal banner, including at least a link to the portal (required parameter, no default value)
* <code>text</code> = the text that is to appear on the portal banner, including at least a link to the portal (required parameter, no default value)
* <code>textColour</code> = the colour of the text (default: Black). See [[Help:Colours]].
* <code>textColour</code> = the color of the text (default: Black). See [[Help:Colors]].


Example:
Example:
  <nowiki>{{Meta portal banner|border=#9683EC|background=#74A9E4|textColour=#225522|image=Animal Crossing Leaf.png|imageSize=50px|text=[[Portal:Animal Crossing|Animal Crossing portal]] - All articles about [[Animal Crossing]]!}}</nowiki>
  <nowiki>{{Meta portal banner|border=#9683EC|background=#74A9E4|textColor=#225522|image=Animal Crossing Leaf.png|imageSize=50px|text=[[Portal:Animal Crossing|Animal Crossing portal]] - Every article about [[Animal Crossing]] and its franchise.}}</nowiki>


Results in:
Results in:


{{Meta portal banner|border=#9683EC|background=#74A9E4|textColour=#225522|image=Animal Crossing Leaf.png|imageSize=50px|text=[[Portal:Animal Crossing|Animal Crossing portal]] - All articles about [[Animal Crossing]]!}}
{{Meta portal banner|border=#9683EC|background=#74A9E4|textColor=#225522|image=Animal Crossing Leaf.png|imageSize=50px|text=[[Portal:Animal Crossing|Animal Crossing portal]] - Every article about [[Animal Crossing]] and its franchise.}}


[[Category:Portal banner templates|*]]
[[Category:Portal banner templates|*]]
[[Category:Meta templates|Portal banner]]
[[Category:Meta templates|Portal banner]]
</noinclude>
</noinclude>

Latest revision as of 11:09, 2 January 2026

This meta-template is used as part of portal banners templates. It should not be used directly on articles.

Parameters:

  • border = the color of the portal banner border (default: #E0E0E0). See Help:Colors.
  • background = the color of the portal banner background (default: #F0F0F0). See Help:Colors.
  • image = the file name of the image that is to appear on the portal banner, e.g. "ImageFileName.svg" (default: no image).
  • imageSize = the size of the image that is to appear on the portal banner, e.g. "30px" (default: none)
  • text = the text that is to appear on the portal banner, including at least a link to the portal (required parameter, no default value)
  • textColour = the color of the text (default: Black). See Help:Colors.

Example:

{{Meta portal banner|border=#9683EC|background=#74A9E4|textColor=#225522|image=Animal Crossing Leaf.png|imageSize=50px|text=[[Portal:Animal Crossing|Animal Crossing portal]] - Every article about [[Animal Crossing]] and its franchise.}}

Results in:

File:Animal Crossing Leaf.png Animal Crossing portal - Every article about Animal Crossing and its franchise.