Difference between revisions of "Template:GuildGeneralInfo"
From EncyclopAtys
CeNobiteElf (talk | contribs) |
|||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{image|}}} | [[File:{{{image}}}]]}} | + | <includeonly>{{#if: {{{image|}}} | {{#ifeq: {{{useImgFile}}} | true | [[File:{{{image}}}]] | {{APIguildIcon |
− | {{#if: {{{server|}}} |* '''Server:''' {{{server}}}}} | + | |icon={{{image}}} |
− | {{#if: {{{land|}}} |* '''Homeland:''' {{{land}}}} | + | |size=b |
− | {{#if: {{{GH|}}} |* '''Guild Hall:''' {{{GH}}}}} | + | }}}}}}{{#if: {{{server|}}} |* '''Server:''' [[Servers#{{{server}}}|{{{server}}}]]}} {{#if: {{{land|}}} |* '''Homeland:''' {{{land}}}}} {{#if: {{{GH|}}} |* '''Guild Hall:''' {{{GH}}}}} |
− | {{# | + | *'''Alignment:''' |
− | {{#if: {{{AllowedRaces|}}} |* '''Races Allowed:''' {{{AllowedRaces}}}}} | + | **'''Faction:''' {{ #switch: {{ lc: {{{FactionAlignment|}}} }} |
− | {{#if: {{{rpStance|}}} |* ''' | + | | kami | karavan = [[Alignment#{{{FactionAlignment}}}|{{{FactionAlignment}}}]] |
− | {{#if: {{{website|}}} |* '''Website:''' [{{{website}}} {{PAGENAME}} website]}}</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= | ||
|server= | |server= | ||
|land= | |land= | ||
Line 17: | Line 32: | ||
|RacialAlignment= | |RacialAlignment= | ||
|AllowedRaces= | |AllowedRaces= | ||
+ | |pvpStance= | ||
|rpStance= | |rpStance= | ||
|website= | |website= | ||
Line 22: | Line 38: | ||
</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 | ||
+ | |image=576460752303421533 | ||
+ | |useImgFile=false | ||
+ | |useapi=true | ||
+ | |server=Arispotle | ||
+ | |land=[[Aeden Aqueous]] | ||
+ | |GH=Windy Head, [[Fairhaven]] | ||
+ | |FactionAlignment=[[Alignment#Karavan|Karavan]] | ||
+ | |RacialAlignment=[[Alignment#Tryker|Tryker]] | ||
+ | |AllowedRaces=All | ||
+ | |pvpStance= | ||
+ | |rpStance=Semi | ||
+ | |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 oficon
.
- 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
orkara
– Karavan -
neut
orneutral
– Neutral
-
- RacialAlignment
- Non-optional. The guild's racial alignment. Can be a custom value or a predefined value:
-
matis
- Matis -
tryker
- Tryker -
zorai
orzoraï
– Zoraï -
fyros
- Fyros -
neut
orneutral
– 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
- Server: Arispotle
- Homeland: Aeden Aqueous
- Guild Hall: Windy Head, Fairhaven
- Alignment:
- Races Allowed: All
- RP Stance: Semi
- Website: GuildGeneralInfo website
- Ryzom Armory: Armory profile