Template:Wiki: Difference between revisions

Make the "founder" field truly optional so that it does *not* render as an empty field if the value isn't specified.
(making it possible to have spaces instead of the underscores in the parameter names (hopefully it works now...))
(Make the "founder" field truly optional so that it does *not* render as an empty field if the value isn't specified.)
 
(196 intermediate revisions by 18 users not shown)
Line 1: Line 1:
<includeonly>{{DEFAULTSORT:{{{wiki name|{{{wiki_name|{{PAGENAME}}}}}}}}}}[[Category:All]]
<noinclude>[[File:StructuredDataGraph.png|frameless|left|585px|An example of our default wiki site article infobox, and how we use [[WikiIndex:WikiIndex:Structured data|structured data]] here on WikiIndex.|alt=Image shows a screenshot of the rendered display of the infobox for the WikiIndex article.  It also includes 18 'balloon'-type areas containing descriptions of the various elements of the actual rendered infobox.]]</noinclude><includeonly>[[Category:All]]<!--
[[Category:{{{wiki status|wiki_status}}}]]
  Starting categorizing logic
[[Category:{{{wiki language|wiki_language}}}]]
-->{{#if:{{{wikinode URL|}}}|{{#ifeq:{{{wikinode URL|}}}|No||[[Category:Wikis with a WikiNode]]}}}}<!--
[[Category:{{{wiki editmode|wiki_editmode}}}]]
-->{{#if:{{{mobile URL|}}}|{{#ifeq:{{{mobile URL|}}}|No||[[Category:Wikis with a mobile-view site]]}}}}<!--
[[Category:{{alt engine|{{{wiki engine|wiki_engine}}}}}]]
-->{{#if:{{{status|}}}|[[Category:{{{status}}}]]}}<!--
[[Category:{{{wiki maintopic|wiki_maintopic}}}]]{{#if: {{{wiki license|{{{wiki_license|}}}}}} |
-->{{#if:{{{language|}}}|[[Category:Wiki {{ucfirst:{{{language}}}}}]]}}<!--
[[Category:Wiki {{{wiki license|wiki_license}}}]]}}</includeonly>
-->{{#if:{{{editmode|}}}|[[Category:{{{editmode}}}]]}}<!--
{| cellpadding=5 border=0 align=right style="background:white;"
-->{{#if:{{{engine|}}}|[[Category:{{{engine}}}]]}}<!--
{{!}}
-->{{#if:{{{license|}}}|[[Category:Wiki {{ucfirst:{{{license}}}}}]]}}<!--
{| cellpadding=3 align=right border=5 style="background:white;"
-->{{#if:{{{maintopic|}}}|[[Category:{{{maintopic}}}]]}}<!--
{{!}}
-->{{#if:{{{backupurl|}}}|[[Category:Wiki database backup]]}}<!--
{| class="infobox" cellpadding=3 style="width: 23em; font-size: 95%; background:white;"
-->{{#if:{{{wikiFactor|}}}|[[Category:{{wikiFactorCatText|{{{wikiFactor}}}}}]][[wikiFactor::{{{wikiFactor|0}}}]]}}<!--
|
  Ending categorizing logic
{{!}}-
--></includeonly><!--
{{#if:{{{wide logo|{{{wide_logo|}}}}}}|
  Starting template code
-->{{#set:|Wiki engine={{{engine|}}}|Main topic={{{maintopic|}}} }}
<div style="float:right; padding:2px; background:white; border:4px outset gray; margin-left:0.5em; margin-bottom:0.5em">
{|class=infobox cellpadding=3 style="width:26em; font-size:96%; text-align:left; line-height:1.5em; border:2px inset #A0A7B4"
|-
{{#ifeq:{{{wide logo|}}}|y|
<!--THEN-->
<!--THEN-->
! colspan="2" style="text-align: center;" {{!}} {{{wiki logo|wiki_logo}}}
!colspan=2 style=text-align:center{{!}}<span class=plainlinks>[{{{URL}}} {{#ifeq:{{{logo|}}}| |[[File:NoLogo.png|Wiki site logo unknown (for variety of reasons), a generic 'no logo' image is displayed|alt=Small rectangular monochrome image, landscape orientation, thin black border with a white background, containing the words 'no logo' in black text.]][[Category:UnknownWikiLogo]]|{{{logo}}}]</span>
}}
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align: center;" {{!}} <span style="white-space:nowrap;">{{#ifeq:{{{wiki URL|wiki_URL}}}|YourWikiHttp|'''No URL entered'''[[Category:CheckURL]]|[{{{wiki URL|wiki_URL}}} {{{wiki name|{{{wiki_name|{{PAGENAME}}}}}}}}]}}</span> • <span style="white-space:nowrap;">[{{{wiki recentchanges URL|wiki_recentchanges_URL}}} RecentChanges]</span> • <span style="white-space:nowrap;">[{{{wiki wikinode URL|wiki_wikinode_URL}}} WikiNode]</span>
{{!}}colspan=2 style=text-align:center{{!}}'''<span style="white-space:nowrap; font-size:18px">{{#ifeq:{{{URL}}}|YourWikiHttp|'''No URL entered'''|[{{{URL}}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]}}</span>'''<br><span style=white-space:nowrap>[{{{recentchanges URL}}} Recent&nbsp;changes]</span>&nbsp;• <span style=white-space:nowrap>[{{{wikinode URL|No}}} WikiNode][[WikiNode URL::{{{wikinode URL|}}}| ]]<!--Semantic property--></span>&nbsp;• <span style=white-space:nowrap>[{{{about URL|No}}} About]</span>&nbsp;• <span style=white-space:nowrap>[{{{mobile URL|No}}} Mobile URL]</span>
|<!--ELSE-->
|<!--ELSE-->
! style="text-align:right;" {{!}} <span class="plainlinks">[{{{wiki URL|wiki_URL}}} {{#switch:{{{wiki logo|wiki_logo}}}
!style=text-align:center{{!}}<span class=plainlinks>[{{{URL}}} {{#switch:{{{logo}}}
| http://wikiindex.com/images/e/e6/NoLogo.png = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
|No      =[[Category:No wiki logo]][[File:NoLogo.png|Wiki site positively confirmed that it does NOT have a logo, a generic 'no logo' image is displayed|alt=Small rectangular monochrome image, landscape orientation, thin black border with a white background, containing the words 'no logo' in black text.]]
| http://wikiindex.com/images/a/a7/NoLogoYet.png = http://wikiindex.org/images/a/a7/NoLogoYet.png
|NoLogoYet=[[Category:UnknownWikiLogo]][[File:No Logo Uploaded Yet.png|Possibly new wiki site, yet to create its own logo|alt=A square image with a graduated pale cream background, containing the words 'No Logo Uploaded Yet' in black text.]]
| http://www.wikiindex.org/images/e/e6/NoLogo.png<!--or a/a7/NoLogoYet.png--> = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
|Unknown  =[[Category:UnknownWikiLogo]][[File:NoLogo.png|Wiki site logo unknown (for variety of reasons), a generic 'no logo' image is displayed|alt=Small rectangular monochrome image, landscape orientation, thin black border with a white background, containing the words 'no logo' in black text.]]
| http://www.wikiindex.com/images/e/e6/NoLogo.png<!--or a/a7/NoLogoYet.png--> = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
|Upload  =[[Category:Wiki site requiring logo upload]][[File:Upload logo.png|Wiki site has a logo, but it needs uploading here on WikiIndex|alt=A square image with a graduated pale brown background, containing the words 'Please Upload Logo' in black text.]]
| http://www.wikiindex.com/images/e/e6/NoLogo.png = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
|Private  =[[Category:Private]][[File:Private.png|Wiki site is private, and we can not verify if it has a logo|alt=A square image with a graduated pink/red background, containing the words 'Private Wiki' in black text.]]
| http://www.wikiindex.com/images/a/a7/NoLogoYet.png = http://wikiindex.org/images/a/a7/NoLogoYet.png
|Dead    =[[Category:Dead]][[File:404.jpg|135px|Wiki site is dead, and we can not find a logo :-((|alt= ]]
| NoYet = http://wikiindex.org/images/a/a7/NoLogoYet.png
|Wikia    =[[Category:Wikia]][[File:WikiaLogo.JPG|Wikia site does not have a logo, a generic 'Wikia' logo is displayed|alt= ]]
| NoLogoYet = http://wikiindex.org/images/a/a7/NoLogoYet.png
|#default ={{{logo}}}
| NoLogo = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
| No = [[Category:UnknownWikiLogo]] http://wikiindex.org/images/e/e6/NoLogo.png
| Inactive = http://wikiindex.org/images/2/25/Inactive.png
| Private = http://wikiindex.org/images/2/2f/Private.png
| | {{{wiki logo|wiki_logo}}} |#default = {{{wiki logo|wiki_logo}}}
}}]</span>
}}]</span>
{{!}} <div style="white-space:nowrap;">{{#ifeq:{{{wiki URL|wiki_URL}}}|YourWikiHttp|'''No URL entered'''[[Category:CheckURL]]|[{{{wiki URL|wiki_URL}}} {{{wiki name|{{{wiki_name|{{PAGENAME}}}}}}}}]}}</div><div style="white-space:nowrap;">[{{{wiki recentchanges URL|wiki_recentchanges_URL}}} RecentChanges]</div><div style="white-space:nowrap;">[{{{wiki wikinode URL|wiki_wikinode_URL}}} WikiNode]</div>
{{!}}'''<span style="white-space:nowrap; font-size:18px">{{#ifeq:{{{URL}}}|YourWikiHttp|'''No URL entered'''|[{{{URL}}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]}}</span>'''<br><span style=white-space:nowrap>[{{{recentchanges URL}}} Recent&nbsp;changes]<br>[{{{wikinode URL<includeonly>|No</includeonly>}}} WikiNode][[WikiNode URL::{{{wikinode URL|}}}| ]]<!--Semantic property--><br>[{{{about URL<includeonly>|No</includeonly>}}} About]<br>[{{{mobile URL<includeonly>|No</includeonly>}}} Mobile URL]</span>
}}<!--ENDIF-->
}}<!--ENDIF-->
{{#if:{{{founder|}}}|
{{!}}-
{{!}}-
! style="text-align:right;" | [[:Category:Wiki Status|Status]]
!scope=row style=text-align:right{{!}}[[Founder|Founded by]]:
{{!}} [[:Category:{{{wiki status|wiki_status}}}|{{{wiki status|wiki_status}}}]]
{{!}}{{{founder|}}}
{{!}}-
}}
! style="text-align:right;" | [[:Category:Wiki Language|Language]]
|-
{{!}} [[:Category:{{{wiki language|wiki_language}}}|{{{wiki language|wiki_language}}}]]
!scope=row style=text-align:right|[[:Category:Wiki status|Status]]:
{{!}}-
|[[:Category:{{{status}}}|{{{status}}}]]{{#ifeq: {{{status|}}} |YourWikiStatus | |{{#set: Wiki status={{{status|}}} }} }}<!--Semantic property-->
! style="text-align:right;" | [[:Category:Wiki Edit Mode|Edit Mode]]
|-
{{!}} [[:Category:{{{wiki editmode|wiki_editmode}}}|{{{wiki editmode|wiki_editmode}}}]]
!scope=row style=text-align:right|[[:Category:Wiki language|Language]]:
{{!}}-
|[[:Category:Wiki {{{language}}}|{{{language}}}]]{{#set: Wiki language={{{language|}}} }}<!--Semantic property-->
! style="text-align:right;" | [[:Category:Wiki Engine|Wiki Engine]]
|-
{{!}} [[:Category:{{alt engine|{{{wiki engine|wiki_engine}}}}}|{{alt engine|{{{wiki engine|wiki_engine}}}}}]]
!scope=row style=text-align:right|[[:Category:Wiki Edit Mode|Edit mode]]:
{{#if: {{{wiki license|{{{wiki_license|}}}}}} |{{!}}-
|[[:Category:{{{editmode}}}|{{{editmode}}}]]{{#ifeq: {{{editmode|}}} |YourWikiEditMode | |{{#set: Wiki edit mode={{{editmode|}}} }} }}<!--Semantic property-->
! style="text-align:right;" {{!}} [[:Category:Wiki License{{!}}Wiki License]]
|-
{{!}} [[:Category:Wiki {{{wiki license|wiki_license}}}{{!}}{{{wiki license|wiki_license}}}]] }}
!scope=row style=text-align:right|[[:Category:Wiki engine|Wiki engine]]:
|[[:Category:{{{engine}}}|{{{engine}}}]]{{#set: Wiki engine={{{engine|}}} }}<!--Semantic property-->
|-
!scope=row style=text-align:right{{!}}[[:Category:Wiki license{{!}}Wiki license]]:
|[[:Category:Wiki {{{license}}}{{!}}{{{license}}}]]{{#ifeq: {{{license|}}} |YourWiki'sLicense | |{{#set: Wiki license={{{license|}}} }} }}<!--Semantic property-->
|-
!scope=row style=text-align:right|[[:Category:Wiki Topic|Main topic]]:
|[[:Category:{{{maintopic}}}|{{{maintopic}}}]]{{#set: Main topic={{{maintopic|}}} }}<!--Semantic property-->
{{#if:{{{backupurl|}}}|
{{!}}-
{{!}}-
! style="text-align:right;" | [[:Category:Wiki Topic|Main Topic]]
!scope=row style=text-align:right{{!}}[[:Category:Wiki database backup{{!}}Backups]]:
{{!}} [[:Category:{{{wiki maintopic|wiki_maintopic}}}|{{{wiki maintopic|wiki_maintopic}}}]]
{{!}}[{{{backupurl|}}} {{{backupdate|unknown or dynamic date}}}]{{#switch: {{{backupdate|}}} |unknown or dynamic date={{#set: Backup URL={{{backupurl|}}} }} |unknown date={{#set: Backup URL={{{backupurl|}}} }} |dynamic date={{#set: Backup URL={{{backupurl|}}} }} |#default={{#set: Backup URL={{{backupurl|}}} | Backup date={{{backupdate|}}} }} }}<!--Semantic properties-->
|}
}}
|}
|}</div><!--
|}<noinclude><div style="clear:both;"></div>
  Ending template code--><noinclude>{{clear}}
See also: [[Template:Wiki Boilerplate]]
:''See also:'' [[template: Wiki boilerplate]] (plain-text 'boilerplate' for this template), [[template: Size]], and specifically for [[:Category:Wikia|Wikia / Fandom]]-hosted wiki sites: [[template: Wikia boilerplate]].
{{Wiki Boilerplate}}
{{Wiki boilerplate}}
[[Image:StructuredDataGraph.png|right]]
[[Category:All| ]]
 
[[Category:Infobox template]]</noinclude>
 
[[Category:Templates]]</noinclude>
Bureaucrats, checkuser, interwiki, Administrators
168

edits