Difference between revisions of "Template:Infobox CS"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (made {{tag}}gy)
sc4e>CasperVg
(experiment, moving all md's to City Showcase)
Line 74: Line 74:
 
|-
 
|-
 
| colspan="2" class="tags"|
 
| colspan="2" class="tags"|
{{#ifeq: {{{tag1|}}} ||No tags have been defined for this {{{type}}}| {{tag|{{{tag1|}}}|md}}}}{{#ifeq: {{{tag2|}}} ||| · {{tag|{{{tag2|}}}|md}}}}{{#ifeq: {{{tag3|}}} ||| · {{tag|{{{tag3|}}}|md}}}}{{#ifeq: {{{tag4|}}} ||| · {{tag|{{{tag4|}}}|md}}}}{{#ifeq: {{{tag5|}}} ||| · {{tag|{{{tag5|}}}|md}}}}{{#ifeq: {{{tag6|}}} ||| · {{tag|{{{tag6|}}}|md}}}}
+
{{#ifeq: {{{tag1|}}} ||No tags have been defined for this {{{type}}}| {{tag|{{{tag1|}}}|cs}}}}{{#ifeq: {{{tag2|}}} ||| · {{tag|{{{tag2|}}}|cs}}}}{{#ifeq: {{{tag3|}}} ||| · {{tag|{{{tag3|}}}|cs}}}}{{#ifeq: {{{tag4|}}} ||| · {{tag|{{{tag4|}}}|cs}}}}{{#ifeq: {{{tag5|}}} ||| · {{tag|{{{tag5|}}}|cs}}}}{{#ifeq: {{{tag6|}}} ||| · {{tag|{{{tag6|}}}|cs}}}}
 
|-
 
|-
 
! colspan="2"| '''Link'''
 
! colspan="2"| '''Link'''
Line 89: Line 89:
 
|-
 
|-
 
| colspan="2"|
 
| colspan="2"|
{{#ifeq: {{{award1|}}} ||This {{{type}}} has won no awards|<br />{{tag|{{{award1|}}}|md}}}}{{#ifeq: {{{award2|}}} |||<br />{{tag|{{{award2|}}}|md}}}}{{#ifeq: {{{award3|}}} |||<br/>{{tag|{{{award3|}}}|md}}}}{{#ifeq: {{{award4|}}} |||<br/>{{tag|{{{award4|}}}|md}}}}{{#ifeq: {{{award5|}}} |||<br/>{{tag|{{{award5|}}}|md}}}}{{#ifeq: {{{award6|}}} |||<br/>{{tag|{{{award6|}}}|md}}}}{{#ifeq: {{{award7|}}} |||<br/>{{tag|{{{award7|}}}|md}}}}{{#ifeq: {{{award8|}}} |||<br/>{{tag|{{{award8|}}}|md}}}}{{#ifeq: {{{award9|}}} |||<br/>{{tag|{{{award9|}}}|md}}}}
+
{{#ifeq: {{{award1|}}} ||This {{{type}}} has won no awards|<br />{{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:Mayor Diaries]]
 
[[category:Mayor Diaries]]
 +
[[category:City Showcases]]

Revision as of 20:50, 18 September 2008

This template includes some very complex use of parser functions. Please make sure you are familiar with these functions before editing this template.

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

{{{type}}}
Images
Wiki no image.png Wiki no image.png
Author

[[People:{{{author}}}|{{{author}}}]]

Site
{{{site}}}
Description

No description given.

Tags

No tags have been defined for this {{{type}}}

Link
Status

{{{status}}}

Awards

This {{{type}}} has won no awards