Template:Wiki: Difference between revisions

annotating which fields are semantic properties, trim out xs code
(wikilink to founder, trim out redundant/duplicated coding, add File:404.jpg and Category:Dead)
(annotating which fields are semantic properties, trim out xs code)
Line 15: Line 15:
-->{{#set:Wiki status={{{status|}}} |Wiki engine={{{engine|}}} |Wiki edit mode={{{editmode|}}} |Main topic={{{maintopic|}}} }}
-->{{#set:Wiki status={{{status|}}} |Wiki engine={{{engine|}}} |Wiki edit mode={{{editmode|}}} |Main topic={{{maintopic|}}} }}
<div style="float:right; padding:2px; background:white; border:4px outset gray; margin-left:0.5em; margin-bottom:0.5em">
<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:95%; text-align:left; line-height:1.5em; border:2px inset #A0A7B4"
{|class=infobox cellpadding=3 style="width:26em; font-size:95%; text-align:left; line-height:1.5em; border:2px inset #A0A7B4"
|-
|-
{{#ifeq:{{{wide logo|}}}|y|
{{#ifeq:{{{wide logo|}}}|y|
<!--THEN-->
<!--THEN-->
!colspan="2" style="text-align:center"{{!}}<span class=plainlinks>[{{{URL}}} {{#ifeq:{{{logo|}}}| |[[File:NoLogo.png|alt=Wiki doesn't have a logo]][[Category:UnknownWikiLogo]]|{{{logo}}}]</span>
!colspan=2 style=text-align:center{{!}}<span class=plainlinks>[{{{URL}}} {{#ifeq:{{{logo|}}}| |[[File:NoLogo.png|alt=Wiki doesn't have a logo]][[Category:UnknownWikiLogo]]|{{{logo}}}]</span>
}}
}}
{{!}}-
{{!}}-
{{!}}colspan="2" style="text-align:center"{{!}}'''<span style="white-space:nowrap; font-size:18px">{{#ifeq:{{{URL}}}|YourWikiHttp|'''No URL entered'''[[Category:CheckURL]]|[{{{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]</span>&nbsp;• <span style=white-space:nowrap>[{{{about URL|No}}} About]</span>&nbsp;• <span style=white-space:nowrap>[{{{mobile URL|No}}} Mobile URL]</span>
{{!}}colspan=2 style=text-align:center{{!}}'''<span style="white-space:nowrap; font-size:18px">{{#ifeq:{{{URL}}}|YourWikiHttp|'''No URL entered'''[[Category:CheckURL]]|[{{{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]</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:center"{{!}}<span class=plainlinks>[{{{URL}}} {{#switch:{{{logo}}}
!style=text-align:center{{!}}<span class=plainlinks>[{{{URL}}} {{#switch:{{{logo}}}
|No      = [[Category:UnknownWikiLogo]][[File:NoLogo.png|alt=Wiki doesn't have a logo]]
|No      = [[Category:UnknownWikiLogo]][[File:NoLogo.png|alt=Wiki doesn't have a logo]]
|Inactive= [[File:Inactive.png|100px|alt=Wiki is inactive]]
|Private = [[Category:Private]][[File:Private.png|100px|alt=Wiki is private]]
|Private = [[Category:Private]][[File:Private.png|100px|alt=Wiki is private]]
|Dead    = [[Category:Dead]][[File:404.jpg|100px|alt=Wiki is dead :-((]]
|Dead    = [[Category:Dead]][[File:404.jpg|100px|alt=Wiki is dead :-((]]
Line 35: Line 34:
{{#if: {{{founder|}}}|
{{#if: {{{founder|}}}|
{{!}}-
{{!}}-
!scope="row" style="text-align:right"{{!}}[[Founder|Founded by]]:
!scope=row style=text-align:right{{!}}[[Founder|Founded by]]:
{{!}}[[{{{founder}}}{{!}}{{{founder}}}]]
{{!}}[[{{{founder}}}{{!}}{{{founder}}}]]
}}
}}
|-
|-
!scope="row" style="text-align:right"|[[:Category:Wiki Status|Status]]:
!scope=row style=text-align:right|[[:Category:Wiki Status|Status]]:
|[[:Category:{{{status}}}|{{{status}}}]]
|[[:Category:{{{status}}}|{{{status}}}]]<!-- Semantic property -->
|-
|-
!scope="row" style="text-align:right"|[[:Category:Wiki Language|Language]]:
!scope=row style=text-align:right|[[:Category:Wiki Language|Language]]:
|[[:Category:Wiki {{{language}}}|{{{language}}}]]
|[[:Category:Wiki {{{language}}}|{{{language}}}]]<!-- Semantic property -->
|-
|-
!scope="row" style="text-align:right"|[[:Category:Wiki Edit Mode|Edit mode]]:
!scope=row style=text-align:right|[[:Category:Wiki Edit Mode|Edit mode]]:
|[[:Category:{{{editmode}}}|{{{editmode}}}]]
|[[:Category:{{{editmode}}}|{{{editmode}}}]]<!-- Semantic property -->
|-
|-
!scope="row" style="text-align:right"|[[:Category:Wiki Engine|Wiki engine]]:
!scope=row style=text-align:right|[[:Category:Wiki Engine|Wiki engine]]:
|[[:Category:{{alt engine|{{{engine}}}}}|{{alt engine|{{{engine}}}}}]][[engine::{{{engine|}}}| ]]<!-- Semantic property -->
|[[:Category:{{alt engine|{{{engine}}}}}|{{alt engine|{{{engine}}}}}]][[engine::{{{engine|}}}| ]]<!-- Semantic property -->
{{#if: {{{license|}}}|
{{#if: {{{license|}}}|
{{!}}-
{{!}}-
!scope="row" style="text-align:right"{{!}}[[:Category:Wiki License{{!}}Wiki license]]:
!scope=row style=text-align:right{{!}}[[:Category:Wiki License{{!}}Wiki license]]:
{{!}}[[:Category:Wiki {{{license}}}{{!}}{{{license}}}]][[Wiki License::{{{license|}}}| ]]<!-- Semantic property -->
{{!}}[[:Category:Wiki {{{license}}}{{!}}{{{license}}}]][[Wiki License::{{{license|}}}| ]]<!-- Semantic property -->
}}
}}
|-
|-
!scope="row" style="text-align:right"|[[:Category:Wiki Topic|Main topic]]:
!scope=row style=text-align:right|[[:Category:Wiki Topic|Main topic]]:
|[[:Category:{{{maintopic}}}|{{{maintopic}}}]]
|[[:Category:{{{maintopic}}}|{{{maintopic}}}]]<!-- Semantic property -->
{{#if: {{{backupurl|}}}|
{{#if: {{{backupurl|}}}|
{{!}}-
{{!}}-
!scope="row" style="text-align:right"{{!}}[[:Category:Wiki Backups{{!}}Backups]]:
!scope=row style=text-align:right{{!}}[[:Category:Wiki Backups{{!}}Backups]]:
{{!}}[{{{backupurl|}}} {{{backupdate|unknown date}}}]
{{!}}[{{{backupurl|}}} {{{backupdate|unknown date}}}]
[[backupurl::{{{backupurl|}}}| ]][[backupdate::{{{backupdate|}}}| ]]:<!-- Semantic property -->
[[backupurl::{{{backupurl|}}}| ]][[backupdate::{{{backupdate|}}}| ]]:<!-- Semantic property -->