Useful templates: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
This page lists custom templates available in this Wiki, Besides those the following installed MediaWiki extensions also provide parser functions:
* [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions ParserFunctions]
* [https://www.mediawiki.org/wiki/Extension:Arrays Arrays]
* [http://semantic-mediawiki.org/wiki/Help:User_manual Semantic MediaWiki (SMW)]
* [https://www.mediawiki.org/wiki/Extension:Semantic_Forms Semantic Forms]


== General ==
== General ==
Line 7: Line 15:
! Example
! Example
|-
|-
| <pre><nowiki>{{About|some stuff|other stuff|Main_Page}}</nowiki></pre>
| <pre><nowiki>{{About|some stuff|other stuff|Main Page}}</nowiki></pre>
| [[Template:About|Link to disambiguation pages]]
| [[Template:About|Link to disambiguation pages]]
| {{About|some stuff|other stuff|Main_Page}}
| {{About|some stuff|other stuff|Main Page}}
|-
|-
| <pre><nowiki>{{Main|Main_Page}}</nowiki></pre>
| <pre><nowiki>{{Main|Main Page}}</nowiki></pre>
| [[Template:Main|Link to a page with more details for a section]]
| [[Template:Main|Link to a page with more details for a section]]
| {{Main|Main_Page}}
| {{Main|Main Page}}
|-
|-
| <pre><nowiki>{{Box|some text}}{{Box|some other text}}</nowiki></pre>
| <pre><nowiki>{{Box|some text}}{{Box|some other text}}</nowiki></pre>
Line 39: Line 47:
| {{N}}
| {{N}}
|-
|-
| <pre><nowiki>{{wp|Arx Fatalis}}</nowiki></pre>
| <pre><nowiki>[[wp:Arx Fatalis|Arx Fatalis]]</nowiki></pre>
| [[Template:wp|Link to a Wikipedia article]]
| [https://www.mediawiki.org/wiki/Help:Links#Interwiki_links interwiki links]
| {{wp|Arx Fatalis}}
| [[wp:Arx Fatalis|Arx Fatalis]]
|}
|}


Line 50: Line 58:
! Description
! Description
! Example
! Example
|-
| <pre><nowiki>{{Changelog|1.0}}</nowiki></pre>
| [[Template:Commit|Link to a changelog entry]]
| {{Changelog|1.0}}
|-
| <pre><nowiki>{{Commit|1a6c2a67547393d94153390148baab149d3cf98c}}</nowiki></pre>
| [[Template:Commit|Link to a git commit]]
| {{Commit|1a6c2a67547393d94153390148baab149d3cf98c}}
|-
|-
| <pre><nowiki>{{Issue|1}}</nowiki></pre>
| <pre><nowiki>{{Issue|1}}</nowiki></pre>
Line 63: Line 79:
| {{Feature|356}}
| {{Feature|356}}
|-
|-
| <pre><nowiki>{{Download|name=Name|file=filename|url=http://arx.vg/}}</nowiki></pre>
| <pre><nowiki>{{Download|name=Name|file=filename|url=https://arx.vg/}}</nowiki></pre>
| [[Template:Download|Add a download box]]
| [[Template:Download|Add a download box]]
| {{Download|name=Name|file=filename|url=http://arx.vg/}}
| {{Download|name=Name|file=filename|url=https://arx.vg/}}
|-
|-
| <pre><nowiki>{{FreeBSD|big}}</nowiki></pre>
| <pre><nowiki>{{FreeBSD|big}}</nowiki></pre>
Line 102: Line 118:
| [[Template:Command|Link to a script command]]
| [[Template:Command|Link to a script command]]
| {{Command|spellcast}}
| {{Command|spellcast}}
|-
| <pre><nowiki>{{Command|destroy|self}}</nowiki></pre>
| [[Template:Command|Link to a script command with arguments]]
| {{Command|destroy|self}}
|-
| <pre><nowiki>{{Event|hearbeat}}</nowiki></pre>
| [[Template:Command|Link to a script event]]
| {{Event|hearbeat}}
|}
|}


Line 110: Line 134:
! 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 134: Line 166:
| [[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}}
|-
| <pre><nowiki>{{Entity|human_base_0028}}</nowiki></pre>
| [[Template:EntityClass|Link to an entity by ID]]
| {{Entity|human_base_0028}}
|}
|}

Latest revision as of 17:38, 18 October 2022

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|Arx Fatalis]]
interwiki links Arx Fatalis

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
{{Command|destroy|self}}
Link to a script command with arguments destroy self
{{Event|hearbeat}}
Link to a script event hearbeat

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
{{Entity|human_base_0028}}
Link to an entity by ID Kultar (human_base_0028)