Difference between revisions of "Template:GuildGeneralInfo"

From EncyclopAtys

Jump to: navigation, search
m
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{image|}}} | {{#if: {{{useapi|}}} | {{APIguildIcon
+
<includeonly>{{#if: {{{image|}}} | {{#ifeq: {{{useImgFile}}} | true | [[File:{{{image}}}]] | {{APIguildIcon
 
|icon={{{image}}}
 
|icon={{{image}}}
 
|size=b
 
|size=b
}} | [[File:{{{image}}}]]}}}} {{#if: {{{server|}}} |* '''Server:''' [[{{{server}}}]]}} {{#if: {{{land|}}} |* '''Homeland:''' {{{land}}}}} {{#if: {{{GH|}}} |* '''Guild Hall:''' {{{GH}}}}}  
+
}}}}}}{{#if: {{{server|}}} |* '''Server:''' [[Servers#{{{server}}}|{{{server}}}]]}} {{#if: {{{land|}}} |* '''Homeland:''' {{{land}}}}} {{#if: {{{GH|}}} |* '''Guild Hall:''' {{{GH}}}}}  
 
*'''Alignment:'''
 
*'''Alignment:'''
**'''Faction:''' {{{FactionAlignment}}}
+
**'''Faction:''' {{ #switch: {{ lc: {{{FactionAlignment|}}} }}
**'''Racial:''' {{{RacialAlignment}}} {{#if: {{{AllowedRaces|}}} |* '''Races Allowed:''' {{{AllowedRaces}}}}} {{#if: {{{pvpStance|}}} |* '''PvP Stance:''' {{{pvpStance}}}}} {{#if: {{{rpStance|}}} |* '''RP Stance:''' {{{rpStance}}}}} {{#if: {{{website|}}} |* '''Website:''' [{{{website}}} {{PAGENAME}} website]}}{{#if: {{{useapi|}}} |
+
| kami | karavan =  [[Alignment#{{{FactionAlignment}}}|{{{FactionAlignment}}}]]
* '''Ryzom Armory:''' [http://www.3025-game.de/ryzom/en/guild/{{{server}}}/{{urlencode:{{PAGENAME}}}}/profile/ profile]}}</includeonly><!--
+
| neut | neutral = [[Alignment#Neutral|Neutral]]
 +
| kara = [[Alignment#Karavan|Karavan]]
 +
|#default = {{{FactionAlignment}}} }}
 +
**'''Racial:''' {{ #switch: {{ lc: {{{RacialAlignment|}}} }}
 +
| matis | fyros | tryker = [[Alignment#{{{RacialAlignment}}}|{{{RacialAlignment}}}]]
 +
| zoraï | zorai = [[Alignment#Zoraï|Zoraï]]
 +
| neut | neutral = [[Alignment#Neutral_2|Neutral]]
 +
| #default = {{{RacialAlignment}}} }} {{#if: {{{AllowedRaces|}}} |* '''Races Allowed:''' {{{AllowedRaces}}}}} {{#if: {{{pvpStance|}}} |* '''PvP Stance:''' {{{pvpStance}}}}} {{#if: {{{rpStance|}}} |* '''RP Stance:''' {{{rpStance}}}}} {{#if: {{{website|}}} |* '''Website:''' [{{{website}}} {{PAGENAME}} website]}}{{#if: {{{useapi|}}} |
 +
* '''Ryzom Armory:''' [https://www.ryzomarmory.com/guild/{{urlencode:{{PAGENAME}}|PATH}}/profile Armory profile]}}</includeonly><!--
 +
 
 
--><noinclude>
 
--><noinclude>
 +
==Description==
 +
Displays a guild's general information in a formatted list form.
 +
 +
==Usage==
 
<pre>
 
<pre>
 
{{GuildGeneralInfo
 
{{GuildGeneralInfo
 
|image=
 
|image=
 +
|useImgFile=
 
|useapi=
 
|useapi=
 
|server=
 
|server=
Line 23: Line 37:
 
|}}
 
|}}
 
</pre>
 
</pre>
 +
 +
===Parameters===
 +
;image
 +
:Optional. Although this parameter is optional, it is a good idea to include it. <code>image</code> takes a long integer value, easiest way to retrieve this value is through loading [http://www.finalonline.co.uk/sites/ryranger3/ari/guildsari.php Ryzom Tracker], right clicking on the respective icon, selecting "Copy Image Location" (or whichever similar function may be applicable to your browser), pasting the URL somewhere and copy/pasting the value of <code>icon</code>.
 +
 +
;useImgFile
 +
:Optional. Binary parameter, if true uses an image from the central repository for a guild icon.
 +
 +
;useapi
 +
:Optional. Binary parameter, if true creates a link to the guild's Armory page. If false, does nothing.
 +
 +
;server
 +
:Optional. Name of the shard the guild is located on. '''NOTE:''' If <code>useapi</code> has a value of true this parameter is '''non-optional'''
 +
 +
;land
 +
:Optional. The homeland of the guild, either the land the guild was founded in, its current territory matching its racial alignment.
 +
 +
;GH
 +
:Optional. The location of the guild's guild hall. Can either just be city (eg. <code>GH=Yrkanis</code>) or include district (eg. <code>GH=Yasson Ward, Yrkanis</code>)
 +
 +
;FactionAlignment
 +
:Non-optional. The guild's factional alignment. Can be a custom value or a predefined value:
 +
:* <code>kami</code> - Kami
 +
:* <code>karavan</code> or <code>kara</code> – Karavan
 +
:* <code>neut</code> or <code>neutral</code> – Neutral
 +
 +
;RacialAlignment
 +
:Non-optional. The guild's racial alignment. Can be a custom value or a predefined value:
 +
:* <code>matis</code> - Matis
 +
:* <code>tryker</code> - Tryker
 +
:* <code>zorai</code> or <code>zoraï</code> – Zoraï
 +
:* <code>fyros</code> - Fyros
 +
:* <code>neut</code> or <code>neutral</code> – Neutral
 +
 +
;AllowedRaces
 +
:Optional. Specifies whether the guild has any preferences concerning the races it accepts.
 +
 +
;pvpStance
 +
:Optional. The guild's stance towards [[PvP]].
 +
 +
;rpStance
 +
:Optional. The guild's stance towards Roleplay.
 +
 +
;Website
 +
:Optional. A link to the guild's website.
 +
 +
==Example==
 +
<pre>
 +
{{GuildGeneralInfo
 +
|image=576460752303421533
 +
|useImgFile=false
 +
|useapi=true
 +
|server=Arispotle
 +
|land=[[Aeden Aqueous]]
 +
|GH=Windy Head, [[Fairhaven]]
 +
|FactionAlignment=Karavan
 +
|RacialAlignment=Tryker
 +
|AllowedRaces=All
 +
|pvpStance=
 +
|rpStance=Semi
 +
|website=http://www.ancor.ch/atysghosts/
 +
}}
 +
</pre>
 +
 +
would output
  
 
{{GuildGeneralInfo
 
{{GuildGeneralInfo
 
|image=576460752303421533
 
|image=576460752303421533
 +
|useImgFile=false
 
|useapi=true
 
|useapi=true
 
|server=Arispotle
 
|server=Arispotle
Line 36: Line 116:
 
|rpStance=Semi
 
|rpStance=Semi
 
|website=http://www.ancor.ch/atysghosts/
 
|website=http://www.ancor.ch/atysghosts/
|}}
+
}}
 +
 
 +
== See Also==
 +
*[[Template:GuildPageLayout]]
  
 +
[[Category:Formatting templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:09, 22 November 2018

Description

Displays a guild's general information in a formatted list form.

Usage

{{GuildGeneralInfo
|image=
|useImgFile=
|useapi=
|server=
|land=
|GH=
|FactionAlignment=
|RacialAlignment=
|AllowedRaces=
|pvpStance=
|rpStance=
|website=
|}}

Parameters

image
Optional. Although this parameter is optional, it is a good idea to include it. image takes a long integer value, easiest way to retrieve this value is through loading Ryzom Tracker, right clicking on the respective icon, selecting "Copy Image Location" (or whichever similar function may be applicable to your browser), pasting the URL somewhere and copy/pasting the value of icon.
useImgFile
Optional. Binary parameter, if true uses an image from the central repository for a guild icon.
useapi
Optional. Binary parameter, if true creates a link to the guild's Armory page. If false, does nothing.
server
Optional. Name of the shard the guild is located on. NOTE: If useapi has a value of true this parameter is non-optional
land
Optional. The homeland of the guild, either the land the guild was founded in, its current territory matching its racial alignment.
GH
Optional. The location of the guild's guild hall. Can either just be city (eg. GH=Yrkanis) or include district (eg. GH=Yasson Ward, Yrkanis)
FactionAlignment
Non-optional. The guild's factional alignment. Can be a custom value or a predefined value:
  • kami - Kami
  • karavan or kara – Karavan
  • neut or neutral – Neutral
RacialAlignment
Non-optional. The guild's racial alignment. Can be a custom value or a predefined value:
  • matis - Matis
  • tryker - Tryker
  • zorai or zoraï – Zoraï
  • fyros - Fyros
  • neut or neutral – Neutral
AllowedRaces
Optional. Specifies whether the guild has any preferences concerning the races it accepts.
pvpStance
Optional. The guild's stance towards PvP.
rpStance
Optional. The guild's stance towards Roleplay.
Website
Optional. A link to the guild's website.

Example

{{GuildGeneralInfo
|image=576460752303421533
|useImgFile=false
|useapi=true
|server=Arispotle
|land=[[Aeden Aqueous]]
|GH=Windy Head, [[Fairhaven]]
|FactionAlignment=Karavan
|RacialAlignment=Tryker
|AllowedRaces=All
|pvpStance=
|rpStance=Semi
|website=http://www.ancor.ch/atysghosts/
}}

would output

guild_icon.php?icon=576460752303421533&size=b&.png

See Also