Difference between revisions of "Template:Infobox CS"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>CasperVg
(Infobox Mayor Diary. For use in my MD Project.)
m (64 revisions imported)
 
(383 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
<noinclude>{{pp-protected|level=full}}
 +
{{mbox
 +
| type = content
 +
| text = <span style="color:#f28500;">'''This template includes some very complex use of parser functions. Please make sure you are familiar with these functions before editing this template.'''</span>
 +
}}
 +
 
==Syntax==
 
==Syntax==
<pre>{{infobox MD
+
<pre>{{infobox CS
 
|type =
 
|type =
 
|image1 =
 
|image1 =
Line 6: Line 12:
 
|author =
 
|author =
 
|desc =
 
|desc =
|tag =
+
|link =
 +
|link1 =
 +
|link2 =
 +
|link3 =
 +
|link4 =
 +
|link5 =
 +
|site =
 +
|site1 =
 +
|site2 =
 +
|site3 =
 +
|site4 =
 +
|site5 =
 +
|tag1 =
 +
|tag2 =
 +
|tag3 =
 +
|tag4 =
 +
|tag5 =
 +
|tag6 =  
 
|link =
 
|link =
 
|status =
 
|status =
|awards =  
+
|award1 =
 +
|award2 =
 +
|award3 =
 +
|award4 =
 +
|award5 =  
 
}}
 
}}
 
</pre>
 
</pre>
Line 16: Line 43:
 
*'''image2''' - another example image.
 
*'''image2''' - another example image.
 
*'''author''' - the author
 
*'''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
 
*'''desc''' - small description
*'''tag''' - words describing the MD/CJ. (exempli gratia: Historical, Re-creation) (max. 6)
+
*'''tag#''' - word/phrase describing the MD/CJ. (exempli gratia: Historical, Re-creation) (max. 6) <span style="color:#f00;">'''Warning: Do not include the <nowiki>"|tag5 = "</nowiki> code if that particular tag is not defined as it will mess up the template's appearance'''</span>
 
*'''link''' - link to the MD/CJ
 
*'''link''' - link to the MD/CJ
 
*'''status''' - status of the MD/CJ. Active, Inactive, Archived
 
*'''status''' - status of the MD/CJ. Active, Inactive, Archived
*'''awards''' - awards that the MD/CJ has received. That included [[Of Special Interest This Month]] and [[Trixie]]'s (related to CJs)
+
*'''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==
{{infobox MD}}
+
</noinclude>{| align=right
</noinclude>{| id="temptable" width="600px" cellspacing="0" cellpadding="5px" align="{{{align|left}}}"
 
! colspan="2" align=center style="font-size:16pt;"| {{{type}}}
 
|-
 
! colspan="2"| '''Images'''
 
|-
 
| class="noright"| {{{image1|[[Image:Wiki_no_image.png|300px]]}}}
 
| {{{image2|[[Image:Wiki_no_image.png|300px]]}}}
 
|-
 
! colspan="2"| '''Author'''
 
|-
 
| colspan="2" class="author"|
 
{{{author}}}
 
|-
 
! colspan="2"| '''Description'''
 
|-
 
| colspan="2" class="desc"|
 
{{{desc}}}
 
 
|-
 
|-
! colspan="2"| '''Tags'''
+
|
 +
{| class="toccolours" border="1" cellpadding="4" style="float: right; width: 300px; margin: 0 0 1em 1em; border-collapse: collapse; font-size: 95%;"
 
|-
 
|-
| colspan="2" class="tags"|
+
! style="background-color:#c0c0c0; font-size: larger; margin-left: inherit;" colspan="2" | <big><big>'''{{{type}}}'''</big></big>
{{{tag}}}
 
 
|-
 
|-
! colspan="2"| '''Link'''
+
| colspan="2" align="center" |
 +
 
 +
{{{image1|[[Image:Wiki_no_image.png|300px]]}}}
 
|-
 
|-
| colspan="2" class="link"|
 
{{{link}}}
 
 
|-
 
|-
! colspan="2"| '''Status'''
+
|- style="text-align: center;"
 +
! colspan="2" style="background-color: #d0d0d0; text-align: center;" | Link
 
|-
 
|-
| colspan="2"|
 
{{{status}}}
 
 
|-
 
|-
! colspan="2"| '''Awards'''
+
|- style="text-align: center;"
 +
! colspan="2" style="text-align: center; font-weight: normal;" | {{option |{{{link|}}} |[{{{link|}}} {{#switch: {{{site}}}
 +
| sc4d = SimCity 4 Devotion
 +
| st = Simtropolis
 +
| peg = SimPeg
 +
| tpp = SimVision
 +
| sv = SimVision
 +
| tsc = Team SimCity
 +
| {{{site}}}}}]|This {{{type}}} has no links}}{{option |{{{link1|}}} |<br>[{{{link1|}}} {{{site1}}}]|}}{{option |{{{link2|}}} |<br>[{{{link2|}}} {{{site2}}}]|}}{{option |{{{link3|}}} |<br>[{{{link3|}}} {{{site3}}}]|}}{{option |{{{link4|}}} |<br>[{{{link4|}}} {{{site4}}}]|}}{{option |{{{link5|}}} |<br>[{{{link5|}}} {{{site5}}}]|}}
 +
|- style="text-align: center;"
 +
! colspan="2" style="background-color: #d0d0d0; text-align: center;" | General Information
 
|-
 
|-
| colspan="2"|
+
{{row|{{author}}|'''Author'''
{{{awards}}}
+
{{!}}{{member|{{{author}}}}}}}
 +
{{row|{{status}}|'''Status'''
 +
{{!}}{{{status}}}{{{stat-cat|[[Category:Cs-{{{status|}}}]]}}}
 +
{{row|{{tag1}}|'''Tags'''
 +
{{!}} {{Template:Infobox MD/tags|{{{tag1|}}}|{{{tag2|}}}|{{{tag3|}}}|{{{tag4|}}}|{{{tag5|}}}|{{{tag6|}}}|{{{type}}}}}}}}}
 +
{{row|{{{award1}}}|'''Awards'''
 +
{{!}} {{Template:Infobox MD/awards|{{{award1|}}}|{{{award2|}}}|{{{award3|}}}|{{{award4|}}}|{{{award5|}}}|{{{award6|}}}|{{{award7|}}}|{{{award8|}}}|{{{award9|}}}|{{{type}}}}} }}
 +
{{row|{{language}}|'''Language'''
 +
{{!}}{{{language|English}}}}}
 +
|}
 +
|}{{{desc|}}} {{#if:{{{desc|}}}|<br><small><i>Please move this description to the main article instead of the template. Thanks!</i></small>}}<includeonly>[[Category:City Showcases]]
 +
__NOTOC__</includeonly>

Latest revision as of 16:36, 7 August 2019


Syntax

{{infobox CS
|type =
|image1 =
|image2 =
|author =
|desc =
|link =
|link1 =
|link2 =
|link3 =
|link4 =
|link5 =
|site =
|site1 =
|site2 =
|site3 =
|site4 =
|site5 =
|tag1 =
|tag2 = 
|tag3 = 
|tag4 = 
|tag5 = 
|tag6 = 
|link =
|status =
|award1 = 
|award2 = 
|award3 = 
|award4 = 
|award5 = 
}}
  • 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}}}

Wiki no image.png

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