Template:Location/Road: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Kenneth the Sage (talk | contribs)
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">..."
 
Kenneth the Sage (talk | contribs)
No edit summary
Line 1: Line 1:
<infobox>
<infobox theme-source="variant">
   <title source="title1">
   <image source="image">
     <default>{{PAGENAME}}</default>
    <caption source="caption" />
     <format>{{{caption}}}{{#ifexist:Category:Images of {{{name|{{PAGENAME}}}}}|<br />'''[[:Category:Images of {{{name|{{PAGENAME}}}}}|Gallery]]'''}}</format>
  </image>
  <title source="name">
    <default>Enter Name Here</default>
   </title>
   </title>
   <image source="image1">
   <group>
     <caption source="caption1"/>
    <header>{{#if:{{{type|}}}|{{{type}}}|Road}}{{{refs|}}}</header>
  </image>
    <data source="aliases"><label>Aliases</label></data>
  <data source="row1">
     <data source="length"><label>Length</label></data>
     <label>Label</label>
    <data source="width"><label>Width</label></data>
  </data>
    <data source="pavement"><label>Pavement</label></data>
  <data source="row2">
     <data source="location"><label>Location</label></data>
     <label>Label</label>
    <data source="starts"><label>Origin</label></data>
   </data>
    <data source="ends"><label>Destination</label></data>
</infobox>
     <data source="built"><label>Constructed</label></data>
<noinclude>
   </group>
Example usage:<pre>
  <group>
{{Location/Road
    <header>Volo's Rating</header>
|title1=Example
    <data source="daggers">
|image1=Example
      <label>Dangerousness</label>
|caption1=Example
      <format>[[File:{{{daggers}}}dagger{{#ifeq:{{{daggers}}}|1||s}}.jpg{{!}}right{{!}}link=Volo's rating system]]</format>
|row1=Example
    </data>
|row2=Example
  </group>
}}
  <navigation>{{#if:{{{inhabitants|}}}|[[:Category:Inhabitants of {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}|Inhabitants of {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}]]}}</navigation>
</pre>
  <navigation>{{#if:{{{locations|}}}|[[:Category:Locations on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}|Locations on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}]]}}</navigation>
  <navigation>{{#if:{{{settlements|}}}|[{{fullurl:{{#replace:Template:Category intersection| |_}}|{{#replace:cat1=Locations on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}&cat2=Settlements&action=purge| |_}}}} Settlements on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}]}}</navigation>
  <navigation>{{#if:{{{roads|}}}|[{{fullurl:{{#replace:Template:Category intersection| |_}}|{{#replace:cat1=Locations on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}&cat2=Roads&action=purge| |_}}}} Roads crossing {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}] }}</navigation>
  <navigation>{{#if:{{{events|}}}|[[:Category:Events on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}|Events on {{ #if: {{{usethe|}}} | the }} {{{name|{{PAGENAME}}}}}]] }}</navigation>
</infobox><includeonly>{{#ifeq:{{lc:{{{nocat|false}}}}}|true|<!-- Categories suppressed -->|
[[Category:Roads]]{{#if:{{{daggers|}}}|[[Category:Rated {{{daggers}}} dagger{{#ifeq:{{{daggers}}}|1||s}} by Volo]]}}}}</includeonly><noinclude>{{documentation}}
[[Category:Infoboxes|Road]]
</noinclude>
</noinclude>

Revision as of 07:47, 2 November 2018

<infobox theme-source="variant">

 <image source="image">

<format>{{{caption}}}</format> </image> <title source="name"> <default>Enter Name Here</default> </title> <group> <header>Road</header> <label>Aliases</label> <label>Length</label> <label>Width</label> <label>Pavement</label> <label>Location</label> <label>Origin</label> <label>Destination</label> <label>Constructed</label> </group> <group> <header>Volo's Rating</header> <label>Dangerousness</label> <format>[[File:{{{daggers}}}daggers.jpg|right|link=Volo's rating system]]</format> </group> <navigation></navigation> <navigation></navigation> <navigation></navigation> <navigation></navigation> <navigation></navigation> </infobox>

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
ViewEditHistory
This template is not yet documented. Please create documentation here: Template:Location/Road/doc