Difference between revisions of "Template:Map"

From Alpha Centauri Wiki
Jump to: navigation, search
m
m
Line 6: Line 6:
 
         <td>Size</td>
 
         <td>Size</td>
 
         <td>{{{height}}} × {{{width}}}[[Category:{{{height}}} × {{{width}}} maps]]</td>
 
         <td>{{{height}}} × {{{width}}}[[Category:{{{height}}} × {{{width}}} maps]]</td>
     </tr>|[[Category:Maps missing size]]}}{{#ifexist:File:{{{PAGENAME}}}small.png|
+
     </tr>|[[Category:Maps missing size]]}}{{#ifexist:File:{{PAGENAME}}small.png|
 
     <tr>
 
     <tr>
         <td colspan="2">[[File:{{{PAGENAME}}}small.png]]</td>
+
         <td colspan="2">[[File:{{PAGENAME}}small.png]]</td>
 
     </tr>|[[Category:Maps missing thunbnail]]}}
 
     </tr>|[[Category:Maps missing thunbnail]]}}
 
     <tr>
 
     <tr>
Line 16: Line 16:
 
     <tr>
 
     <tr>
 
         <td colspan="2">[https://github.com/etesp/Alpha-Centauri-Ultimate/blob/master/maps/{{PAGENAME}}.MP?raw=true Download from Github]</td>
 
         <td colspan="2">[https://github.com/etesp/Alpha-Centauri-Ultimate/blob/master/maps/{{PAGENAME}}.MP?raw=true Download from Github]</td>
     </tr>
+
     </tr>{{#if:{{{thread|}}}|
 
     <tr>
 
     <tr>
         <td colspan="2">{{#if:{{{thread|}}}|[{{{thread}}} Discussion Thread]|Discussion thread missing[[Category:Maps with missing discussion thread]]}}</td>
+
         <td colspan="2">[{{{thread}}} Discussion Thread]|[[Category:Maps with missing discussion thread]]</td>
     </tr>
+
     </tr>}}
 
     <tr>
 
     <tr>
 
         <td>Version</td>
 
         <td>Version</td>
Line 38: Line 38:
 
</table>[[Category:Maps]]
 
</table>[[Category:Maps]]
  
{{#ifexist:File:{{{PAGENAME}}}.png|[[File:{{{PAGENAME}}}.png]]|This map has no preview. Please upload an image of the map at [[File:{{{PAGENAME}}}.png]].[[Category:Maps missing image]]}}</includeonly><noinclude>
+
{{#ifexist:File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png]]|This map has no preview. Please upload an image of the map at [[File:{{PAGENAME}}.png]].[[Category:Maps missing image]]}}</includeonly><noinclude>
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
==Use==
 
==Use==

Revision as of 14:09, 1 December 2014

Use

Put this template above the text about a map. It will handle categorization and display the information nicely. Upload thumbnail at PAGENAMEsmall.png and main image at PAGENAME.png, they'll appear automatically. Name on Github should be synchronized with name on here for easy downloading and finding.

Parameter use:

{{map|
|height= height of map
|width= width of map
|author= author of map
|date= date posted
|version= SMAX or SMAC
|host= original host of file
|download= direct download link (optional, defaults to pagename in the github repository)
|thread= discussion thread
|fanficlink= link to fanfiction
|fanficname= name of fanfiction (optional)
}}

Copyable template:

{{map|
|height=40
|width=80
|author=Darsnan
|date=21/08/2001
|version=SMAX
|host=Apolyton
|download=
|thread=
|fanficlink=
|fanficname=
}}