Difference between revisions of "Template:Wiki"

WikiIndex - wikis, wiki people, wiki software, and wiki ideas
Jump to: navigation, search
m (trim out redundant cat)
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>[[File:StructuredDataGraph.png|frameless|left|585px]]</noinclude><includeonly>[[Category:All]]<!--
+
<noinclude>[[File:StructuredDataGraph.png|frameless|left|585px|An example of our default wiki article infobox, and how we use [[WikiIndex:StructuredData|structured data]] here on WikiIndex]]</noinclude><includeonly>[[Category:All]]<!--
    Starting categorizing logic
+
  Starting categorizing logic
 
-->{{#if:{{{status|}}}|[[Category:{{{status}}}]]}}<!--
 
-->{{#if:{{{status|}}}|[[Category:{{{status}}}]]}}<!--
 
-->{{#if:{{{language|}}}|[[Category:Wiki {{ucfirst:{{{language}}}}}]]}}<!--
 
-->{{#if:{{{language|}}}|[[Category:Wiki {{ucfirst:{{{language}}}}}]]}}<!--
 
-->{{#if:{{{editmode|}}}|[[Category:{{{editmode}}}]]}}<!--
 
-->{{#if:{{{editmode|}}}|[[Category:{{{editmode}}}]]}}<!--
-->{{#if:{{{engine|}}}|[[Category:{{alt engine|{{{engine}}}}}]]}}<!--
+
-->{{#if:{{{engine|}}}|[[Category:{{{engine}}}]]}}<!--
 
-->{{#if:{{{maintopic|}}}|[[Category:{{{maintopic}}}]]}}<!--
 
-->{{#if:{{{maintopic|}}}|[[Category:{{{maintopic}}}]]}}<!--
-->{{#if:{{{license|}}}|[[Category:Wiki {{{license}}}]]
+
-->{{#if:{{{license|}}}|[[Category:Wiki {{{license}}}]]}}<!--
}}<!--
+
-->{{#if: {{{wikinode URL|}}}|{{#ifeq: {{{wikinode URL|}}}|No||[[Category:Wikis with a WikiNode]]}}}}<!--
 +
-->{{#if: {{{mobile URL|}}}|{{#ifeq: {{{mobile URL|}}}|No||[[Category:Wikis with a mobile-view site]]}}}}<!--
 
-->{{#if: {{{backupurl|}}}|[[Category:Wiki Backups]]}}<!--
 
-->{{#if: {{{backupurl|}}}|[[Category:Wiki Backups]]}}<!--
 
-->{{#if: {{{wikiFactor|}}}|[[Category:{{wikiFactorCatText|{{{wikiFactor}}}}}]] [[wikiFactor::{{{wikiFactor|0}}}]]}}<!--
 
-->{{#if: {{{wikiFactor|}}}|[[Category:{{wikiFactorCatText|{{{wikiFactor}}}}}]] [[wikiFactor::{{{wikiFactor|0}}}]]}}<!--
    Ending categorizing logic
+
  Ending categorizing logic
 
--></includeonly><!--
 
--></includeonly><!--
    Starting template code
+
  Starting template code
-->{{#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"
 
|-
 
|-
{{#if:{{{wide logo|}}}|
+
{{#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 does not have a logo, a generic 'no logo' image is displayed]][[Category:UnknownWikiLogo]]|{{{logo}}}]</span>
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="text-align:center" {{!}} '''<span style="white-space:nowrap; font-size:16px">{{#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> • <span style=white-space:nowrap>[{{{wikinode URL|No}}} WikiNode] </span>• <span style=white-space:nowrap>[{{{about URL|No}}} About]</span>• <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'''|[{{{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|Wiki does not have a logo|alt=Small monochrome image with a white background, displaying the words black text 'no logo'.]]
| NoLogoYet = [[File:NoLogo.png|alt=Wiki doesn't have a logo yet]]
+
|Upload = [[File:Upload logo.png|Wiki has a logo, but it needs uploading|alt=A square image with a graduated pale brown background, displaying the words black text 'Please Upload Logo'.]]
| Inactive  = [[File:Inactive.png|100px|alt=Wiki is inactive]]
+
|Private= [[Category:Private]][[File:Private.png|100px|Wiki is private, and we can not verify if it has a logo|alt=A square image with a graduated pink/red background, displaying the words black text 'Private Wiki'.]]
| Private   = [[File:Private.png|100px|alt=Wiki is private]]
+
|Dead   = [[Category:Dead]][[File:404.jpg|100px|Wiki is dead :-((|alt= ]]
|#default   = {{{logo}}}
+
|#default= {{{logo}}}
 
}}]</span>
 
}}]</span>
{{!}} '''<span style="white-space:nowrap; font-size:16px">{{#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><br><span style=white-space:nowrap>[{{{wikinode URL<includeonly>|No</includeonly>}}} WikiNode]</span><br><span style=white-space:nowrap>[{{{about URL<includeonly>|No</includeonly>}}} About]</span><br><span style=white-space:nowrap>[{{{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]<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]]:
 +
{{!}}{{{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:{{{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 or dynamic date}}}]
 
[[backupurl::{{{backupurl|}}}| ]][[backupdate::{{{backupdate|}}}| ]]:<!-- Semantic property -->
 
[[backupurl::{{{backupurl|}}}| ]][[backupdate::{{{backupdate|}}}| ]]:<!-- Semantic property -->
 
}}
 
}}
 
|}</div><!--
 
|}</div><!--
    Ending template code
+
  Ending template code--><noinclude>{{clear}}
-->{{#if: {{{wikinode URL|}}}|{{#ifeq: {{{wikinode URL|}}}|No||[[Category:Wikis with a WikiNode]]}}}} {{#if: {{{mobile URL|}}}|{{#ifeq: {{{mobile URL|}}}|No||[[Category:Wikis with a mobile-view site]]}}}}<noinclude>{{clear}}
+
 
See also: [[template:Wiki boilerplate]], [[template:Size]], and specifically for [[:Category:Wikia|Wikia]] wikis: [[template:Wikia boilerplate]].
 
See also: [[template:Wiki boilerplate]], [[template:Size]], and specifically for [[:Category:Wikia|Wikia]] wikis: [[template:Wikia boilerplate]].
 
{{wiki boilerplate}}
 
{{wiki boilerplate}}
[[Category:Wiki| ]]
+
[[Category:All| ]]
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 21:50, 26 September 2018

An example of our default wiki article infobox, and how we use structured data here on WikiIndex
[{{{URL}}} {{{logo}}}] [{{{URL}}} Wiki]
[{{{recentchanges URL}}} Recent changes]
[{{{wikinode URL}}} WikiNode]
[{{{about URL}}} About]
[{{{mobile URL}}} Mobile URL]
Status: [[:Category:{{{status}}}|{{{status}}}]]
Language: [[:Category:Wiki {{{language}}}|{{{language}}}]]
Edit mode: [[:Category:{{{editmode}}}|{{{editmode}}}]]
Wiki engine: [[:Category:{{{engine}}}|{{{engine}}}]]
Main topic: [[:Category:{{{maintopic}}}|{{{maintopic}}}]]

See also: template:Wiki boilerplate, template:Size, and specifically for Wikia wikis: template:Wikia boilerplate. When adding or amending a date for the backup file, or page count and wikiFactor, please use full ISO 8601 date format as shown (YYYY-MM-DD).

{{Wiki <!--see 'Template:Wiki' for full detail-->
|name             = <!--use if wiki name is different from article name, or to include tagline; otherwise, DELETE this field-->
|URL              = YourWikiHttp <!--start with http:// or https:// - eg: http://YourWikiURL.org/wiki/Main_Page; if unknown, 'UnknownWikiURL'-->
|logo             = No <!--you may upload and wikilink, or hot-link to a URL-->
|wide logo        = <!--insert 'y' when the logo is too wide AND / OR the title is too long-->
|recentchanges URL= No <!--http://YourWikiURL.org/wiki/Special:RecentChanges-->
|wikinode URL     = No <!--http://YourWikiURL.org/wiki/WikiNode - if none, use 'No'-->
|about URL        = No <!--http://YourWikiURL.org/wiki/PROJECTNAMESPACE:About - if none, use 'No'-->
|mobile URL       = No <!--http://m.YourWikiURL.org or http://YourWikiURL.org/index.php?title=Main_Page&mobileaction=toggle_view_mobile-->
|founder          = <!--wiki founder(s) name(s); default is plain text, wikilink only to existing article; if unknown leave void-->
|status           = YourWikiStatus <!--'Active' is appropriate for most sites; see Category:Wiki Status for more info-->
|language         = YourWikiLanguage <!--eg: English, Multilingual, Japanese etc; only ONE entry in this field-->
|editmode         = YourWikiEditMode <!--'OpenEdit' if users can edit without logging in, LoginToEdit if not; see Category:Wiki Edit Mode-->
|engine           = YourWikiEngine <!--the software which the wiki runs on, eg: MediaWiki; see Category:Wiki Engine-->
|license          = YourWiki'sLicense <!--preferred; see Category:Wiki License; if NO license, 'NoLicense'-->
|maintopic        = YourWikiTopic <!--the main, primary topic; other sub-topics can be added as tags within the prose below-->
|backupurl        = <!--backup file URL, found at '/Special:Statistics' on Wikia & some other MediaWiki sites-->
|backupdate       = 2018-MM-DD <!--ISO 8601 date of backup URL, as in YYYY-MM-DD; if unknown leave void-->
}}
{{Size <!--see 'Template:Size' for full detail-->
|pages= <!--type the plain number of pages; NO thousands separators-->
|statistics URL= No <!--page count source (often a '/Special:Statistics' page); if unknown type 'No'-->
|wikiFactor= <!--preferred; if unknown leave void; see: Category:wikiFactor-->
|wikiFactor URL= <!--wF source (often 'PopularPages', 'Mostvisitedpages', 'PageHits'); if unknown leave void-->
}}(Page count as of: 2019-MM-DD<br>wikiFactor as of: 2012-MM-DD)<!--YYYY-MM-DD; manually add/amend date when stats are verified and/or updated-->

==Description==
{{Stub}} <!-- remove this comment (between <!-- and -->) after:
type description of your wiki here, and 'tag' specific notable words to include them into categories as follows {{tag|notable subject}}
(This tag construction is used when you want a word in the text to wikilink to the category of that same name.)

If a taggable category name does not appear in the prose text, use and amend the '[[Category:FirstAdditional]]' etc at the BOTTOM of
the page to manually add categories.  It would also be helpful to add the year of founding, like so... -->
[[Category:FirstAdditional]]
[[Category:SecondAdditional]]
[[Category:FoundedIn20xx]]<!--http://YourWikiURL.org/index.php?title=Special:AncientPages or http://YourWikiURL.org/w/index.php?title=Main_Page&dir=prev&action=history-->
All wiki language boilerplate versions available for template:Wiki