Difference between revisions of "NetHackWiki:Templates"

From NetHackWiki
Jump to navigation Jump to search
(Licensing: Update to include Template:DOD, Template:GFDL.)
(Cleanup this page. Add function templates. Offload project link templates to their own Category:Linkk templates.)
Line 1: Line 1:
 
{{community}}
 
{{community}}
 +
The intention of this page is to document each template at this wiki. This page only describes what each template does; for tips on styling an article, try [[Wikihack:Style guide]].
  
The intention of this page is to document every template at this wiki. The template at the top of this page is [[Template:Community]].
+
The box at the top-right of this page is [[Template:Community]].
  
== Wiki administration ==
+
== Page deletion ==
{|style="width: 90%;" border="1"
+
{| class="wikitable"
|'''What appears'''
+
! What appears
|'''What you type'''
+
! What you type
 
|-
 
|-
|{{delete|insert reason}}
+
| {{delete|insert reason}}
|<nowiki>{{delete|insert reason}}</nowiki>
+
| <nowiki>{{delete|insert reason}}</nowiki>
 +
|}
 +
 
 +
The {{tl|delete}} template adds a page to [[:Category:Candidates for deletion]] so that [[Wikihack:administrators|administrators]] can consider deleting it.
 +
 
 +
== Article stubs ==
 +
{| class="wikitable"
 +
! What appears
 +
! What you type
 
|-
 
|-
|{{stub}}
+
| {{stub}}
|<nowiki>{{stub}}</nowiki>
+
| <nowiki>{{stub}}</nowiki>
 +
|-
 +
| {{stub|Is this artifact better than [[Frost Brand]]?}}
 +
| <nowiki>{{stub|Is this artifact better than [[Frost Brand]]?}}</nowiki>
 
|}
 
|}
  
For more information about these templates, read the categories:
+
The {{tl|stub}} template appeals for someone to click the "edit" link and add more information to an article. It also lists the article in [[:Category:Stubs]].
* [[:Category:Candidates for deletion]]
 
* [[:Category:Stubs]]
 
  
== [[Template:Monster]] ==
+
== Function templates ==
[[Template:Monster]] is an experiment in progress; see [[soldier ant]] for a call of this template.
+
The function templates of [[:Category:Function templates]] allow you to show monsters or objects in any of the 16 [[color]]s that NetHack uses. Witness, for example, the [[newt]], [[lichen]], and unlit [[corridor]] shown below:
  
== Linking ==
+
{| class="wikitable"
=== Linking to templates ===
+
|| {{yellow|:}}                  || {{brightgreen|F}}
{|style="width: 90%;" border="1"
+
|| {{white|#}}{{white|#}}{{white|#}}{{white|#}}
|'''What appears'''
 
|'''What you type'''
 
 
|-
 
|-
|Use the {{tl|monster}} template.
+
|| <nowiki>{{yellow|:}}</nowiki> || <nowiki>{{brightgreen|F}}</nowiki>
|<nowiki>Use the {{tl|monster}} template</nowiki>.
+
|| <nowiki>{{white|#}}{{white|#}}{{white|#}}{{white|#}}</nowiki>
 
|}
 
|}
  
Origin:
+
See '''[[:Category:Function templates]]''' for details.
* [[Wikibooks:Template:tl]] -> {{tl|tl}}
+
 
 +
== Item monster ==
 +
We are working on it, but we might create templates for information boxes to be put on each [[item]] and [[monster]] page; see '''[[Wikihack:Style guide#Item pages]]''' and '''[[Template:Monster]]''' respectively.
  
=== Generic project link ===
+
== Template link ==
{|style="width: 90%;" border="1"
+
{| class="wikitable"
|'''What appears'''
+
! '''What appears'''
|'''What you type'''
+
! '''What you type'''
 
|-
 
|-
|{{generic project link| project=Gameinfo| image=fair-use-gameinfo-logo.png| text=[[Gameinfo:Main Page|Gameinfo]] has a category for:| link=[[Gameinfo:Category:Battle for Wesnoth|Category:Battle for Wesnoth]]}}
+
| Use {{tl|stub}} to mark stubs.
|<nowiki>{{generic project link| project=Gameinfo| image=fair-use-gameinfo-logo.png| text=[[Gameinfo:Main Page|Gameinfo]] has a category for:| link=[[Gameinfo:Category:Battle for Wesnoth|]]}}</nowiki>
+
| <nowiki>Use {{tl|stub}} to mark stubs.</nowiki>
 
|}
 
|}
  
{{generic project link| project=Gameinfo| image=fair-use-gameinfo-logo.png| text=[[Gameinfo:Main Page|Gameinfo]] has a category for:| link=[[Gameinfo:Category:Battle for Wesnoth|Category:Battle for Wesnoth]]}}
+
Origin:
This template provides a box which floats to the right, as shown here. It can substitute for the specific project link when the specific template is unavailable. In this example, we use the template to reach a category at Gameinfo.
+
* [[Wikibooks:Template:tl]] -> {{tl|tl}}
  
Origin:
+
== Project link ==
* [[Gameinfo:Template:wikipedia]] -> {{tl|wikipedia}} -> {{tl|generic project link}}
+
The [[:Category:Link templates]] contains boxes that float to the right and show links to other wiki projects. This is most frequently used to link to Wikipedia:
  
=== Specific project link ===
+
{| class="wikitable"
{|style="width: 90%;" border="1"
+
! '''What appears'''
|'''What appears'''
+
! '''What you type'''
|'''What you type'''
 
 
|-
 
|-
|{{wikipedia}}
+
| {{wikipedia|Samurai}}
|<nowiki>{{wikipedia}}</nowiki>
+
| <nowiki>{{wikipedia|Samurai}}</nowiki>
|-
 
|{{wikipedia2|Mythology and fiction in NetHack}}
 
|<nowiki>{{wikipedia2|Mythology and fiction in NetHack}}</nowiki>
 
|-
 
|{{wikibooks}}
 
|<nowiki>{{wikibooks}}</nowiki>
 
|-
 
|{{wikibooks2|NetHack/Building}}
 
|<nowiki>{{wikibooks2|NetHack/Building}}</nowiki>
 
|-
 
|{{gameinfo}}
 
|<nowiki>{{gameinfo}}</nowiki>
 
|-
 
|{{gameinfo2|NetHack}}
 
|<nowiki>{{gameinfo2|NetHack}}</nowiki>
 
|-
 
|{{novelas}}
 
|<nowiki>{{novelas}}</nowiki>
 
|-
 
|{{novelas2|NetHack/Nutter}}
 
|<nowiki>{{novelas2|NetHack/Nutter}}</nowiki>
 
 
|}
 
|}
  
{{wikibooks2|NetHack}}
+
See '''[[:Category:Link templates]]''' for details and other available templates.
As shown here, these boxes float to the right.
 
 
 
Here are links to each template:
 
* {{tl|wikipedia}}, {{tl|wikibooks}}, {{tl|gameinfo}}, {{tl|novelas}}
 
* {{tl|wikipedia2}}, {{tl|wikibooks2}}, {{tl|gameinfo2}}, {{tl|novelas2}}
 
 
 
The templates currently use {{tl|generic project link}} to implement themselves.
 
  
 
== Licensing ==
 
== Licensing ==
{|style="width: 90%;" border="1"
+
{| class="wikitable"
|'''What appears'''
+
! What appears
|'''What you type'''
+
! What you type
 
|-
 
|-
|{{DOD}}
+
| {{DOD}}
|{{tl|DOD}} at articles
+
| {{tl|DOD}} at articles
 
|-
 
|-
|{{rodney}}
+
| {{rodney}}
|{{tl|rodney}} at articles
+
| {{tl|rodney}} at articles
 
|-
 
|-
|{{NGPL}}
+
| {{NGPL}}
|{{tl|NGPL}} at articles and images
+
| {{tl|NGPL}} at articles and images
 
|-
 
|-
|{{GFDL}}
+
| {{GFDL}}
|{{tl|GFDL}} at images
+
| {{tl|GFDL}} at images
 
|-
 
|-
|{{fairuse}}
+
| {{fairuse}}
|{{tl|fairuse}} at images
+
| {{tl|fairuse}} at images
 
|}
 
|}
  

Revision as of 21:26, 1 July 2006

The intention of this page is to document each template at this wiki. This page only describes what each template does; for tips on styling an article, try Wikihack:Style guide.

The box at the top-right of this page is Template:Community.

Page deletion

What appears What you type

A user has suggested the deletion of this page. The reason given was:

"insert reason"

{{delete|insert reason}}

The {{delete}} template adds a page to Category:Candidates for deletion so that administrators can consider deleting it.

Article stubs

What appears What you type
This page is a stub. Should you wish to do so, you can contribute by expanding this page.
{{stub}}
This page is a stub. Should you wish to do so, you can contribute by expanding this page.

A user has suggested improving this page or section as follows:

"Is this artifact better than Frost Brand?"

{{stub|Is this artifact better than [[Frost Brand]]?}}

The {{stub}} template appeals for someone to click the "edit" link and add more information to an article. It also lists the article in Category:Stubs.

Function templates

The function templates of Category:Function templates allow you to show monsters or objects in any of the 16 colors that NetHack uses. Witness, for example, the newt, lichen, and unlit corridor shown below:

: F ####
{{yellow|:}} {{brightgreen|F}} {{white|#}}{{white|#}}{{white|#}}{{white|#}}

See Category:Function templates for details.

Item monster

We are working on it, but we might create templates for information boxes to be put on each item and monster page; see Wikihack:Style guide#Item pages and Template:Monster respectively.

Template link

What appears What you type
Use {{stub}} to mark stubs. Use {{tl|stub}} to mark stubs.

Origin:

Project link

The Category:Link templates contains boxes that float to the right and show links to other wiki projects. This is most frequently used to link to Wikipedia:

What appears What you type
{{wikipedia|Samurai}}

See Category:Link templates for details and other available templates.

Licensing

What appears What you type

This page is based on a spoiler by Dylan O'Donnell. The original license is:

Redistribution, copying, and editing of these spoilers, with or without modification, are permitted provided that the following conditions are met:

  1. The original contributors to any spoiler must continue to be credited.
  2. Any modifications to the spoiler must be acknowledged and credited.
{{DOD}} at articles

Some or all of the information on this page was taken from https://alt.org/nethack/rodney-learn.php with the permission of the contributor. A list of people who gave such permission is at Contributors to Rodney donating to the Wiki.

{{rodney}} at articles

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

{{NGPL}} at articles and images

GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "Text of the GNU Free Documentation License."
{{GFDL}} at images

This work is copyrighted. The individual who uploaded this work and first used it in an article, as well as subsequent persons who place it into articles, asserts that this qualifies as fair use of the material under United States copyright law.

{{fairuse}} at images

Origin:

These tags indicate some copyright external to the copyright of this wiki. There are two reasons to do this:

  • It is proposed that all images have tags showing their copyright status. This is similar to what Wikimedia Commons does.
  • Articles derived from Rodney use the {{rodney}} tag, while articles annotating NetHack source code use the {{NGPL}} tag (for the source code, not the annotations).

Some images can use {{fairuse}}, but this should always be avoided except when needed, for example for the Wikipedia logo. In most cases, fair use such as simply making a quote ("The newt bites! You die...") or giving game statistics (like when using {{monster}}) does not require a template.

See also