Difference between revisions of "Template:Infobox CS"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Freedo50
m
sc4e>CasperVg
m (There we go!)
Line 48: Line 48:
 
*'''award#''' - award that the MD/CJ has received. That included [[Of Special Interest This Month]] and [[Trixie]]'s (related to CJs). (max. 12) <span style="color:#f00;">'''Warning: Do not include the <nowiki>"|award11 = "</nowiki> code if that particular award is not defined as it will mess up the template's appearance'''</span>
 
*'''award#''' - award that the MD/CJ has received. That included [[Of Special Interest This Month]] and [[Trixie]]'s (related to CJs). (max. 12) <span style="color:#f00;">'''Warning: Do not include the <nowiki>"|award11 = "</nowiki> code if that particular award is not defined as it will mess up the template's appearance'''</span>
 
==Example==
 
==Example==
</noinclude>{| id="mdtable" width="600px" cellspacing="0" cellpadding="5px" align="{{{align|left}}}"
+
</noinclude>{{{desc}}}
! colspan="2" align=center style="font-size:16pt;"| {{{type}}}
+
 
 +
[[Category:City Showcases]]
 +
 
 +
{| align=right
 +
|-
 +
|
 +
{| class="toccolours" border="1" cellpadding="4" style="float: right; width: 300px; margin: 0 0 1em 1em; border-collapse: collapse; font-size: 95%;"
 +
|-
 +
! style="background-color:#c0c0c0; font-size: larger; margin-left: inherit;" colspan="2" | <big><big>'''{{{type}}}'''</big></big>
 
|-
 
|-
! colspan="2" align=center| '''Images'''
+
| colspan="2" align="center" |
 +
 
 +
{{{image1|[[Image:Wiki_no_image.png|300px]]}}}
 
|-
 
|-
| class="noright"| {{{image1|[[Image:Wiki_no_image.png|300px]]}}}
 
| {{{image2|[[Image:Wiki_no_image.png|300px]]}}}
 
 
|-
 
|-
! colspan="2" align=center| '''Author'''
+
|- style="text-align: center;"
 +
! colspan="2" style="background-color: #d0d0d0; text-align: center;" | Link
 
|-
 
|-
| colspan="2" class="author"|
 
[[People:{{{author}}}|{{{author}}}]]
 
 
|-
 
|-
! colspan="2" align=center| '''Site'''
+
|- style="text-align: center;"
 +
! colspan="2" text-align: center;" | {{{link}}}
 +
|- style="text-align: center;"
 +
! colspan="2" style="background-color: #d0d0d0; text-align: center;" | General Information
 
|-
 
|-
| colspan="2"| {{#switch: {{{site}}}
+
{{row|{{{author}}|'''Author'''
 +
{{!}}{{member|{{{author}}}}}}}
 +
{{row|{{site}}|'''Site'''
 +
{{!}}{{#switch: {{{site}}}
 
| sc4d = SimCity 4 Devotion
 
| sc4d = SimCity 4 Devotion
 
| st = Simtropolis
 
| st = Simtropolis
Line 71: Line 84:
 
| tsc = Team SimCity
 
| tsc = Team SimCity
 
| {{{site}}}}}
 
| {{{site}}}}}
|-
+
{{row|{{status}}|'''Status'''
! colspan="2" align=center| '''Description'''
+
{{!}}{{{status}}}}}
|-
+
{{row|{{tag1}}|'''Tags'''
| colspan="2" class="desc"|
+
{{!}} {{Template:Infobox MD/tags|{{{tag1|}}}|{{{tag2|}}}|{{{tag3|}}}|{{{tag4|}}}|{{{tag5|}}}|{{{tag6|}}}|{{{type}}}}}}}}}
{{{desc|No description given.}}}
+
{{row|{{{award1}}}|'''Awards'''
|-
+
{{!}} {{Template:Infobox MD/awards|{{{award1|}}}|{{{award2|}}}|{{{award3|}}}|{{{award4|}}}|{{{award5|}}}|{{{award6|}}}|{{{award7|}}}|{{{award8|}}}|{{{award9|}}}|{{{type}}}}} }}
! colspan="2" align=center| '''Tags'''
+
{{row|{{language}}|'''Language'''
|-
+
{{!}}{{{language|English}}}}}
| colspan="2" class="tags"|
+
|}
{{#ifeq: {{{tag1|}}} ||No tags have been defined for this {{{type}}}| {{tag|{{{tag1|}}}|cs}}}}{{#ifeq: {{{tag2|}}} |||&nbsp;· {{tag|{{{tag2|}}}|cs}}}}{{#ifeq: {{{tag3|}}} |||&nbsp;· {{tag|{{{tag3|}}}|cs}}}}{{#ifeq: {{{tag4|}}} |||&nbsp;· {{tag|{{{tag4|}}}|cs}}}}{{#ifeq: {{{tag5|}}} |||&nbsp;· {{tag|{{{tag5|}}}|cs}}}}{{#ifeq: {{{tag6|}}} |||&nbsp;· {{tag|{{{tag6|}}}|cs}}}}
 
|-
 
! colspan="2" align=center| '''Link'''
 
|-
 
| colspan="2" class="link"|
 
{{{link}}}
 
|-
 
! colspan="2" align=center| '''Status'''
 
|-
 
| colspan="2"|
 
{{{status}}}
 
|-
 
! colspan="2" align=center| '''Awards'''
 
|-
 
| colspan="2"|
 
{{#ifeq: {{{award1|}}} ||This {{{type}}} has won no awards|{{tag|{{{award1|}}}|cs}}}}{{#ifeq: {{{award2|}}} |||<br />{{tag|{{{award2|}}}|cs}}}}{{#ifeq: {{{award3|}}} |||<br/>{{tag|{{{award3|}}}|cs}}}}{{#ifeq: {{{award4|}}} |||<br/>{{tag|{{{award4|}}}|cs}}}}{{#ifeq: {{{award5|}}} |||<br/>{{tag|{{{award5|}}}|cs}}}}{{#ifeq: {{{award6|}}} |||<br/>{{tag|{{{award6|}}}|cs}}}}{{#ifeq: {{{award7|}}} |||<br/>{{tag|{{{award7|}}}|cs}}}}{{#ifeq: {{{award8|}}} |||<br/>{{tag|{{{award8|}}}|cs}}}}{{#ifeq: {{{award9|}}} |||<br/>{{tag|{{{award9|}}}|cs}}}}
 
 
|}
 
|}
[[Category:City Showcases]]
 

Revision as of 07:57, 31 December 2008

Syntax

{{infobox MD
|type =
|image1 =
|image2 =
|author =
|desc =
|tag1 =
|tag2 = 
|tag3 = 
|tag4 = 
|tag5 = 
|tag6 = 
|link =
|status =
|award1 = 
|award2 = 
|award3 = 
|award4 = 
|award5 = 
|award6 = 
|award7 = 
|award8 = 
|award9 = 
|award10 = 
|award11 = 
|award12 = 
}}
  • type - the type of showoff-thread it is (City Journal or Mayor Diary)
  • image1 - an example image.
  • image2 - another example image.
  • author - the author
  • Site : The site where the MD/CJ is based. Can be;
    • sc4d(SimCity 4 Devotion forums)
    • st (Simtropolis forums)
    • tpp (The Planning Pages forums)
    • peg (SimPeg)
  • desc - small description
  • tag# - word/phrase describing the MD/CJ. (exempli gratia: Historical, Re-creation) (max. 6) Warning: Do not include the "|tag5 = " code if that particular tag is not defined as it will mess up the template's appearance
  • link - link to the MD/CJ
  • status - status of the MD/CJ. Active, Inactive, Archived
  • award# - award that the MD/CJ has received. That included Of Special Interest This Month and Trixie's (related to CJs). (max. 12) Warning: Do not include the "|award11 = " code if that particular award is not defined as it will mess up the template's appearance

Example

{{{desc}}}

{{{type}}}

Wiki no image.png

Link
{{{link}}}
General Information
Author [[People:{{{author}}}|{{{author}}}]]
Site {{{site}}}
Status {{{status}}}
Tags This {{{type}}} is not tagged
Awards This {{{type}}} has won no awards
Language English