Template:OpenGameArt: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Trying to fix formatting
imported>AntumDeluge
Link to "Category:RefactoringTemplates" under "See Also" section
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>== Template Output ==

Linking to OpenGameArt.org.
<blockquote>
</noinclude>{{#if: {{{1|}}} | {{#if: {{{2|}}} | [https://opengameart.org/node/{{{1|}}} {{{2|}}}] | https://opengameart.org/node/{{{1|}}} | }} | {{#if: {{{2|}}} | [https://opengameart.org/ {{{2|}}}] | https://opengameart.org/ }} }}<noinclude>
</blockquote>

== Description ==

<span style="font-weight:bold;">Template:{{PAGENAME}}</span>

For quickly linking to OpenGameArt.org, and/or submissions, using "''node''" links.

== Usage ==

* <span style="font-family:monospace;font-size:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{OpenGameArt|[nid]|[text]}}</nowiki></span>
* <span style="font-family:monospace;font-size:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{OGA|[nid]|[text]}}</nowiki></span>
* <span style="font-family:monospace;font-size:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{oga|[nid]|[text]}}</nowiki></span>

=== Optional Arguments ===

<blockquote>
{| class="wikitable"
{| class="wikitable"
! Input || Result
! Name || Description
|-
|-
| nid || Node ID of URL.
| <nowiki>{{OpenGameArt}} or {{OGA}}</nowiki> || <nowiki>https://opengameart.org/</nowiki>
|-
|-
| text || Alternate text to display instead of URL.
| <nowiki>{{OpenGameArt|nid}} or {{OGA|nid}}</nowiki> || <nowiki>https://opengameart.org/node/<nid></nowiki>
|}
</blockquote>

== Examples ==

<blockquote>
{| class="wikitable"
! Input || Output
|-
| <nowiki>{{OpenGameArt}}</nowiki> || {{OpenGameArt}}
|-
| <nowiki>{{OpenGameArt||OpenGameArt.org}}</nowiki> || {{OpenGameArt||OpenGameArt.org}}
|-
| <nowiki>{{OpenGameArt|76913}}</nowiki> || {{OpenGameArt|76913}}
|-
|-
| <nowiki>{{OpenGameArt|nid|text}} or {{OGA|nid|text}}</nowiki> || <nowiki>[https://opengameart.org/node/<nid> <text>]</nowiki>
| <nowiki>{{OpenGameArt|76913|Minotaur}}</nowiki> || {{OpenGameArt|76913|Minotaur}}
|}
|}
</blockquote>
</noinclude>{{#if: {{{1|}}} | {{#if: {{2|}} | [https://opengameart.org/node/{{{1|}}} {{{2|}}}] | <nowiki>https://opengameart.org/node/</nowiki>{{{1|}}} }} | <nowiki>https://opengameart.org/</nowiki> }}

== See Also ==

* [[Templates|List of templates]]
* [[:Category:RefactoringTemplates|List of refactoring templates]]


[[Category:Graphics]]
[[Category:OpenGameArt]]
[[Category:Stendhal]]
[[Category:Development]]
[[Category:RefactoringTemplates]]

Latest revision as of 01:11, 18 March 2018

Template Output

https://opengameart.org/

Description

Template:OpenGameArt

For quickly linking to OpenGameArt.org, and/or submissions, using "node" links.

Usage

  • {{OpenGameArt|[nid]|[text]}}
  • {{OGA|[nid]|[text]}}
  • {{oga|[nid]|[text]}}

Optional Arguments

Name Description
nid Node ID of URL.
text Alternate text to display instead of URL.

Examples

Input Output
{{OpenGameArt}} https://opengameart.org/
{{OpenGameArt||OpenGameArt.org}} OpenGameArt.org
{{OpenGameArt|76913}} https://opengameart.org/node/76913
{{OpenGameArt|76913|Minotaur}} Minotaur

See Also