8,290
edits
m (add qud-location-infobox class) |
No edit summary |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=Locations|Faction=Page|Biome=Page|Leader=Page|Description=String|TotalFloors=Integer}} | <noinclude>{{#cargo_declare:_table=Locations | ||
{{#cargo_attach:_table=GeneralData}} | |Faction=Page | ||
</noinclude><includeonly>{{#cargo_store:_table=Locations|Faction={{{faction|}}}|Biome={{{biome|}}}|Leader={{{leader|}}}|Description={{{desc|}}}|TotalFloors={{{floors|}}}}}{{#cargo_store:_table=GeneralData|DisplayName={{qud text|&y{{#titleparts:{{BASEPAGENAME}}}}}}|Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}}|PlainName={{#titleparts:{{ | |Biome=Page | ||
{{#invoke:infobox|infobox | |Leader=Page | ||
|Description=String | |||
|TotalFloors=Integer | |||
|IsTerrain=Boolean | |||
|GotoID=Wikitext | |||
|JoinKey=String}}<!-- | |||
-->{{#cargo_attach:_table=GeneralData}} | |||
</noinclude><includeonly>{{#cargo_store:_table=Locations | |||
|Faction={{{faction|}}} | |||
|Biome={{{biome|}}} | |||
|Leader={{{leader|}}} | |||
|Description={{{desc|}}} | |||
|TotalFloors={{{floors|}}} | |||
|IsTerrain={{#ifeq:{{lc:{{{terrain|no}}}}}|yes|yes|no}} | |||
|GotoID={{{gotoid|}}} | |||
|JoinKey={{FULLPAGENAME}} | |||
}}<!-- | |||
GENERAL DATA CARGO STORE | |||
-->{{#cargo_store:_table=GeneralData | |||
|DisplayName={{qud text|&y{{{title|{{#titleparts:{{BASEPAGENAME}}}}}}}}} | |||
|Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}} | |||
|PlainName={{StripFormatting|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }} | |||
|DisplayChar= {{qud char|&y|•}} | |||
|JoinKey={{FULLPAGENAME}} | |||
|Description={{{desc|}}} }}[[Category:Locations]]<!-- | |||
INFOBOX START | |||
-->{{#invoke:infobox|infobox | |||
| class = qud-location-infobox | | class = qud-location-infobox | ||
| imagearea = | |||
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} | {{#ifeq: {{{image|none}}} |none|| [[Image:{{{image}}}|160px]] }} }} | |||
| rows = | | rows = | ||
{{#if: {{{faction|}}} | {{infobox row|label=Faction|field=[[{{{faction}}}]] }} }} | {{#if: {{{faction|}}} | {{infobox row|label=Faction|field=[[{{{faction}}}]] }} }} | ||
{{#if: {{{biome|}}} | {{infobox row|label=Biome|field=[[{{{biome}}}]] }} }} | {{#if: {{{biome|}}} | {{infobox row|label=Biome|field=[[{{{biome}}}]] }} }} | ||
{{#if: {{{leader|}}} | {{infobox row|label=Leader|field= | {{#ifeq: {{lc:{{{terrain|no}}}}} | yes | {{infobox row|field=<div style="text-align:center;"><i>[[World_map#Terrain|world map terrain]]</i></div> }} }} | ||
{{#if: {{{floors|}}} | {{infobox row|Total Floors|{{{floors}}} }} }} | {{#if: {{{leader|}}} | {{infobox row|label=Leader|field={{Consecutive templates|{{{leader}}}|</br>|</br>|||favilink}} }} }} | ||
{{#if: {{{floors|}}} | {{infobox row|Total Floors|{{{floors}}} }} }} | |||
{{#if: {{{gotoid|}}} | {{infobox row|{{tooltip | |||
|1=<span style="font-weight:normal;">You can use this ID to [[Wishes|wish]] yourself to this<br>location (<code>goto:{{{gotoid}}}</code>)</span> | |||
|2=Goto ID | |||
|3=nosearch | |||
}}|{{{gotoid}}} }} }} | |||
}} | }} | ||
{{#if: {{{desc|}}} | {{qud look|text={{{desc}}}}} }} | {{#if: {{{desc|}}} | {{qud look|text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
[[Category:Templates]] | [[Category:Cargo Store Templates]] | ||
{{doc}}</noinclude> | {{doc}}</noinclude> |