Template:PlayerFactionAndSquadron: Difference between revisions

Created page with "<includeonly> <infobox> <title source="title1"/> <image source="image1"> <caption source="caption-image1"/> </image> <group> <header source="header1">Section Header</header> <data source="allegiance"> <label>Allegiance</label> </data> <data source="power"> <label>Power</label> </data> <data source="home_system"> <label>Home System</label> </data> <data source="established"> <label>Established</label>..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<infobox>
<infobox theme="portInfobox">
  <title source="title1"/>
<title><default>{{PAGENAME}}</default></title>
  <image source="image1">
<image source="grouplogo"/>
    <caption source="caption-image1"/>
<data source="allegiance"><label>Allegiance</label><format>{{#switch: {{{allegiance}}}
  </image>
| Alliance = [[File:Alliance_vector.svg|27px|link=]] [[Alliance]]
  <group>
| Empire = [[File:Empire_vector.svg|27px|link=]] [[Empire]]
    <header source="header1">Section Header</header>
| Federation = [[File:Federation_vector.svg|27px|link=]] [[Federation]]
    <data source="allegiance">
| Independent = [[File:Independent icon small.png|27px|link=]] [[Independent]]
      <label>Allegiance</label>
| #default = [[{{{allegiance}}}]]
    </data>
}}</format></data>
    <data source="power">
<data source="power"><label>Power</label><format>{{#switch: {{{power}}}
      <label>Power</label>
| Archon Delaine = [[File:Archon_Delaine_vector.svg|27px|link=]]
    </data>
| Aisling Duval = [[File:Aisling Duval_vector.svg|27px|link=]]
    <data source="home_system">
| Arissa Lavigny-Duval = [[File:A Lavigny Duval_vector.svg|27px|link=]]
      <label>Home System</label>
| Denton Patreus = [[File:Denton Patreus_vector.svg|27px|link=]]
    </data>
| Edmund Mahon = [[File:Edmund_Mahon_vector.svg|27px|link=]]
    <data source="established">
| Felicia Winters = [[File:Felicia Winters_vector.svg|27px|link=]]
      <label>Established</label>
| Li Yong-Rui = [[File:Li Yong Rui_vector.svg|27px|link=]]
    </data>
| Pranav Antal = [[File:Pranav Antal_vector.svg|27px|link=]]
    <data source="controlled_systems">
| Yuri Grom = [[File:GromLogo.png|27px|link=]]
      <label>Controlled Systems</label>
| Zachary Hudson = [[File:Zachary Hudson_vector.svg|27px|link=]]
    </data>
| Zemina Torval = [[File:Zemina Torval_vector.svg|27px|link=]]
    <data source="notable_members">
}} [[{{{power}}}]]</format></data>
      <label>Notable Members</label>
<data source="homesystem"><label>Home System</label></data>
    </data>
<data source="government"><label>Government</label></data>
    <data source="website">
<data source="controlledsystems"><label>Controlled systems</label></data>
      <label>Website</label>
<data source="established"><label>Established</label></data>
    </data>
<data source="members"><label>Notable Members</label></data>
  </group>
<data source="website"><label>Website</label></data>
</infobox>
</infobox>
</includeonly>
{{#if: {{NAMESPACE}} ||[[Category:Player groups]]}}
<noinclude>
</includeonly><noinclude>
Example usage:
 
{{PlayerFactionAndSquadron
==Usage==
   | title1=Example
To use this template, paste the following code into the top of the article, filling all relevant fields:
  | image1=Example.jpg
<pre>{{PlayerGroup
  | caption-image1=Example
| grouplogo   =
  | allegiance=Example
| allegiance  =
  | power=Example
| power      =
  | home_system=Example
| homesystem  =
  | established=Example
| government  =
  | controlled_systems=Example
| controlledsystems =
  | notable_members=Example
| controlledstations =
  | website=Example}}
| members    =  
| grouproles  =  
| website    =
}}
</pre>
{{Clear}}
----
== Example ==
{{PlayerGroup
| grouplogo  = The Canonn Logo.png
| members    = 595+
| allegiance = Independent
| power      =  
| homesystem = Varati
| grouproles = Archaeology and scientific research
| website   = https://canonn.science/
}}
 
<pre>
<pre>
{{PlayerFactionAndSquadron
{{PlayerGroup
  | title1=Example
| grouplogo  = The Canonn Logo.png
  | image1=Example.jpg
| members    = 595+
  | caption-image1=Example
| allegiance = Independent
  | allegiance=Example
| power     =  
  | power=Example
| homesystem = Varati
  | home_system=Example
| grouproles = Archaeology and scientific research
  | established=Example
| website    = https://canonn.science/
  | controlled_systems=Example
}}
  | notable_members=Example
  | website=Example}}
</pre>
</pre>
<templatedata>
 
{"params":{"title1":{"suggested":true},"image1":{"suggested":true},"caption-image1":{"suggested":true},"allegiance":{"suggested":true},"power":{"suggested":true},"home_system":{"suggested":true},"established":{"suggested":true},"controlled_systems":{"suggested":true},"notable_members":{"suggested":true},"website":{"suggested":true}},"sets":[],"maps":{}}
[[Category:Infobox templates|{{PAGENAME}}]]
</templatedata>
[[ru:Шаблон:Сообщество игроков инфобокс]]
</noinclude>
</noinclude>