Template:OGAUser: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Create "Template:OGAUser" to quickly link to user profiles on OpenGameArt.org
imported>AntumDeluge
Never show full URL
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><!--
<noinclude><!--
</noinclude>{{#if: {{{1|}}} | {{#if: {{{2|}}} | [ | }}https://opengameart.org/users/{{{1|}}} {{#if: {{{2|}}} | {{{2|}}}] | }} }}<noinclude>
</noinclude>{{#if: {{{1|}}} | [https://opengameart.org/users/{{#replace:{{{1|}}}||-}} {{#if: {{{2|}}} | {{{2|}}} | {{{1|}}} }}] | }}<noinclude>
-->
-->


Line 17: Line 17:


{| class="wikitable"
{| class="wikitable"
! Name || Required || Description
! Name || Required || Description || Notes
|-
|-
| username || {{status|check}} || User's OGA username.
| username || {{status|check}} || User's OGA username. || Whitespace is replaced with dashes (-).
|-
|-
| text || || Alternate text to display.
| text || || Alternate text to display. ||
|}
|}



Latest revision as of 20:45, 28 March 2018


Description

Template:OGAUser

For quickly linking to user profiles on OpenGameArt.org.

Usage

  • {{OGAUser|username|[text]}}
  • {{ogauser|username|[text]}}

Arguments

Name Required Description Notes
username User's OGA username. Whitespace is replaced with dashes (-).
text Alternate text to display.

Examples

Input Output
{{OGAUser|AntumDeluge}} [https://opengameart.org/users/{{#replace:AntumDeluge -}} AntumDeluge]
{{OGAUser|AntumDeluge|Jordan Irwin (AntumDeluge)}} [https://opengameart.org/users/{{#replace:AntumDeluge -}} Jordan Irwin (AntumDeluge)]

See Also