Template:Location: Difference between revisions

Jump to navigation Jump to search
145 bytes added ,  16:56, 14 September 2019
plain name uses title, but defaults to pagename
m (add qud-location-infobox class)
(plain name uses title, but defaults to pagename)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Locations|Faction=Page|Biome=Page|Leader=Page|Description=String|TotalFloors=Integer}}
<noinclude>{{#cargo_declare:_table=Locations|Faction=Page|Biome=Page|Leader=Page|Description=String|TotalFloors=Integer}}
{{#cargo_attach:_table=GeneralData}}
{{#cargo_attach:_table=GeneralData}}
</noinclude><includeonly>{{#cargo_store:_table=Locations|Faction={{{faction|}}}|Biome={{{biome|}}}|Leader={{{leader|}}}|Description={{{desc|}}}|TotalFloors={{{floors|}}}}}{{#cargo_store:_table=GeneralData|DisplayName={{qud text|&amp;y{{#titleparts:{{BASEPAGENAME}}}}}}|Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}}|PlainName={{#titleparts:{{BASEPAGENAME}}}} }}[[Category:Locations]]
</noinclude><includeonly>{{#cargo_store:_table=Locations|Faction={{{faction|}}}|Biome={{{biome|}}}|Leader={{{leader|}}}|Description={{{desc|}}}|TotalFloors={{{floors|}}}}}<!--
{{#invoke:infobox|infobox
 
  GENERAL DATA CARGO STORE
 
-->{{#cargo_store:_table=GeneralData|
DisplayName={{qud text|&amp;y{{#titleparts:{{BASEPAGENAME}}}}}}|
Image={{#ifeq: {{{image|}}}| none ||{{{image}}}}}|
PlainName={{StripFormatting|{{{title|{{#titleparts:{{PAGENAME}}}} }}} }}|
DisplayChar= {{qud char|&amp;y|•}} }}[[Category:Locations]]<!--
 
  INFOBOX START
 
-->{{#invoke:infobox|infobox
| class = qud-location-infobox
| class = qud-location-infobox
| rows =  
| rows =  
Line 12: Line 23:
{{#if: {{{desc|}}} | {{qud look|text={{{desc}}}}} }}
{{#if: {{{desc|}}} | {{qud look|text={{{desc}}}}} }}
</includeonly><noinclude>
</includeonly><noinclude>
[[Category:Templates]]
[[Category:Cargo Store Templates]]
{{doc}}</noinclude>
{{doc}}</noinclude>

Navigation menu