Club Penguin Archives

The Club Penguin Wiki Network was abandoned by its tech staff. This is a recreation of the original site. Your original CPWN account will not work here. Any issues, please contact Sky.

Template:MobileCat: Difference between revisions

From Club Penguin Archives
Jump to navigation Jump to search
imported>Mario Rk
No edit summary
imported>Mario Rk
No edit summary
Line 1: Line 1:
<includeonly>{{ac}}
<includeonly>{{ac}}
|{{#if:{{{edition|}}}|rowspan={{{rowspan|}}}{{!}}{{{edition|}}}{{!!}}|}}{{#ifeq:{{{pg|}}}|1|<small>COVER</small>|{{#expr: {{{pg|}}} - 1 }}}}||{{#switch:{{{v|}}}|#default=[[Media:ENCatalogues{{{img|}}}-{{{pg|}}}.png|EN]]{{!!}}[[Media:PTCatalogues{{{img|}}}-{{{pg|}}}.png|PT]]{{!!}}[[Media:FRCatalogues{{{img|}}}-{{{pg|}}}.png|FR]]{{!!}}[[Media:ESCatalogues{{{img|}}}-{{{pg|}}}.png|ES]]{{#ifeq:{{{v|}}}|1|{{!!}}[[Media:DECatalogues{{{img|}}}-{{{pg|}}}.png|DE]]{{!!}}[[Media:RUCatalogues{{{img|}}}-{{{pg|}}}.png|RU]]|{{#if:{{{edition|}}}|{{!!}}colspan=2 rowspan={{{rowspan|}}} {{n/a}}|}}}}|2= colspan=6{{!}}[[Media:ENCatalogues{{{img|}}}-{{{pg|}}}.png|GLOBAL]]|3= colspan=4{{!}}[[Media:ENCatalogues{{{img|}}}-{{{pg|}}}.png|GLOBAL]]}}</includeonly><noinclude>
|{{#if:{{{e|}}}|rowspan={{{r|}}}{{!}}{{{e|}}}{{!!}}|}}{{#ifeq:{{{p|}}}|1|<small>COVER</small>|{{{d|{{#expr: {{{p|}}} - 1 }}}}}}}||{{#switch:{{{v|}}}|#default=[[Media:ENCatalogues{{{i|}}}-{{{p|}}}.png|EN]]{{!!}}[[Media:PTCatalogues{{{i|}}}-{{{p|}}}.png|PT]]{{!!}}[[Media:FRCatalogues{{{i|}}}-{{{p|}}}.png|FR]]{{!!}}[[Media:ESCatalogues{{{i|}}}-{{{p|}}}.png|ES]]{{#ifeq:{{{v|}}}|1|{{!!}}[[Media:DECatalogues{{{i|}}}-{{{p|}}}.png|DE]]{{!!}}[[Media:RUCatalogues{{{i|}}}-{{{p|}}}.png|RU]]|{{#if:{{{e|}}}|{{!!}}colspan=2 rowspan={{{r|}}} {{n/a}}|}}}}|2= colspan=6{{!}}[[Media:ENCatalogues{{{i|}}}-{{{p|}}}.png|GLOBAL]]|3= colspan=4{{!}}[[Media:ENCatalogues{{{i|}}}-{{{p|}}}.png|GLOBAL]]}}</includeonly><noinclude>
==Parameters==
==Parameters==
<pre>
<pre>
{{MobileCat
{{MobileCat
|edition=
|e=
|rowspan=
|r=
|img=
|i=
|pg=
|p=
|d=
|v=
|v=
}}
}}
Line 13: Line 14:


===Explanation===
===Explanation===
<code>{{MobileCat</code> - Opening of the template.<br>
<code>{{MobileCat</code> Opening of the template.<br>
<code>|edition=</code> - The month of the catalog's release, preferably abbreviated in an [[wikipedia:Date and time notation in the United States|American format]] (e.g. “Jul 2015” for July 2015) for unity with [[cpw:Club Penguin Wiki|Club Penguin Wiki]] articles. This should only be used for the catalog's cover page, and will allow the usage of <code>rowspan</code>.<br>
<code>|e=</code> The month of the catalog's release, preferably abbreviated in an [[wikipedia:Date and time notation in the United States|American format]] (e.g. “Jul 2015” for July 2015) for unity with [[cpw:Club Penguin Wiki|Club Penguin Wiki]] articles. This should only be used for the catalog's cover page, and will allow the usage of <code>r</code>.<br>
<code>|rowspan=</code> - How many rows the edition should span. This parameter will only function if <code>edition</code> is active.<br>
<code>|r=</code> How many rows the edition should span. This parameter will only function if <code>e</code> is active.<br>
<code>|img=</code> - To input part of the catalog page's filename to be linked. The full filename should not be input because the template has prefilled the portion of the filename that should be shared by all mobile catalog pages according to Club Penguin Archives filename formatting. For instance, if the file were [[:File:ENCataloguesClothingJul2015-2.png]], then you would only need to input <code>|img=ClothingJul2015</code> and <code>|pg=2</code>, and the rest of the filename will have been automatically prefilled.<br>
<code>|i=</code> To input part of the catalog page's filename to be linked. The full filename should not be input because the template has prefilled the portion of the filename that should be shared by all mobile catalog pages according to Club Penguin Archives filename formatting. For instance, if the file were [[:File:ENCataloguesClothingJul2015-2.png]], then you would only need to input <code>|i=ClothingJul2015</code> and <code>|p=2</code>, and the rest of the filename will have been automatically prefilled.<br>
<code>|pg=</code> The page of the catalog.<br>
<code>|p=</code> The page of the catalog.<br>
<code>|v=</code> Determines the version of the template you wish to use. By default, the template displays English, Portuguese, French and Spanish files for the inputted page. Other possible parameters are as follows:
<code>|d=</code> – The display page of the catalog, in case something other than the page number given is needed for display purposes.<br>
:*'''1''' - Displays English, Portuguese, French, Spanish, German and Russian versions of the inputted page.
<code>|v=</code> Determines the version of the template you wish to use. By default, the template displays English, Portuguese, French and Spanish files for the inputted page. Other possible parameters are as follows:
:*'''2''' - Displays a global version of the inputted page from when German and Russian were still actively translated on Club Penguin.
:*'''1''' Displays English, Portuguese, French, Spanish, German and Russian versions of the inputted page.
:*'''3''' - Displays a global version of the inputted page from after German and Russian translations were discontinued on Club Penguin.
:*'''2''' Displays a global version of the inputted page from when German and Russian were still actively translated on Club Penguin.
<code>}}</code> - Closing of the template.
:*'''3''' Displays a global version of the inputted page from after German and Russian translations were discontinued on Club Penguin.
<code>}}</code> Closing of the template.
</noinclude>
</noinclude>

Revision as of 09:24, 12 July 2021

Parameters

{{MobileCat
|e=
|r=
|i=
|p=
|d=
|v=
}}

Explanation

{{MobileCat – Opening of the template.
|e= – The month of the catalog's release, preferably abbreviated in an American format (e.g. “Jul 2015” for July 2015) for unity with Club Penguin Wiki articles. This should only be used for the catalog's cover page, and will allow the usage of r.
|r= – How many rows the edition should span. This parameter will only function if e is active.
|i= – To input part of the catalog page's filename to be linked. The full filename should not be input because the template has prefilled the portion of the filename that should be shared by all mobile catalog pages according to Club Penguin Archives filename formatting. For instance, if the file were File:ENCataloguesClothingJul2015-2.png, then you would only need to input |i=ClothingJul2015 and |p=2, and the rest of the filename will have been automatically prefilled.
|p= – The page of the catalog.
|d= – The display page of the catalog, in case something other than the page number given is needed for display purposes.
|v= – Determines the version of the template you wish to use. By default, the template displays English, Portuguese, French and Spanish files for the inputted page. Other possible parameters are as follows:

  • 1 – Displays English, Portuguese, French, Spanish, German and Russian versions of the inputted page.
  • 2 – Displays a global version of the inputted page from when German and Russian were still actively translated on Club Penguin.
  • 3 – Displays a global version of the inputted page from after German and Russian translations were discontinued on Club Penguin.

}} – Closing of the template.