Useful templates: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Use HTTPS links)
Line 126: Line 126:
! Description
! Description
! Example
! Example
|-
| <pre><nowiki>{{Action|action}}</nowiki></pre>
| [[Template:Action|Link to a action]]
| {{Action|action}}
|-
| <pre><nowiki>{{ActionBinding|action}}</nowiki></pre>
| [[Template:ActionBinding|Show the default bindings for an action]]
| {{ActionBinding|action}}
|-
|-
| <pre><nowiki>{{RuneIcon|taar|32px}}</nowiki></pre>
| <pre><nowiki>{{RuneIcon|taar|32px}}</nowiki></pre>
Line 150: Line 158:
| [[Template:Spell|Link to a spell]]
| [[Template:Spell|Link to a spell]]
| {{Spell|fireball}}
| {{Spell|fireball}}
|-
| <pre><nowiki>{{EntityClass|human}}</nowiki></pre>
| [[Template:EntityClass|Link to an entity class]]
| {{EntityClass|human}}
|}
|}

Revision as of 01:59, 14 April 2020

This page lists custom templates available in this Wiki, Besides those the following installed MediaWiki extensions also provide parser functions:


General

Code Description Example
{{About|some stuff|other stuff|Main Page}}
Link to disambiguation pages
This article is about some stuff. For other stuff, see Main Page.
{{Main|Main Page}}
Link to a page with more details for a section
Main article: Main Page.
{{Box|some text}}{{Box|some other text}}
Split page horizontally
some text
some other text
{{Notice|Hello World!}}
Add an important notice

ℹ️  Hello World!

{{Warning|Here be dragons}}
Add a warning
⚠️
Here be dragons
{{SpoilerWarning|Sean Bean dies}}
Add a warning about spoilers
⚠️
Spoiler warning: Sean Bean dies
{{Y}}
Yes
{{N}}
No
{{wp|Arx Fatalis}}
Link to a Wikipedia article Template:Wp

Project

Code Description Example
{{Changelog|1.0}}
Link to a changelog entry Arx Libertatis 1.0
{{Commit|1a6c2a67547393d94153390148baab149d3cf98c}}
Link to a git commit commit 1a6c2a6
{{Issue|1}}
Link to a bug report bug #1
{{Crash|253}}
Link to a crash report crash report #253
{{Feature|356}}
Link to a feature request feature request #356
{{Download|name=Name|file=filename|url=https://arx.vg/}}
Add a download box
{{FreeBSD|big}}
FreeBSD icon and text FreeBSD
{{Linux|big}}
Linux icon and text Linux
{{MacOSX|big}}
Mac OS X icon and text macOS
{{Windows|big}}
Windows icon and text Windows
{{Wine}}
Wine icon and text Wine
{{Icon|arx}}
Add a predefined icon

Scripting

Code Description Example
{{Command|spellcast}}
Link to a script command spellcast

Gameplay

Code Description Example
{{Action|action}}
Link to a action Action (Click)
{{ActionBinding|action}}
Show the default bindings for an action Click
{{RuneIcon|taar|32px}}
Include the icon of a single rune Taar Rune (missile)
{{RuneMeaning|taar}}
Include the "meaning" of a single rune missile
{{RuneName|taar}}
Include the name of a single rune Taar
{{Runes|aam,taar}}
Link to one or more runes Aam Rune (create)Taar Rune (missile) Aam Taar (create missile)
{{RunesForSpell|fireball}}
Include the rune sequence for a spell Aam Rune (create)Yok Rune (fire)Taar Rune (missile) Aam Yok Taar (create fire missile)
{{Spell|fireball}}
Link to a spell Fireball (Aam Rune (create)Yok Rune (fire)Taar Rune (missile))
{{EntityClass|human}}
Link to an entity class Human