This wiki uses the Creative Commons Attribution Share-Alike 4.0 (International) license.
Template:Meta portal banner: Difference between revisions
From Camianpedia
Jump to navigationJump to search
Now, Faster (talk | contribs) m 1 revision imported: From https://piklodex.com/Template:Meta_portal_banner |
Now, Faster (talk | contribs) We don’t allow British English content |
||
| Line 1: | Line 1: | ||
<includeonly><center> | <includeonly><center> | ||
{|style="clear: both; margin-top: 12px; border-left: 4px solid {{{border|#E0E0E0}}}; color: {{{ | {|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 [[ | 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 | * <code>border</code> = the color of the portal banner border (default: #E0E0E0). See [[Help:Colors]]. | ||
* <code>background</code> = the | * <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 | * <code>textColour</code> = the color of the text (default: Black). See [[Help:Colors]]. | ||
Example: | Example: | ||
<nowiki>{{Meta portal banner|border=#9683EC|background=#74A9E4| | <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| | {{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. |