Template:Location/doc: Difference between revisions

From Pax Republica
Jump to navigation Jump to search
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="affili...")
 
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox>
 
  <title source="title1">
 
    <default>{{PAGENAME}}</default>
  </title>
  <image source="image1">
    <caption source="caption1"/>
  </image>
  <data source="affiliation">
    <label>Affiliation</label>
  </data>
  <data source="species">
    <label>Species</label>
  </data>
  <data source="languages">
    <label>Languages</label>
  </data>
  <data source="capital">
    <label>Capital</label>
  </data>
  <group>
    <header>System</header>
    <data source="sector">
      <label>Sector</label>
    </data>
    <data source="name">
      <label>Name</label>
    </data>
    <data source="star">
      <label>Star</label>
    </data>
    <data source="moons">
      <label>Moons</label>
    </data>
    <data source="trade_routes">
      <label>Trade Routes</label>
    </data>
  </group>
</infobox>
<noinclude>
Example usage:
Example usage:
<pre>
<pre>
{{Location/doc
{{Location/doc


   | title1=Example
   | title=Example


   | image1=Example
   | image1=Example
  | caption1=Example


   | affiliation=Example
   | affiliation=Example
Line 69: Line 30:
</pre>
</pre>
<templatedata>
<templatedata>
{"params":{"title1":{"suggested":true},"image1":{"suggested":true},"caption1":{"suggested":true},"affiliation":{"suggested":true},"species":{"suggested":true},"languages":{"suggested":true},"capital":{"suggested":true},"sector":{"suggested":true},"name":{"suggested":true},"star":{"suggested":true},"moons":{"suggested":true},"trade_routes":{"suggested":true}},"sets":[],"maps":{}}
{"params":{"title":{"suggested":true},"image1":{"suggested":true},"affiliation":{"suggested":true},"species":{"suggested":true},"languages":{"suggested":true},"capital":{"suggested":true},"sector":{"suggested":true},"name":{"suggested":true},"star":{"suggested":true},"moons":{"suggested":true},"trade_routes":{"suggested":true}},"sets":[],"maps":{}}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
Line 79: Line 40:
{{Location
{{Location
  | title        =  
  | title        =  
  | image         = [e.g. "Example.jpg"]
  | image1         = [e.g. "Example.jpg"]
| imagecaption  =
  | affiliation  =
  | affiliation  =
  | species    =  
  | species    =  
Line 95: Line 55:
== Sample output ==
== Sample output ==
{{Location
{{Location
  | title        =  
  | title        = Coruscant
  | image         = [e.g. "Example.jpg"]
  | image1         = [[File:Coruscant.png]]
| imagecaption  =
  | affiliation  = Empire
  | affiliation  =  
  | species    = Human
  | species    =  
  | languages = Basic
  | languages =  
  | sector  = Corusca
  | sector  =  
  | name    = Coruscant System
  | name    =  
  | star  = Coruscant Prime
  | star  =  
  | moons = 4
  | moons =
  | trade routes =  
  | trade routes =  
  | capital =
  | capital = Galactic City
}}<pre>
}}<pre>
{{Location
{{Location
  | title        = Coruscant
  | title        = Coruscant
  | image         = [e.g. "Example.jpg"]
  | image1         = [[File:Coruscant.png]]
| imagecaption  =
  | affiliation  = Empire
  | affiliation  =  
  | species    = Human
  | species    =  
  | languages  = Basic
  | languages  =  
  | sector    = Corusca
  | sector    =  
  | name    = Coruscant System
  | name    =  
  | star  = Coruscant Prime
  | star  =  
  | moons = 4
  | moons =
  | trade routes =  
  | trade routes =  
  | capital =
  | capital = Galactic City
}}
}}
</pre><includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
</pre><includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 04:19, 30 August 2022


Example usage:

{{Location/doc

  | title=Example

  | image1=Example

  | affiliation=Example

  | species=Example

  | languages=Example

  | capital=Example

  | sector=Example

  | name=Example

  | star=Example

  | moons=Example

  | trade_routes=Example

}}

No description.

Template parameters

ParameterDescriptionTypeStatus
titletitle

no description

Unknownsuggested
image1image1

no description

Unknownsuggested
affiliationaffiliation

no description

Unknownsuggested
speciesspecies

no description

Unknownsuggested
languageslanguages

no description

Unknownsuggested
capitalcapital

no description

Unknownsuggested
sectorsector

no description

Unknownsuggested
namename

no description

Unknownsuggested
starstar

no description

Unknownsuggested
moonsmoons

no description

Unknownsuggested
trade_routestrade_routes

no description

Unknownsuggested

Description

To use this template, add the Template:T template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.

Syntax

{{Location
 | title         = 
 | image1         = [e.g. "Example.jpg"]
 | affiliation  =
 | species    = 
 | languages = 
 | sector  = 
 | name   = 
 | star  = 
 | moons =
 | trade routes = 
 | capital =
}}

Sample output

{{Location
 | title         = Coruscant
 | image1         = [[File:Coruscant.png]]
 | affiliation   = Empire
 | species    = Human
 | languages  = Basic
 | sector     = Corusca
 | name     = Coruscant System
 | star   = Coruscant Prime
 | moons = 4
 | trade routes = 
 | capital = Galactic City
}}