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
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ac}}
<includeonly>{{#ifeq:{{{w|}}}|1|{{(!}}class="wikitable mw-collapsible mw-collapsed" style="margin: auto; width:250px;"
|{{#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>
{{!}}+ colspan=10 align=center{{!}}'''List of Files'''
!Page!!colspan="{{#switch:{{{v|}}}|#default=4|1=6|2=6|3=4}}"{{!}} Languages|}}
{{ac}}
|{{#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]]{{#switch:{{{v|}}}|#default=|1={{!!}}[[Media:DECatalogues{{{i|}}}-{{{p|}}}.png|DE]]{{!!}}[[Media:RUCatalogues{{{i|}}}-{{{p|}}}.png|RU]]|4={{!!}}colspan=2 {{n/a}}}}|2= colspan=6{{!}}[[Media:ENCatalogues{{{i|}}}-{{{p|}}}.png|GLOBAL]]|3= colspan=4{{!}}[[Media:ENCatalogues{{{i|}}}-{{{p|}}}.png|GLOBAL]]}}
{{#ifeq:{{{w|}}}|2|{{!)}}|{{!-}}}}
</includeonly><noinclude>
==Parameters==
==Parameters==
<pre>
<pre>
{{MobileCat
{{MobileCat
|edition=
|i=
|rowspan=
|d=
|img=
|p=
|pg=
|v=
|v=
|w=
}}
}}
</pre>
</pre>


===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>|i=</code> – Input part of the catalog page's filename to be linked. Do not input the full filename since the template will prefill 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 full filename were [[:File:ENCataloguesClothingJul2015-2.png|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>|rowspan=</code> - How many rows the edition should span. This parameter will only function if <code>edition</code> is active.<br>
<code>|d=</code> The display page of the catalog, in case something other than the given page number given is needed for display purposes.<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>|p=</code> – The page number of the catalog's image. Don't be alarmed if the number you put in is one number less than what was inputted; this is intentional since 1 will always convert to “<small>COVER</small>” and will subtract 1 from any number not equal to 1. Use <code>d</code> to display something other than the reference image's number.<br>
<code>|pg=</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>|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:
:*'''1''' Displays English, Portuguese, French, Spanish, German and Russian versions of the inputted page.
:*'''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.
:*'''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.
:*'''3''' - Displays a global version of the inputted page from after German and Russian translations were discontinued on Club Penguin.
:*'''4''' – Displays English, Portuguese, French and Spanish versions of inputted page and adds “<small><span style="color:gray;">N/A</span></small>” across the columns that would have featured the German and Russian localizations.
<code>}}</code> - Closing of the template.
<code>|w=</code> – Determines if the template is beginning or ending. By default, the template will assume that it is neither beginning nor ending.
:*'''1''' – Adds the opening of the wikitable.
:*'''2''' – Adds the closing of the wikitable.
<code>}}</code> Closing of the template.
 
</noinclude>
</noinclude>

Latest revision as of 07:36, 23 May 2022

Parameters

{{MobileCat
|i=
|d=
|p=
|v=
|w=
}}

Explanation

{{MobileCat – Opening of the template.
|i= – Input part of the catalog page's filename to be linked. Do not input the full filename since the template will prefill 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 full filename were 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.
|d= – The display page of the catalog, in case something other than the given page number given is needed for display purposes.
|p= – The page number of the catalog's image. Don't be alarmed if the number you put in is one number less than what was inputted; this is intentional since 1 will always convert to “COVER” and will subtract 1 from any number not equal to 1. Use d to display something other than the reference image's number.
|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.
  • 4 – Displays English, Portuguese, French and Spanish versions of inputted page and adds “N/A” across the columns that would have featured the German and Russian localizations.

|w= – Determines if the template is beginning or ending. By default, the template will assume that it is neither beginning nor ending.

  • 1 – Adds the opening of the wikitable.
  • 2 – Adds the closing of the wikitable.

}} – Closing of the template.