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.
(only annotate if value is not YourWiki'sLicense)
(Make the "founder" field truly optional so that it does *not* render as an empty field if the value isn't specified.)
 
(One intermediate revision by one other user not shown)
Line 37: Line 37:
{{!}}'''<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>
{{!}}'''<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|}}}|
{{!}}-
!scope=row style=text-align:right{{!}}[[Founder|Founded by]]:
!scope=row style=text-align:right{{!}}[[Founder|Founded by]]:
|{{{founder|}}}
{{!}}{{{founder|}}}
}}
|-
|-
!scope=row style=text-align:right|[[:Category:Wiki status|Status]]:
!scope=row style=text-align:right|[[:Category:Wiki status|Status]]:
Line 61: Line 63:
{{!}}-
{{!}}-
!scope=row style=text-align:right{{!}}[[:Category:Wiki database backup{{!}}Backups]]:
!scope=row style=text-align:right{{!}}[[:Category:Wiki database backup{{!}}Backups]]:
{{!}}[{{{backupurl|}}} {{{backupdate|unknown or dynamic date}}}]{{#set: Backup URL={{{backupurl|}}} | Backup date={{{backupdate|}}} }}<!--Semantic properties-->
{{!}}[{{{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><!--
|}</div><!--
Bureaucrats, checkuser, interwiki, Administrators
168

edits