Wikihack:Templates
Talk0this wiki
|
Edit box Wikihack |
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 Style guide.
The box at the top-right of this page is Template:Community.
Contents |
Pages needing attention
Edit
Todo
Edit
| What appears | What you type |
|---|---|
| A user has suggested improving this page or section as follows: "This page needs X doing." | {{todo|This page needs X doing.}} |
The {{todo}} template marks a page with a message about what needs to be done. It also adds the page to Category:Todo.
Deletion
Edit
| 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.
Merging
Edit
| What appears | What you type |
|---|---|
| A user has suggested this page be merged with "insert reason" | {{merge|insert reason}} |
The {{merge}} template adds a notice that the page should be merged with another, or several others. It also adds the page to Category:Pages to be merged.
If you see a merge notice, try merging the pages!
Stubs
Edit
| What appears | What you type |
|---|---|
| {{stub}} |
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.
Color templates
Edit
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:
| Object represented | What you type | Result |
|---|---|---|
| newt | {{yellow|:}} (or {{monsym|newt}}) | : |
| lichen | {{brightgreen|F}} (or {{monsym|lichen}}) | F |
| lit and unlit corridor | {{white|#}}{{white|#}}{{lightgray|#}}{{lightgray|#}} | #### |
| pool of lava | {{red|}}} | } |
| grave | {{lightgray||}} | | |
To display monster symbols you should use Template:Monsym instead, unless the monster symbol you want to display is dependant on the NetHack version and shouldn't change even if it changes in future NetHack versions.
See Category:Function templates for details.
Infoboxes
Edit
We have templates for information boxes to be put on each item and monster page; see Wikihack:Style guide#Item pages and Template:Monster respectively.
We now also have a Template:Patch for pages about a patch.
Template link
Edit
| What appears | What you type |
|---|---|
| Use {{stub}} to mark stubs. | Use {{tl|stub}} to mark stubs. |
Origin:
- Wikibooks:Template:tl -> {{tl}}
Links
Edit
The Category:Link templates contains boxes that float to the right and show links to other websites, mostly wiki projects. This is most frequently used to link to Wikipedia:
| What appears | What you type |
|---|---|
| {{wikipedia|Samurai}} |
We also have one that links to Unix manual pages:
| What appears | What you type |
|---|---|
| {{man|make}} |
Links to SLASH'EM source
Edit
Template:Semsrc helps one generate links into SLASH'EM's CVS repository, especially to the HEAD. Note that this is no longer necessary for SLASH'EM 0.0.7E7F2 because we can now use local links like SLASH'EM 0.0.7E7F2/eat.c#line2095.
Licensing
Edit
| What appears
What you type | |
|---|---|
{{DOD}} on articles based on Hugo/O'Donnell spoilers | |
{{JAH}} on articles based on the Vernon Spoilers | |
{{basedon|name=Author|url=http://www.website.org}} on articles based on other, copyrightless, spoilers. | |
{{rodney}} on articles based on entries from Rodney (bot) | |
{{CWI}} on source code from early version of NetHack | |
{{NGPL}} on NGPL-licensed source code from NetHack | |
{{GFDL}} on images | |
{{fairuse}} on images |
Origin:
- Wikibooks:Template:fairuse -> {{fairuse}}
- {{fairuse}} -> other templates
These tags indicate some copyright external to the copyright of this wiki.
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 quoting from the game ("The newt bites! You die...") or giving game statistics (like when using {{monster}}) does not require a template.
Disambiguation
Edit
Put {{disambig}} at the bottom of disambiguation pages.
{{otheruses}}, {{for}}, {{for2}} or {{distinguish}} can be put at the top of pages whose title has another major meaning, but try to limit this to pages where a real potential for confusion exists.
Main article
Edit
{{main}} may be used to ensure consistent style when indicating a main article from within a section. The Links section above uses this template thus:
{{main|Category:Link templates}}
Unsigned comments
Edit
Put {{unsigned}} after unsigned comments.
News
Edit
Edit {{news}} to add news items to the front page.
Welcome
Edit
Substitute the {{welcome}} template on the talk pages of anonymous users:
{{subst:welcome}} --~~~~
Featured article
Edit
On the first of every month, put a new featured article in {{currentfeature}}.
Hacks
Edit
To bypass limitations in Mediawiki's template syntax, the {{!}} template can be used to insert a "|" (pipe).
Others
Edit
There are other templates, such as {{NetHack Versions}}, but they are already on every page they should ever be on.