Template:LinkCreature: Difference between revisions

From Arianne
Jump to navigation Jump to search
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
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{1|}}} | [https://stendhalgame.org/creature/{{{1|}}}.html {{{1|}}}{{#if: {{{2|}}} | .{{{2|}}} | }}] | }}<noinclude>
{{#if: {{{1|}}} | [https://stendhalgame.org/creature/{{{1|}}}.html {{#if: {{{2|}}} | {{{2|}}} | {{{1|}}} }}] | }}<noinclude>
== Description ==
== Description ==


Line 10: Line 10:
! Input || Output
! Input || Output
|-
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html creature]</nowiki>
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html name]</nowiki>
|-
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name|ext}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html creature.<ext>]</nowiki>
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|name|text}}</nowiki> || <nowiki>[https://stendhalgame.org/creature/<name>.html text]</nowiki>
|}
|}


Line 18: Line 18:


{| class="wikitable"
{| class="wikitable"
! Argument No.<br>(label) || Description || Notes
! Argument No.<br>(label) || Description
|-
|-
| 1 (name) || Creature name. ||
| 1 (name) || Creature name.
|-
|-
| 2 (ext) || Filename extension to append to label (optional). || Used in [[Template:RefactorEnemySprite]]
| 2 (text) || Text to display instead of name (optional).
|}
|}


Line 34: Line 34:
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph}}</nowiki> || {{LinkCreature|nymph}}
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph}}</nowiki> || {{LinkCreature|nymph}}
|-
|-
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph|png}}</nowiki> || {{LinkCreature|nymph|png}}
| <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|nymph|nymp.png}}</nowiki> || {{LinkCreature|nymph|nymph.png}}
|}
|}
</blockquote>
</blockquote>

Latest revision as of 05:01, 5 December 2017

Description

Template that links to a creature profile on stendhalgame.org.


Usage

Input Output
{{LinkCreature|name}} [https://stendhalgame.org/creature/<name>.html name]
{{LinkCreature|name|text}} [https://stendhalgame.org/creature/<name>.html text]

Arguments:

Argument No.
(label)
Description
1 (name) Creature name.
2 (text) Text to display instead of name (optional).


Examples

Input Output
{{LinkCreature|nymph}} nymph
{{LinkCreature|nymph|nymp.png}} nymph.png


See Also