Template:Spacepedia entry: Difference between revisions
From Love and Deepspace Wiki
Content deleted Content added
Created page with "<noinclude>{{doc}}Category:Templates<!-- ### Cargo Declare -->{{#cargo_declare:_table=SpacepediaEntry |name=String |image=String |description=Wikitext (size=1000) |obtain=Wikitext }}<noinclude><includeonly><!-- ### Cargo Store -->{{#cargo_store:_table=SpacepediaEntry |name={{{name|{{PAGENAME}}}}} |image={{{image|}}} |description={{{description|}}} |obtain={{{obtain|}}} }}<!-- ### Template Display -->{{#if:{{{image|}}} | [[File:{{{image|}}}|200px|link=]] }}<bloc..." |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
-->{{#cargo_declare:_table=SpacepediaEntry |
-->{{#cargo_declare:_table=SpacepediaEntry |
||
|name=String |
|name=String |
||
|category=String |
|||
|isSubEntry=Boolean |
|||
|image=String |
|image=String |
||
⚫ | |||
|obtain=Wikitext |
|obtain=Wikitext |
||
⚫ | |||
}}<noinclude><includeonly><!-- |
|||
}}</noinclude><includeonly><templatestyles src="Template:Spacepedia entry/styles.css" /><!-- |
|||
### Cargo Store |
### Cargo Store |
||
Line 14: | Line 16: | ||
-->{{#cargo_store:_table=SpacepediaEntry |
-->{{#cargo_store:_table=SpacepediaEntry |
||
|name={{{name|{{PAGENAME}}}}} |
|name={{{name|{{PAGENAME}}}}} |
||
| |
|category={{{category|}}} |
||
| |
|isSubEntry={{{isSubEntry|0}}} |
||
|image={{#ifeq:{{{hasImage|0}}} | 1 | {{{name|{{PAGENAME}}}}}_Spacepedia_image.png }} |
|||
|obtain={{{obtain|}}} |
|obtain={{{obtain|}}} |
||
|description={{{description|}}} |
|||
}}<!-- |
}}<!-- |
||
### Template Display |
### Template Display |
||
--><div class="spacepedia-entry"> |
|||
⚫ | |||
<div class="spacepedia-entry-header">{{#ifeq:{{{isSubEntry|}}} | 1 | {{PAGENAME}} - {{{name|{{PAGENAME}}}}} | {{{name|{{PAGENAME}}}}} }}</div> |
|||
⚫ | |||
{{{description|}}} |
{{{description|}}} |
||
</blockquote |
</blockquote> |
||
</div>[[Category:Spacepedia entries]][[Category:{{{category|}}} Spacepedia entries]]</includeonly> |
Latest revision as of 21:27, 31 January 2024
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.