Template:LinkCreature: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Create Template:LinkCreature for linking to creature profiles on stendhalgame.org
imported>AntumDeluge
Use 2nd argument to replace text in link
 
(8 intermediate revisions by the same user not shown)
Line 1:
{{#if: {{{1|}}} | [https://stendhalgame.org/creature/{{{1|}}}.html {{{1|}}}{{#if: {{{2|}}} | .{{{2|}}} | {{{1|}}} }}] | }}<noinclude>
== Description ==
 
Line 10:
! Input || Output
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html creaturename]</nowiki>
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name|exttext}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html creature.<ext>text]</nowiki>
|}
 
Line 18:
 
{| class="wikitable"
! Argument No.<br>(label) || Description || Notes
|-
| 1 (name) || Creature name. ||
|-
| 2 (exttext) || Filename extensionText to appenddisplay toinstead labelof name (optional). || Used in [[Template:RefactorEnemySprite]]
|}
 
Line 34:
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph}}</nowiki> || {{LinkCreature|nymph}}
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph|nymp.png}}</nowiki> || {{LinkCreature|nymph|nymph.png}}
|}
</blockquote>