Difference between revisions of "Template:ItemLink"

no edit summary
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
  | imageandtext
  | imageandtext
  | imageframe
  | imageframe
  | image = {{#if: {{{imagehtml|}}} | {{{imagehtml}}} | {{#if: {{{image|}}} | [[File:{{{image}}}|{{CalculateSize|size={{{size|45px}}}|ratio={{{ratio|1}}} }}|{{#ifeq:{{{variant}}}|imageframe|frame|frameless}}|link={{#ifeq:{{{linkname}}}|empty|{{#if:{{{anchor|}}}|<nowiki>#</nowiki>{{{anchor|}}}}}|{{#urldecode:{{{{{linkname}}}|anchor={{{anchor|}}}|linkonly=true|edition={{{edition|}}}|variant={{{linkvariant|}}}}} }} }}]] | ''Missing <code>image</code>'' }} }}
  | image = {{#if: {{{imagehtml|}}} | {{{imagehtml}}} | {{#if: {{{image|}}} | [[File:{{{image}}}|{{CalculateSize|size={{{size|45px}}}|ratio={{{ratio|1}}} }}|{{#ifeq:{{{variant}}}|imageframe|thumb{{!}}none|frameless}}|link={{#ifeq:{{{linkname}}}|empty|{{#if:{{{anchor|}}}|<nowiki>#</nowiki>{{{anchor|}}}}}|{{#urldecode:{{{{{linkname}}}|anchor={{{anchor|}}}|linkonly=true|edition={{{edition|}}}|variant={{{linkvariant|}}}}} }} }}|{{#ifeq:{{{variant}}}|imageframe|{{#switch: {{{formating}}}
  | lowercase = {{lc: {{{text|}}} }}
  | strong
  | bold = '''{{{text|}}}'''
  | {{{text|}}} }} }} ]] | ''Missing <code>image</code>'' }} }}
  | linkonly = {{urlencode:{{{{{linkname}}}|anchor={{{anchor|}}}|linkonly=true|edition={{{edition|}}}|variant={{{linkvariant|}}}}}|WIKI}}
  | linkonly = {{urlencode:{{{{{linkname}}}|anchor={{{anchor|}}}|linkonly=true|edition={{{edition|}}}|variant={{{linkvariant|}}}}}|WIKI}}
  | text = {{#switch: {{{formating}}}
  | text = {{#switch: {{{formating}}}
Line 14: Line 18:
  | imageandtext = <nowiki> </nowiki>
  | imageandtext = <nowiki> </nowiki>
}}{{#switch: {{{variant}}}
}}{{#switch: {{{variant}}}
| imageframe
  | imagename
  | imagename
  | imagelink
  | imagelink
Line 100: Line 105:
| <code><nowiki>{{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=image}}</nowiki></code> || {{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=image}}
| <code><nowiki>{{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=image}}</nowiki></code> || {{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=image}}
|-
|-
| <code><nowiki>{{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=imageframe}}</nowiki></code> || {{ItemLink|linkname=empty|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=imageframe}}
| <code><nowiki>{{ItemLink|linkname=BaseGameLink|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=imageframe|size=50px}}</nowiki></code> || {{ItemLink|linkname=BaseGameLink|text=Highwaymen|image=Hills And Sheep C2 Tile L.jpg|anchor=Examples|variant=imageframe|size=50px}}
|-
|-
|}
|}
[[File:Hills And Sheep C2 Tile L.jpg|link=#Examples]]
[[File:Hills And Sheep C2 Tile L.jpg|link=#Examples]]
</noinclude>
</noinclude>
advancededitor, translator, writer
26,445

edits