Template:Spacepedia entry: Difference between revisions

From Love and Deepspace Wiki
Content deleted Content added
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|name=String
|name=String
|category=String
|category=String
|isSubEntry=Boolean
|image=String
|image=String
|obtain=Wikitext
|obtain=Wikitext
Line 16: Line 17:
|name={{{name|{{PAGENAME}}}}}
|name={{{name|{{PAGENAME}}}}}
|category={{{category|}}}
|category={{{category|}}}
|isSubEntry={{{isSubEntry|0}}}
|image={{#ifeq:{{{hasImage|0}}} | 1 | {{{name|{{PAGENAME}}}}}_Spacepedia_image.png }}
|image={{#ifeq:{{{hasImage|0}}} | 1 | {{{name|{{PAGENAME}}}}}_Spacepedia_image.png }}
|obtain={{{obtain|}}}
|obtain={{{obtain|}}}
Line 24: Line 26:


--><div class="spacepedia-entry">
--><div class="spacepedia-entry">
<div class="spacepedia-entry-header">{{{name|{{PAGENAME}}}}}</div>
<div class="spacepedia-entry-header">{{#ifeq:{{{isSubEntry|}}} | 1 | {{PAGENAME}} - {{{name|{{PAGENAME}}}}} | {{{name|{{PAGENAME}}}}} }}</div>
{{#ifeq:{{{hasImage|0}}} | 1 | [[File:{{{name|{{PAGENAME}}}}}_Spacepedia_image.png|200px|link=]]<br/> }}<blockquote>
{{#ifeq:{{{hasImage|0}}} | 1 | [[File:{{{name|{{PAGENAME}}}}}_Spacepedia_image.png|200px|link=]]<br/> }}<blockquote>
{{{description|}}}
{{{description|}}}

Latest revision as of 21:27, 31 January 2024

Documentation

Description[edit source]

This is a template used for creating Spacepedia entries.

Spacepedia subentries should ideally be on the page of their parent entry. For example, Stellactrum's entry should be on the Protofield page.

Usage[edit source]

{{Spacepedia entry
|category=
|name=
|isSubEntry= <!-- Specify 1 if this is a sub-entry, otherwise put 0 or remove the field -->
|hasImage= <!-- Specify 1 if the entry has an associated image, otherwise put 0 or remove the field -->
|obtain=
|description=
}}

This template defines the table "SpacepediaEntry". This table has not been created yet.