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>{{#ifeq:{{{w|}}}|1|{{(!}}class="wikitable mw-collapsible mw-collapsed" style="margin: auto; width:250px;"
|{{#if:{{{e|}}}|{{#if:{{{r|}}}|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>
{{!}}+ 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]]{{#ifeq:{{{v|}}}|1|{{!!}}[[Media:DECatalogues{{{i|}}}-{{{p|}}}.png|DE]]{{!!}}[[Media:RUCatalogues{{{i|}}}-{{{p|}}}.png|RU]]|}}|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
|i=
|i=
|r=
|e=
|d=
|d=
|p=
|p=
|v=
|v=
|w=
}}
}}
</pre>
</pre>
Line 16: Line 20:
<code>{{MobileCat</code> – Opening of the template.<br>
<code>{{MobileCat</code> – Opening of the template.<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>|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>|r=</code> – Determines how many rows the edition should span. This parameter will only function if <code>e</code> is active. Must be numeric.<br>
<code>|e=</code> – Input the month of the catalog's release, preferably abbreviated in an [[wikipedia:Date and time notation in the United States|American notation]] (e.g. “Jul 2015” for July 2015) for unity with [[cpw:|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>|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>|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>|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>|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>
Line 24: Line 26:
:*'''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.
<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.
<code>}}</code> – Closing of the template.
</noinclude>
</noinclude>

Revision as of 07:08, 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.

|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.