Difference between revisions of "Template:Wiki"

From WikiIndex
Jump to: navigation, search
(prevent un-necessary flooding into Category:Wikis to add for those wikis which have no hope of finding such info)
(Minor correction for logo category)
(45 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|{{{status|{{{status|}}}}}}}}}|[[Category:{{{status|{{{status|{{{status}}}}}}}}}]]}}<!--
+
-->{{#if:{{{status|}}}|[[Category:{{{status}}}]]}}<!--
-->{{#if:{{{language|{{{language|{{{language|}}}}}}}}}|[[Category:Wiki {{{language|{{{language|{{{language}}}}}}}}}]]}}<!--
+
-->{{#if:{{{language|}}}|[[Category:Wiki {{ucfirst:{{{language}}}}}]]}}<!--
-->{{#if:{{{editmode|{{{editmode|{{{editmode|}}}}}}}}}|[[Category:{{{editmode|{{{editmode|{{{editmode}}}}}}}}}]]}}<!--
+
-->{{#if:{{{editmode|}}}|[[Category:{{{editmode}}}]]}}<!--
-->{{#if:{{{alt engine|{{{engine|{{{engine|{{{engine|}}}}}}}}}}}}|[[Category:{{{alt engine|{{{engine|{{{engine|{{{engine}}}}}}}}}}}}]]}}<!--
+
-->{{#if:{{{engine|}}}|[[Category:{{{engine}}}]]}}<!--
-->{{#if:{{{maintopic|{{{maintopic|{{{maintopic|}}}}}}}}}|[[Category:{{{maintopic|{{{maintopic|{{{maintopic}}}}}}}}}]]}}<!--
+
-->{{#if:{{{maintopic|}}}|[[Category:{{{maintopic}}}]]}}<!--
-->{{#if: {{{license|{{{license|{{{license|}}}}}}}}}|[[Category:Wiki {{{license|{{{license|{{{license}}}}}}}}}]]
+
-->{{#if:{{{license|}}}|[[Category:Wiki {{{license}}}]]}}<!--
}}<!--
+
-->{{#if:{{{wikinode URL|}}}|{{#ifeq:{{{wikinode URL|}}}|No||[[Category:Wikis with a WikiNode]]}}}}<!--
-->{{#if: {{{backupurl|}}}|[[Category:Wiki Backups]]}}<!--
+
-->{{#if:{{{mobile URL|}}}|{{#ifeq:{{{mobile URL|}}}|No||[[Category:Wikis with a mobile-view site]]}}}}<!--
-->{{#if: {{{wikiFactor|}}}|[[Category:{{wikiFactorCatText|{{{wikiFactor}}}}}]] [[wikiFactor::{{{wikiFactor|0}}}]]}}<!--
+
-->{{#if:{{{backupurl|}}}|[[Category:Wiki Backups]]}}<!--
    Ending categorizing logic
+
-->{{#if:{{{wikiFactor|}}}|[[Category:{{wikiFactorCatText|{{{wikiFactor}}}}}]] [[wikiFactor::{{{wikiFactor|0}}}]]}}<!--
 +
  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:NoWikiLogo]]|{{{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>
+
{{!}}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: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:NoWikiLogo]][[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]]
+
|Unknown= [[Category:UnknownWikiLogo]][[File:NoLogo.png|Wiki logo unknown|alt=Small monochrome image with a white background, displaying the words black text 'no logo'.]]
| Inactive  = [[File:Inactive.png|100px|alt=Wiki is inactive]]
+
|Upload = [[Category:Wiki site requiring logo 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'.]]
| Private   = [[File:Private.png|100px|alt=Wiki is private]]
+
|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'.]]
|#default   = {{{logo}}}
+
|Dead  = [[Category:Dead]][[File:404.jpg|100px|Wiki is dead :-((|alt= ]]
 +
|#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>
+
{{!}}'''<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]]:
 +
{{!}}{{{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}}}]][[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}}}]][[Wiki 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]]}}}}<noinclude>{{clear}}
+
See also: [[template:Wiki boilerplate]], [[template:Size]], and specifically for [[:Category:Wikia|Wikia]]-hosted 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:All| ]]
[[Category:Wiki| ]]
+
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Revision as of 09:05, 28 September 2021

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-hosted wikis: template:Wikia boilerplate.

Template: Wiki boilerplate is the generic boilerplate template used for creating a standardised infobox for articles about wiki SITES here on WikiIndex. It is suitable for all wiki site articles, and is applicable to act as a guide for most wiki engine schemas, including MediaWiki. For Fandom-specific wiki articles powered by Wikia (Fandom), use: template: Wikia boilerplate (currently only available in English). For wiki sites powered by all other wiki engines, please amend the requested field answers to their best fit. This boilerplate template has been manually translated from this specific boilerplate into a few other selected wiki languages as listed at the bottom of this page, based on standard MediaWiki terminology. Please make any changes or updates as required, and please create a new boilerplate (including the below red links) in a different language if desired. It should be noted, for ALL MediaWiki sites (apart from early software versions), all non-English wiki sites will automatically translate all SpecialPages standard English URLs into the actual language as used on said non-English wiki site. All infobox external URLs must start with http:// or https://, whereas external link URLs within the prose description may also use any existing interwiki link for external sites, along with conventional 'internal' wikilinks.

Please note: when adding and / or amending a date for the field containing the backup file, or the placements for page count and / or wikiFactor (wF), please use the YYYY-MM-DD schema, which is the universal and international ISO 8601 date extended format.

{{Wiki <!--see 'Template:Wiki' for full detail and hidden help advice-->
|name             = WikiName,<br><small>''tagline''</small><!--if wiki site name is different from article name; to include tagline; for native language name-->
|URL              = YourWikiHttp<!--include http:// or https:// e.g. https://YourWikiURL.org/wiki/Main_Page; if unknown, 'UnknownWikiURL'-->
|logo             = No<!--upload logo & wikilink, or direct URL hotlink; pre-fill defaults: 'No', 'Unknown', 'Upload', 'Private', 'Dead', 'Wikia'-->
|wide logo        = <!--insert 'y' when the logo is too wide AND / OR the title name is too long-->
|recentchanges URL= No<!--https://YourWikiURL.org/wiki/Special:RecentChanges?hidebots=0&limit=500&days=900, if none, use 'No'-->
|wikinode URL     = No<!--https://YourWikiURL.org/wiki/WikiNode, if none, use 'No'-->
|about URL        = No<!--https://YourWikiURL.org/wiki/PROJECTNAMESPACE:About, if none, use 'No'-->
|mobile URL       = No<!--https://YourWikiURL.org?useformat=mobile or https://YourWikiURL.org/index.php?title=Main_Page&mobileaction=toggle_view_mobile-->
|founder          = unknown<!--wiki founder(s) name(s); wikilink or hotlink if available; if unknown, use 'unknown'-->
|status           = YourWikiStatus<!--'Active' is appropriate for most sites; see Category:Wiki status for more info-->
|language         = YourWikiLanguage<!--e.g. English, Multilingual, Japanese etc; only ONE entry in this field-->
|editmode         = YourWikiEditMode<!--'OpenEdit' if IP users can edit WITHOUT logging in, 'LoginToEdit' if not; all options at Category:Wiki Edit Mode-->
|engine           = YourWikiEngine<!--software which wiki site runs on (or 'powered by'), e.g. MediaWiki; see Category:Wiki engine-->
|license          = YourWiki'sLicense<!--preferred; NO version numbers; see Category:Wiki license; if NO license, 'No license'-->
|maintopic        = YourWikiTopic<!--only ONE main, primary topic; other sub-topics added as tags within description prose below-->
|backupurl        = <!--database dump backup file URL; found at '/Special:Statistics' on Wikia & some other MediaWiki sites; archived URL may also be used-->
|backupdate       = 20YY-MM-DD<!--YYYY-MM-DD, ISO 8601 extended date of backup URL; if unknown, dynamic or NO date, DELETE this field-->
}}{{Stub}}<!--use stub template if lacking adequate description, or needing update; remove stub if up-to-date & detailed prose included-->
{{Size <!--see 'Template:Size' for extensive full detail-->
|pages= <!--plain numeric value for number of CONTENT pages (or Files on a commons wiki); NO thousands separators-->
|statistics URL= No<!--page count source, often a '/Special:Statistics' or 'PageSize' page; if unknown type 'No'-->
|wikiFactor= <!--(wF), preferred; see: Category:wikiFactor; if wF unknown leave void; archived wF value may be used-->
|wikiFactor URL= <!--wF source; often 'PopularPages', 'Mostvisitedpages', 'PageHits'; leave void if unknown; archived URL if available-->
}}(Page count as of: 20YY-MM-DD<br>wikiFactor as of: 2012-MM-DD)<!--YYYY-MM-DD; manually add/amend ISO 8601 date when stats are verified and/or updated-->

;''Description
<!-- remove this 'hidden text' comment (between <!-- and -->) after:
Full and factual description of wiki site here, including detail on wiki subject matter, founder and / or owner, history, community
of people on wiki, wiki software and host, independent awards or nominations, and any problems such as technical problems or user
complaints, 'tag' specific subject words to auto-include them into categories as follows: {{tag|notable subject}}.  (The tag template
is used to make a word in the text into wikilink AND auto-include into the category of that same name).  Although not required,
please try to support any commentary with inline references to valid external citations.

;''See also
List any additional articles here on WikiIndex that may be relevant or related to this specific wiki site (if any)

;''References
<References/><!--use for inline <ref>citation URL</ref> sources (if any)-->

;''External links
{{WikiApiary}}<!--only for MediaWiki powered wiki sites-->
*[https://WikiParentURL.org WikiParentURL.org] — official 'parent' website of wiki (if any)
*{{Wp|{{PAGENAME}}}} — on the [[English Wikipedia]]
OFFICIAL web forums, and social media sites which DIRECTLY support the actual wiki site may also be included.
Off-topic links are NOT allowed; they will be treated a spam, and will be removed.

{{Multi-language navigation template}} - for article templates used to link different language versions of the same wiki,
such as Uncyclopedia, Wikipedia, etc, or if a single subject has many differing wikis, such as Star Wars or Final Fantasy.

If a tagable category name does not appear in the description prose text, use and amend the '[[Category:FirstAdditional]]' etc
at the BOTTOM of the page edit box to manually add categories.  Please list all skin categories (default category first) after
additional subject categories (found at '/Special:Version').  Finally, add the year of founding, like so... -->
[[Category:FirstAdditional]]
[[Category:SecondAdditional]]
[[Category:Vector]]<!--skin categories, default skin first-->
[[Category:Monobook]]
[[Category:Timeless]]
[[Category:Founded in YYYY]]<!--Special:AncientPages, or https://YourWikiURL.org/w/index.php?title=Main_Page&dir=prev&action=history-->

Select and highlight the text above in the blue/grey 'boilerplate', select copy the highlighted text (Ctrl-c on M$ Windows, or -c Apple Mac keyboard), and then paste (Ctrl-v or -v) it at the top of the edit box of the relevant wiki site article, then amend the fields to the right of the = sign with the requested information on the specific wiki site. Don't forget to click on the 'Show preview' button (alt-p or shift-esc-p on your keyboard) to verify your edited detail is correct before saving (alt-s or shift-esc-s).


All wiki language boilerplate versions available for template: Wiki