Template:Cquote/doc

From wiki.jriver.com
< Template:Cquote
Revision as of 06:08, 11 April 2014 by Glynor (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{

 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: Cquote | {{ #ifeq: {{ #titleparts: Cquote/doc | 1 | -1 }} | doc | Cquote | Cquote/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is not on | |is not on }}{{ #ifeq: Cquote | ¬ | | |name=Cquote }}}} with {{SPW{{ #if: is not on | |is not on }}|name=Cquote}}.
}}:{{ #switch: is not on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: Cquote/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Cquote/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: Cquote/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Cquote/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: Cquote/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Cquote/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: Cquote/doc | 1 | -1 }} | doc |  | }}
 }}

}}

Description
This template is used to format a centralized quote.
Syntax
Type {{#ifeq:|code|}}{{{{#if:|{{{prefix}}}:}}cquote{{#if:||<{{{2}}}>}}{{#if:||<{{{3}}}>}}{{#if:||<{{{4}}}>}}{{#if:||<{{{5}}}>}}{{#if:||<{{{6}}}>}}{{#if:||<{{{7}}}>}}{{#if:||<{{{8}}}>}}{{#if:||<{{{9}}}>}}{{#if:||<{{{10}}}>}}{{#if:||<{{{11}}}>}}{{#if:||<{{{12}}}>}}{{#if:||<{{{13}}}>}}{{#if:||<{{{14}}}>}}{{#if:||<{{{15}}}>}}{{#if:||<{{{16}}}>}}{{#if:||<{{{17}}}>}}{{#if:||<{{{18}}}>}}{{#if:||<{{{19}}}>}}{{#if:||<{{{20}}}>}}{{#if:||<{{{21}}}>}}}}{{#ifeq:|code|}} somewhere.
Sample output
{{cquote|foo}} gives...
  1. if:
{{#if:|
border: 1px solid #AAAAAA;

}}" class="cquote"

width="20" valign="top" style="color:#B2B7F2;font-size:{{#switch:20px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px foo width="20" valign="bottom" style="color:#B2B7F2;font-size:{{#switch:20px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px
{{#if:|

—{{{4}}}{{#if:|, {{{5}}}}}

}}

}}

{{cquote|foo|10px}} gives...
  1. if:
{{#if:|
border: 1px solid #AAAAAA;

}}" class="cquote"

width="20" valign="top" style="color:#B2B7F2;font-size:{{#switch:10px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px foo width="20" valign="bottom" style="color:#B2B7F2;font-size:{{#switch:10px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px
{{#if:|

—{{{4}}}{{#if:|, {{{5}}}}}

}}

}}

{{cquote|foo|20px}} gives...
  1. if:
{{#if:|
border: 1px solid #AAAAAA;

}}" class="cquote"

width="20" valign="top" style="color:#B2B7F2;font-size:{{#switch:20px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px foo width="20" valign="bottom" style="color:#B2B7F2;font-size:{{#switch:20px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px
{{#if:|

—{{{4}}}{{#if:|, {{{5}}}}}

}}

}}

{{cquote|foo|30px}} gives...
  1. if:
{{#if:|
border: 1px solid #AAAAAA;

}}" class="cquote"

width="20" valign="top" style="color:#B2B7F2;font-size:{{#switch:30px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px foo width="20" valign="bottom" style="color:#B2B7F2;font-size:{{#switch:30px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px
{{#if:|

—{{{4}}}{{#if:|, {{{5}}}}}

}}

}}

{{cquote|foo|35px|filler|bar|wibble}} gives...
  1. if:
{{#if:barwibble|
border: 1px solid #AAAAAA;

}}" class="cquote"

width="20" valign="top" style="color:#B2B7F2;font-size:{{#switch:35px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px foo width="20" valign="bottom" style="color:#B2B7F2;font-size:{{#switch:35px 10px=20px 30px=60px 40px=80px 50px=100px 60px=120px
{{#if:bar|

—bar{{#if:wibble|, wibble}}

}}

}}