Difference between revisions of "Template:Infobox website"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (made url optional)
m (Protected "Template:Infobox website": Complex and high profile ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>This is the infobox to include on any website
+
<noinclude>{{pp-template}}
 +
 
 +
This is the infobox to include on any website
  
 
==Syntax==
 
==Syntax==
 
<pre>{{infobox website
 
<pre>{{infobox website
| logo =  
+
| title =
| name =  
+
| logo = this should be a filename for an image uploaded at the SC4 Encyclopaedia
 +
| link-site =
 +
| link-forums =
 +
| link-exchange =
 +
| link-knowledge =
 +
| link-wiki =
 +
| link-chat =
 +
| link-cs =  
 +
| name-cs =
 +
| webmaster =
 +
| admins =
 +
| globalmods =
 +
| languages =
 +
| alexa =
 +
| founded-date =  
 
| version =  
 
| version =  
| url =
 
| forum =
 
| exchange =
 
| chat =
 
| other =
 
| webmaster =
 
| staff =
 
 
}}</pre>
 
}}</pre>
 
==Example==
 
==Example==
</noinclude>{|id="temptable" align="right" cellspacing="0" cellpadding="5" width="300"
+
</noinclude>{{infobox/table|title={{{title|{{PAGENAME}}}}}|
! style="font-size:160%;"| Website
+
{{row|{{{logo|}}}|{{{logo}}}|cell=colspan="2" align="center"}}
|- style="max-width:300px"
+
{{row/!|Link|Link|cell=colspan="2" style="background-color: #d0d0d0; text-align: center;" }}
|{{{logo}}}
+
{{row/!|Link|[{{{link|{{{link-site}}}}}} Homepage]|cell=colspan="2" align="center"}}
|-
+
{{row/!|Subsections|SubSections|cell=colspan="2" style="background-color: #d0d0d0; text-align: center;"}}
| {{{name}}} {{{version|}}}
+
{{row|{{{link-forums}}}|'''Forums'''
|-  
+
{{!}}{{{link-forums|No Forums}}}}}
! Parts
+
{{row|{{{link-exchange}}}|'''Exchange'''
|-
+
{{!}}{{{link-exchange|No Exchange}}}}}
|{{#if:{{{forum|}}}|
+
{{row|{{{link-knowledge|}}}|'''Knowledge Base'''
*[{{{url|}}}{{{forum}}} Forum]|}}{{#if:{{{exchange|}}}|
+
{{!}}{{{link-knowledge|No Knowledge Base}}}}}
*[{{{url|}}}{{{exchange}}} Exchange]|}}{{#if:{{{chat|}}}|
+
{{row|{{{link-wiki|}}}|'''Wiki'''
*[{{{url|}}}{{{chat}}} Chat]|}}
+
{{!}}{{{link-wiki|No Wiki}}}}}
{{#if:{{{other|}}}|
+
{{row|{{{link-chat|}}}|'''Chat'''
*{{{other}}}}}
+
{{!}}[{{{link-chat}}} Chatroom]}}
|-
+
{{row|{{{link-gallery|}}}|'''Gallery'''
! Staff Listing
+
{{!}}[{{{link-gallery}}} Gallery]}}
|-
+
{{row|{{{link-cs|}}}|'''City Showcases'''
| style="border-bottom:none;"| '''Web Master:''' {{{webmaster}}}
+
{{!}}{{{link-cs|No City Showcases}}}}}
|-
+
{{row/!|General|General Information|cell=colspan="2" style="background-color: #d0d0d0; text-align: center;"}}
|
+
{{row|{{{founded-date|}}}|'''Founding'''
{{{staff}}}
+
{{!}}Founded on {{{founded-date}}}}}
|}[[category:Fansite]]
+
{{row|{{{version|}}}|'''Version Number'''
 +
{{!}}{{{version}}}}}
 +
{{row|{{{webmaster}}}|'''Webmaster'''
 +
{{!}}{{{webmaster|None}}}}}
 +
{{row|{{{admins}}}|'''Administrators'''
 +
{{!}}{{{admins|None}}}}}
 +
{{row|{{{globalmods|}}}|'''Global Mods'''
 +
{{!}}{{{globalmods}}}}}
 +
{{row|{{{mods|}}}|'''Moderators'''
 +
{{!}}{{{mods}}}}}
 +
{{row|{{{languages}}}|'''Languages'''
 +
{{!}}{{{languages|English}}}}}
 +
{{row|{{{alexa|}}}|'''Alexa Ranking'''
 +
{{!}}{{{alexa}}}}}
 +
}}<includeonly>
 +
[[Category:Fansite{{#if:{{{subsite|}}}|&nbsp;{{{subsite}}}}}]]</includeonly>

Latest revision as of 12:03, 16 August 2019

This is the infobox to include on any website

Syntax

{{infobox website
| title =
| logo = this should be a filename for an image uploaded at the SC4 Encyclopaedia
| link-site = 
| link-forums = 
| link-exchange = 
| link-knowledge = 
| link-wiki = 
| link-chat = 
| link-cs = 
| name-cs =
| webmaster =
| admins = 
| globalmods =
| languages =
| alexa = 
| founded-date = 
| version = 
}}

Example

Infobox website
Link
[{{{link-site}}} Homepage]
SubSections
Forums No Forums
Exchange No Exchange
General Information
Webmaster None
Administrators None
Languages English